Getting Started Documentation Glish Learn More Programming Contact Us
News FAQ
Search Home


next up previous contents home.gif
Next: Using the gaintable module Up: A Guide to Synthesis processing in AIPS++ Previous: Using the visset module

Using the sortandselect module

Data sorting and selection is provided by the sortandselect module. For example, to sort by TIME:

include "synthesis.g";
sortms('3C84.sortedms', '3C84.ms', 'TIME');

To select a UV range:

include "synthesis.g";
selectuvrangems('3C84.selectedms', '3C84.ms', '100m', '3000m')

Sometimes one wishes to solve for the calibration using a subset of the visibility data, such as a limited uv range. To do this, use the selectuvrangems function to generate a reference MeasurementSet and then do the solution using that data set.

include "synthesis.g"
di.derive_model()
selectuvrangems('3C273XC1.uv.MS', '3C273XC1.MS', 100.0, 1000.0);
di.MS:='3C273XC1.uv.MS'
di.derive_ft()
di.T.t:=300
di.T.phaseOnly:=T
di.T.solve:=T
di.T.table:="tcal"
di.solve_cal()
di.MS:='3C273XC1.MS'
di.apply_cal()

This is a sophisticated example in which we do the solution for a limited uvrange, and transfer the tables to the full MeasurementSet. The function selectuvrangems creates a MeasurementSet with only samples with uv coordinates in the specified range in radius. We then Fourier transform the derivedmodel image di.images.derivedmodel and solve for and applies calibration for the T component, reading from and writing to the table tcal. The calibration is then applied to the original MeasurementSet.

For more information, see the module documentation for sortandselect.


next up previous contents home.gif
Next: Using the gaintable module Up: A Guide to Synthesis processing in AIPS++ Previous: Using the visset module   Contents
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
2000-09-23