Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: vlafiller.selectfrequency - Function Up: vlafiller - Tool Previous: vlafiller.selectproject - Function


vlafiller.selecttime - Function



Package nrao
Module vla
Tool vlafiller


Select which time-range to convert


Synopsis
selecttime(start, stop)


Description

The selecttime function filters the data so that only some of it is copied to the output measurement set. Only data that have been observed1.5 between the specified start and stop times will be copied to the output measurement set. The times are specified using any of the string formats that can be interpreted by the quanta module (see the section on time formatting).

If the start input parameter is unset then it defaults to 'a long time in the past'. Similarly if the stop input parameter is unset it defaults to 'along time in the future'. Hence using this function with no input parameters disables any time selection.

It is important to specify both the day and time portions for the start and stop time. Otherwise the day will default to the day with the modified Julian day of zero ie. the 17-Nov-1858. If you want to fill in the current date for the day number you can preceed the time with a slash. eg., start='/6:45'.

This functions returns F if the selection could not be done.



Arguments

start   The beginning of the time range.
    Allowed: string
    Default: unset
stop   The end of the time range.
    Allowed: string
    Default: unset


Returns
T or F


Example
      include 'vlafiller.g'
      v := vlafiller() 
      v.diskinput('file1.vla') 
      v.output('file1.ms') 
      v.selecttime(start='31Dec00/00:00:00.123', 
	           stop='31-Dec-2000/23:59:59.876') 
      v.selectfrequency(centerfrequency='1.4GHz', bandwidth='200MHz') 
      v.fill() 
      v.done()
This example selects all the data that was observed on the last day of the millennium where any part of the observation was between 1.3GHz and 1.5GHz. See the example for the vlafiller constructor for a more complete discreption of other parts of this example.



next up previous contents index
Next: vlafiller.selectfrequency - Function Up: vlafiller - Tool Previous: vlafiller.selectproject - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01