Documentation/Listing of tasks in analysisUtils (including some from analyzemscal and analyzemsimage)

The analysisUtils python package provides numerous (over 1300) analysis utilities written in python that are useful for ALMA (and in many cases VLA) data reduction. All the commands listed below exist in the current package, and there are links for pages that contain help and (sometimes) example usage. If the link is not found, it simply means that I have not created a help page yet. The commands are simply shown alphabetically, though they should really be sorted into categories at some point. Commands preceded by "amc." are inside analyzemscal.py, while commands preceded by "ami." are inside analyzemsimage.py, and commands preceeded by "vo." are inside visibilityOutliers.py. The rest are in analysisUtils.py. A subset of these commands is included in the help text at the CASA guide for analysis utilities (which contains a download link for the analysis_scripts tarball). The tarball is also available for download at Zenodo. As a quick mental reminder, a list of a superset of these commands can be obtained at any time from inside CASA (or python) by typing au.help(). Also, to find all functions containing a specified string in the name, use the au.help command. For, example: au.help('asdm'). The argument is case-insensitive. There is a companion python file that contains more generic, non-ALMA-specific code, called toddTools, which is not yet publicly available.

To cite this software, please use: 10.5281/zenodo.7502159 or the original ADS entry

To cite the ALMA pipeline, please use:

To cite CASA, please use:

citations on ADS

Jump to letter: A B C D E F G H I J K L M N O P Q R S T U V W X Y                    

A
  1. accumulateImfitResults -- Appends the results from a multi-component imfit result into a dictionary list
  2. addAxesToImage -- Adds a Stokes and (optionally) a frequency axis to an existing CASA image
  3. addDateToPlot -- Adds the current date/time to the bottom right of a plot
  4. addDoubleQuotesToFieldList -- Converts ['src0','src1'] or 'src0,src1' into '"src0","src1"', which is needed for the field parameter of pipeline PPRs
  5. addFrequencyAxisAbove -- Adds an upper x-axis label in frequency units to an existing plot
  6. addGaussianToFITSImage -- Adds a source with a 2D Gaussian profile to a 2D FITS image
  7. addGaussianToImage -- Adds a source with a 2D Gaussian profile to a 2D CASA image
  8. addLabelToPng -- Adds a text label to the top of a png.
  9. addPhasecalsToFluxcsv -- Adds entries for calibrators missing from flux.csv
  10. addToStateTable -- Adds a row to the STATE table of a measurement set
  11. adjustStartTimeInSysCal -- adjusts the TIME column in the SYSCAL table
  12. airmassToElevation -- Convert an airmass to elevation in degrees
  13. alignFunctions -- Takes any two functions and returns spline-fit versions sampled onto a common grid
  14. almaAntennaDiameter -- Converts an ALMA antenna name to a diameter (in meters)
  15. almaAntennaDiameters -- Converts a list of ALMA antenna names to a list of diameters (in meters)
  16. almaCycles -- Converts a date to ALMA observing cycle
  17. almaPadnameToObservatoryName -- Returns ALMAOSF if padname begins with 'TF' (for test facility pad)
  18. almaPrimaryBeamCorrection -- Computes the ratio of the current CASA primary beam correction scheme (10.7m Airy disk) to the current best ALMA Gaussian primary beam model
  19. almaToGeo -- Convert the local (horizontal) coordinates for ALMA pads into geocentric coordinates
  20. alternateRefantInPipelineTask -- Searches CASA log for use of an alternate refant in a specified pipeline task
  21. amendMaskForCoCCoA -- For channels with strong emission in .residual, expands the mask for that channel
  22. amendMaskForCube -- For channels with no clean mask, generates a clean mask from the pb and a specified intensity limit
  23. amplitudeClosureRelationships -- Returns number of amplitude closure relationships for a specified number of array elements
  24. amplitudeSolutionOutliers -- Finds amplitude solutions that are more than 10 sigma from the median
  25. analyzecontsub -- Compares line-free cubes generated in two ways: imsub and uvcontsub
  26. amc.analyzemscal -- Generates the Cycle 0 QA2 plots for a pipeline-reduction and displays on a webpage side-by-side with the manual reduction
  27. ami.analyzemsimage -- Compares images created by the pipeline with their manually-generated counterparts
  28. angleToSun -- Compute the angle between the Sun and another object at a specified time (default=now) or within a measurement set
  29. angularOffsetUncertainty -- Computes the uncertainty in the angular separation of two positions
  30. angularScaleBaseline -- Computes the baseline length corresponding to the specified angular scale at the specified frequency.
  31. angularSeparation -- Computes the angular separation of two RA/Dec coordinates entered as four decimal values in degrees
  32. angularSeparationOfAllPlanetsFromSun -- Computes the angular separation of all major planets from the sun
  33. angularSeparationOfDirections -- Accepts two direction dictionaries and returns the separation in radians.
  34. angularSeparationOfDirectionsArcsec -- Accepts two direction dictionaries and returns the separation in arc seconds.
  35. angularSeparationOfFields -- Computes the angular separation of all (or specified) fields in an ms
  36. angularSeparationOfFieldsFromASDM -- Computes angular separation of the first source of two intents
  37. angularSeparationOfFieldsFromSource -- Computes the angular separation of all fields associated with a source ID from the source positions
  38. angularSeparationOfPB -- Computes the angular separation between the peak of the primary beam image and the phase center of the specified field name2018/01/05/10:03:54.479
  39. angularSeparationOfPlanets -- Computes the current separation of two planets or a planet and a fixed target, at the specified date/time, or at the time of a particular scan in an ms
  40. angularSeparationOfScans -- Computes the slew angle (both on-the-sky, and in each antenna axis) between scans of a measurement set
  41. angularSeparationOfStrings -- Computes the angular separation of two RA/Dec coordinates entered as single strings
  42. angularSeparationOfStringsFromFile -- Computes the angular separation of a list of RA/Dec coordinate pairs in a file
  43. angularSeparationRadians -- Computes the angular separation of two RA/Dec coordinates entered as four decimal values in radians
  44. angularSeparationRadiansTuples -- Computes the angular separation of two RA/Dec coordinates entered as two tuples in units of radians
  45. angularSeparationOfTwoFields -- Computes the angular separation of two field IDs of a measurement set
  46. antennaEfficiency -- Computes efficiency equation from page 114 of the ALMA technical handbook
  47. antennaEllipsoidalHeight -- Returns the height above the Earth ellipsoid model in meters of the pad of an antenna in a specific measurement set
  48. antennaEllipsoidalHeightFromASDM -- Returns the height above the Earth ellipsoid model in meters of the pad of an antenna in a specific ASDM
  49. vo.antennasInvolved -- Finds a minimum list of (bad) antennas that can explain a list of (bad) baselin
  50. antposcorrmm -- Converts a list of antenna position corrections for gencal into human-readable millimeters
  51. antposFromCasalog -- Reads number of antenna position corrections in a CASA log
  52. antposFromPipelineCasalog -- Reads number of antenna position corrections in a pipeline CASA log (after finding it)
  53. applyProperMotion -- Subtracts the proper motion of a source in a measurement set to infer its position in the J2000 epoch
  54. applyQA0FlagsToCaltable -- Creates a list of flag commands from the FLAG_CMD column of a measurement set and applies them to a caltable
  55. applySetjyToPipelineRestoration -- Applies the setjy commands from a casa_commands.log to a pipeline measurement set
  56. approximateBarycentricCoordinatesOfEarth -- computes approximate coordinates of Earth for the specified date
  57. asdmbits -- Computes the percentage of data in an ASDM that is 16 bits vs. 32 bits
  58. asdmbitsHistogram -- Plots a histogram from the dictionary created by asdmbits
  59. asdmExport -- Sets up the correct bash path and runs asdmExportLight on an NRAO CV Lustre node on one (or more) ASDMs
  60. asdmExportFromPPR -- Reads all ASDMs from a PPR and exports them from the archive using asdmExport
  61. asdmExportImport -- Sets up the correct bash path and runs asdmExportLight followed by importasdm and listobs on an NRAO CV Lustre node for one (or more) ASDMs
  62. asdmsFromPPR -- Gets the list of ASDMs from a PPR
  63. asdmspwmap -- Generate a list that maps the spw number in an MS to the corresponding value in the ASDM xml files
  64. Atmcal -- A class that examines the atmospheric calibration scans and can re-compute Trx and Tsys
  65. atmcalScansFromASDM -- Gets list of scans with CALIBRATE_ATMOSPHERE intent
  66. availableMasks -- Returns the list of values in the masks keyword of a CASA image header
  67. averageAntPosResults -- Takes multiple results from tc_antpos and generates a new XML file with weighted mean corrections
  68. averageTheRepeatedValues -- Accepts paired lists and averages the entries that have the same x value
  69. azelSeparation -- Computes azimuth and elevation separation between scans of different intents
    B
  70. baarsTaperFactor -- Converts a taper in dB to the constant X in the formula FWHM=X*lambda/D for a parabolic illumination pattern.
  71. bandforspw -- Determines the ALMA receiver band for a specified spw of a measurement set (or msmd instance)
  72. bandNumberFromSpwName -- Parses the receiver band from the spw name
  73. bandpasscalScansFromASDM -- Gets list of scans with CALIBRATE_BANDPASS intent
  74. bandpassPreAverage -- Computes the recommended frequency solint for bandpass calibration
  75. bandToFreqRange -- Converts ALMA band number to frequency range (in integer GHz)
  76. bandwidthsForField -- Returns the bandwidths of all spws used to observe the specified field
  77. beamCorrectionFactor -- Equation 14 and 15 of Gordon, Baars and Cocke
  78. beamSolidAngle -- Computes the effective solid angle of a Gaussian beam.
  79. blcTrcToLineSegments -- converts a BLC and TRC pixel to a list of line segments that outline the rectangle sides
  80. brightestMosaicField -- Uses meanVisibility to find the brightest field from among a list of mosaic fields
  81. build_amc_exec_list -- Builds a list of analyzemscal commands corresponding to a list of ms's in a pipeline test results area
  82. build_ms_list -- Builds a list of ms's in a pipeline test results area for use in scripting additional casa commands
  83. buildConfigurationFile -- Creates a .cfg file of antenna pad positions (useful for simobserve) for the specified ALMA or VLA ms.
  84. buildHybridMask -- Takes a 3D mask and a flat mask, and puts the flat mask into any channels that are blank
  85. buildMinorPlanetPlot -- queries JPL Horizons (or CASA) for the position of a list of solar system bodies and creates a Gildas ASTRO script to plot their elevation vs. LST at ALMA, EVLA, GBT, CARMA or Mauna Kea
  86. buildPdfFromPngs -- takes a list of .png files and concatenates them into a multi-page PDF
  87. buildtarfile -- builds a tar file of the minimum number of files needed to distribute analysisUtils for use in casa
    C
  88. calcAndPlotAtmosphere -- simply way to overlay atmospheric curve an any plot that is vs. frequency
  89. calcAtmTransmissionforImage -- given an image, computes the atmospheric transmission vs channel
  90. calibratorService -- Accesses the prototype JAO calibrator flux density server
  91. calLibraryCaltables -- Return a list of caltables mentioned in a cal library file
  92. caltableOutlierSNR -- Reports outlier solutions in a caltable based on the SNR column
  93. casaEphemeris -- Reads information about an specified ephemeris table in the CASA data repository
  94. casalogClockTime -- Reads the timestamps from first and final line of a casa log and computes interval
  95. casaVersionFromCaltable -- Reads the CASA version string from the keywords of a caltable
  96. casaVersionFromLogfile -- Reads the CASA version string from the top of a CASA log file
  97. casaVersionFromWeblog -- Reads the CASA version string from a pipeline weblog
  98. celsiusToKelvin -- Adds 273.15 to the value
  99. centralObstructionFactor -- Computes the scale factor of an Airy pattern as a function of the central obscuration of an antenna
  100. changeFieldInCaltable -- Changes all appearances of a field ID in a caltable to another ID
  101. changeFieldForScan -- Changes the field ID associated with a scan (or list of scans) in a measurement set
  102. changeSourceFrame -- Relabels the frame of the sources in the SOURCE table (e.g. 'ICRS' or 'J2000')
  103. channelAverageChannels -- Computes the channels used by ALMA to define the channel-average spws
  104. channelSelectionArrayToRangeString -- Converts a list of channels into a CASA channel selection range string
  105. channelSelectionRangesToIndexArray -- Converts a CASA channel selection range into a list of channels
  106. channelsForPreBandpass -- Compute the channel range corresponding to the central bandwidth of an spwprojects/cbrogan/From_Lustre/G358_data/2018.A.00031.T/Band6_lowres_2019.29_1stB6/CONTINUUM
  107. channelsInBandpass -- Reads bandpass table and returns middle element of the numpy.shape for the specified spw
  108. checkALMALogs -- Downloads and searches the ALMA computing logs over a specified time range or dataset execution
  109. checkAntennaPositionFiles -- Shows the most recent entries in the antennaMoves.txt and almaAntPos.txt
  110. checkDelays -- Checks for delay jumps and large delays on an integration-by-integration basis by running gaincal('K')
  111. checkFieldTable -- Checks whether any fields in the FIELD table are associated with multiple source IDs
  112. checkGeodetic -- Checks the final date in all the Earth Rotation Service files stored in CASA
  113. checkGeodeticTableDate -- Checks the keyword values (including VS_DATE) in one specified Earth Rotation Service file stored in CASA
  114. checkLogsForDelayJumps -- Runs checkALMALogs in search of late-arriving delay commands
  115. checkLogsForSubarrays -- Runs checkALMALogs in search of Array creation events
  116. checkOrder -- Takes two lists, and if the first list is in decreasing order, then it inverts both lists
  117. checkSamplers -- Compares channel 0 to adjacent channels in the TDM spectral windows and reports large ratios
  118. checkScienceSpwIFRanges -- Compares spw edges to baseband edges and returns dictionary of those within a threshold
  119. checkScienceSpws -- Compares science spw ID numbers between multiple measurement sets and reports if any differ
  120. checkScienceSpwSamplerRanges -- Returns a dictionary of all spws that lie within 30 MHz of the 2 or 4 GHz edge of the baseband
  121. checkScienceSpwsFromASDM -- Compares science spw ID numbers between multiple ASDMs and reports if any differ
  122. checksourceOffset -- Examines an ALMA pipeline working directory for check source images and draws their offset vectors on an RA/Dec plot centered on science target
  123. checksourceOffsetUncertainty -- Computes uncertainty in the position offset of the check source (or any point source whose image has been fit)
  124. checksourcePresent -- Returns True or False depending on presence of checksource observation in a dataset
  125. checkSourceTimeRatio -- Returns the fraction of time on check source intent compared to phase intent
  126. checkVirtualSpwsNeeded -- returns a list of pipeline runs in specified directory that require virtual spw mechanism in at least one EB
  127. check_for_time_gaps -- Checks for time gaps in the ALMA TMC database for a specified monitor point on a specified date
  128. clearPointingTable -- Removes all rows from the POINTING table of a measurement set.
  129. clearSpwFlags -- Clears channel-based flags in a specified spw and field ID
  130. clearTable -- Removes all rows from the specified table of a measurement set.
  131. coldMultiplier -- Returns cold multipler harmonic for ALMA receiver band
  132. columnStatistics -- Computes basic statistics on one column from an ASCII file
  133. combineConfigs -- Concatenates multiple antenna config files, discarding duplicate entries
  134. commonAntennas -- Find the antenna names common to two (or more) measurement sets
  135. commonPads -- finds pads that are shared by specified list of configurations (any observatory)
  136. compareAntennaPositionCorrections -- computes the difference between two sets of antenna position corrections meant for gencal
  137. compareAntPosResults -- compiles results from a bunch of baseline runs onto per-antenna plots
  138. comparedASDMSizeToCalibratedMS -- computes the size ratio of *.ms to ASDMs in a pipeline run
  139. compareCalLibraries -- compares the parameters of each line of two cal libraries
  140. compareFlagFiles -- Prints differences between two files
  141. compareFlags -- Compares the count of flags in two similar measurement sets
  142. compareFluxcsv -- Compares the contents of flux.csv file between two pipeline runs
  143. compareFluxesFromGfluxscaleWeblog -- Scrapes the hifa_gfluxscale weblog page for flux densities in two pipelines and computes differences
  144. compareGfluxscaleCommands -- prints the shorthand for all the gaincal calls in the hifa_gfluxscale tasks of two pipeline runs
  145. compareGfluxscaleflagCommands -- prints the shorthand for all the gaincal call in the hifa_gfluxscaleflag tasks of two pipeline runs
  146. compareHanning -- Compares online-Hann window weighting in correlator with offline hanningsmooth function
  147. compareHeaders -- Compares two dictionaries, key by key
  148. compareMeanVisibility -- Compares the mean visibilities between two measurement sets
  149. comparePdfs -- Compares each individual pair of pages of two multi-page PDFs using the ImageMagick compare command
  150. comparePipelineTaskExecutionTimes -- Compares the task split time and running elapsed time of two pipeline runs
  151. comparePipeRuns -- Compare information about pipeline runs pickled with picklePipeRun (R. Indebetouw)
  152. comparePngs -- Compares two pngs images using the ImageMagick compare command.
  153. compareRFandIFRanges -- Prints RF and IF ranges of science spws, and computes differences between EBs
  154. compareScanTimesWithSysCal -- Makes a summary plot of scan times and validity intervals of Tsys scans
  155. compareTables -- Compares two CASA tables, column-by-column and reporting if they differ
  156. compareTAIUTC -- Compares the contents of the TAIUTC tables of two different CASA builds
  157. compareTimegaincalCommands -- prints the shorthand for all the gaincal calls in the hifa_timegaincal tasks of two pipeline runs
  158. compareTimesFromAnnotationTableToBandpassPreAverage -- Computes change in SNR if SSR determined times were to be used
  159. compareTimesFromCaltables -- Checks number of rows in two caltables and if equal, does statistics on the time differences
  160. compareTMCDB -- Gets current pad and antenna position values from the TMCDB, compares to what is in the ASDM and compute gencal command
  161. compareTsysSpectralWindowTableChanFreqsWithMS -- Compares the frequency grid in a Tsys table to its parent ms spectral_window table
  162. compareWeights -- Compares the weights between two measurement sets.
  163. complexToAmplitude -- converts a complex image into its amplitude
  164. complexToImaginary -- converts a complex image into its imaginary component
  165. complexToReal -- converts a complex image into its real component
  166. complexToSquare -- converts a complex image into its square (amplitude**2)
  167. computeAggregateBandwidth -- Computes the aggregate bandwidth for a specific list of spws of a measurement set.
  168. computeAvgchannel -- Computes the avgchannel values to use (e.g. in plotms) to display multiple spws smoothed to a common sensitivity bandwidth
  169. computeAzElFromRADecHourAngle -- Computes the Az/El for a specified Declination, hour angle, and observatory
  170. computeAzElFromRADecLST -- Computes the Az/El for a specified J2000 RA/Dec, LST, and observatory
  171. computeAzElFromRADecMJD -- Computes the az/el for a specified J2000 RA/Dec, MJD and observatory
  172. computeAzElForMS -- Computes the min/max/mean or median az/el for the aggregate of scans of a measurement set (optionally ignoring certain calibration scans)
  173. computesAzElForScan -- Computes the azimuth and elevation for the first integration of a specified scan in a measurement set
  174. computeClockTimeOfMS -- computes the elapsed time from the first through last scan
  175. computeDurationOfScan -- computes the number of subscans in a particular scan and their duration
  176. computeDurationOfScans -- runs computeDurationOfScan for a list of scans
  177. computeEffectiveBaseline -- Implements the definition in EVLA memo 49 for a list of baselines
  178. computeExpectedFWHM -- given a Gaussian beam and the diameter of a uniform disk, computes the expected observed FWHM
  179. computeIntervalBetweenTwoDays -- computes number of days between two YYYY-MM-DD strings
  180. computeITRFCorrection -- Computes the corrections to make to absolute geocentric coordinates XYZ (i.e. pad position) from an offset position given in local coordinates (i.e. antenna position).
  181. ComputeJulianDayFromUnixTime -- converts a unix time (in seconds) to Julian date
  182. ComputeLST -- Computes the LST time in hours for a specified MJD seconds and longitude
  183. computeLSTForElevation -- Computes the LST that an object passes the specified elevation
  184. ComputeLSTDay -- Computes the LST day, time, Julian day and time for a specified date/time and longitude
  185. computeMeanSpectrumFromMask -- Given a cube and a mask, returns the mean spectrum using ia.getprofile
  186. computeNBaselines -- Returns number of baselines for a specified number of array elements
  187. ALMA.ComputeNRAODopsetLST -- Computes the lihttps://ictjira.alma.cl/browse/ICT-20919?jql=text%20~%20%22receptor%20angles%22ne of text that specifies the LST needed in an input file to NRAO dopset for a specific measurement set
  188. computePercentiles -- Computes the requested percentiles for an array and returns a dictionary
  189. computeRADecFromAzElMJD -- computes the J2000 ra/dec for a specified az/el, MJD and observatory
  190. computeRADecFromAzElUnixtime -- Reads an ASCII file with unixtime, azimuth and elevation and produces a new file with UT, RA, Dec, HA
  191. ComputeSolarAzEl -- Computes the azimuth and elevation of the sun for the specified time and observatory
  192. ComputeSolarRADec -- Computes the RA, Dec of the sun (in units of hours and degrees)
  193. ComputeSolarRADecRadians -- Computes the RA, Dec of the sun (in units of radians)
  194. computeStdDevMonteCarlo -- Computes Y and its uncertainty given uncertainties on a fitted slope and intercept, and a value of X
  195. computeTskyForSpw -- computes the sky temperature for the specified spw of a measurement set, using its PWV value.
  196. computeUTForElevation -- Computes the UT times that a specified source passes the specified elevation at your observatory
  197. computeUVThreshold -- Runs getCorrectedData and computes median and mad in uv bins
  198. computeYLimitsForXLimits -- Computes the Y-axis limits to autorange over the specified x-axis range
  199. computeYStatsForXLimits -- Computes the Y-axis statistics (mean, std, median, min, max) over the specified x-axis range, rather than over the whole range
  200. concatenateFiles -- Concatenates a list of text files and (optionally) deletes them
  201. configs -- List the .cfg files in the data/alma/simmos CASA directory
  202. configurationNearestNeighbors -- Finds the nearest neighbor antenna and distance for each antenna in a configuration file
  203. consolidateFlagCommandFile -- Reads a pipeline-generated flag command file and finds the union of all channel-based flags for a specific spw.
  204. consolidateFlagCommandFileByStage -- Calls consolidateFlagCommandFile() after first working out the name of the file to used based on the pipeline stage number.
  205. continuumDefault -- Returns the mean frequency of the continuum default tuning in the specified ALMA band
  206. convertAntennaDictionaryToPad -- Converts a dictionary keyed by antenna name to one keyed by pad name
  207. convertColonDelimitersToHMSDMS -- Converts HH:MM:SS.SSS, +DD:MM:SS.SSS to HHhMMmSS.SSSs,+DDdMMmSS.SSSs
  208. convertfieldframe -- Converts the frame of a field in the FIELD table (e.g. to 'J2000' or to 'ITRF')
  209. convertPadDictionaryToAntenna -- Converts a dictionary keyed by pad name to one keyed by pad antenna
  210. convertImageToDirectionType -- Converts a CASA image with Linear coordinate system type (e.g. ALMA astroholography) to Direction type
  211. convertSMAAntennaPositionsToPads -- Converts arrays of SMA antenna local coordinates into SMA pad number names
  212. convertTimeStamp -- converts a makeTimeStamp string to Julian day number
  213. convertTimeStamps -- converts a list of makeTimeStamp strings to a list of Julian day numbers
  214. copyflags -- Copies the flag and flag_row columns from one dataset to another
  215. copyTsys -- copies some or all of the Tsys values in a Tsys caltable from one antenna to another
  216. copyweights -- Copies the weights from the WEIGHT column (scalar) to the WEIGHT_SPECTRUM column (vector)
  217. correlatorDatarate -- Computes data rate for ALMA in accordance with IST memo on "Estimated data rates for the WSU"
  218. countChannels -- Counts the number of channels in a CASA channel selection string
  219. countChannelsInRanges - Counts the number of channels in each subrange of a single spw selection string
  220. countflags -- count the percentage of flagged data in an MS
  221. countMaskedPixels -- returns the number of pixels in a CASA image that are masked
  222. countUnmaskedPixels -- returns the number of pixels in a CASA image that are not masked
  223. countrows -- count the number of rows associated with each spectral window in an MS
  224. countPagesInPDF -- counts the number of pages in a PDF
  225. countVisibilities -- counts the number of visibilities in a measurement set
  226. createTsysTable -- Creates a blank Tsys table using the cb tool
  227. crossCaiSelection -- Finds baseline names that cross the CAI=32 boundary for a specified measurement set (see also lowCaiSelection)
  228. cryostatCartridgeLocation -- Computes distance from cryostat axis to cartridge axis for specified Band
  229. cryostatWindowLocation -- Computes distance from cryostat axis to window center for specified Band
  230. cubeInfoFromWeblog -- Reads information on cubes from the hif_makeimages weblog
  231. cubeLSRKToTopo -- Convert cube's frequency range back to TOPO
  232. cycleTime -- Computes median time between visits to a specified intent (default: PHASE)
    D
  233. dataratesForASDM -- Computes data rates for an ASDM
  234. dateFromDoy -- computes the date (time) string from a year and a day-of-year
  235. datasetsForMOUS -- gets the EBs for an MOUS, filtering by array type
  236. datasetsForProjectCode -- gets the EBs for a project code, filtering by array type
  237. dateStringListToMJDSecList -- converts a list of date strings ("yyyy/mm/dd hh:mm:ss") to a list of MJD seconds
  238. dateStringListToPlotDate -- converts a list of date strings ("yyyy/mm/dd hh:mm:ss") to a list of datetime structures suitable for pylab.plot_date
  239. dateStringDifference -- computes the number of minutes between two datestrings, as from a CASA log
  240. dateStringToMJD -- converts "yyyy/mm/dd hh:mm:ss" to MJD
  241. dateStringToMJDSec -- converts yyyy/mm/dd hh:mm:ss to MJD seconds, which is needed to specify plotrange for time in plotms
  242. dateStringToUnixTime -- converts a UT date/time string to unixtime in seconds
  243. dateTimeListToMJDSeconds -- converts a list of datetime structures to a list of MJD seconds (inverse of mjdSecondsListToDateTime)
  244. decimate3DArrayByMean -- reduces the length of one axis of a 3D array
  245. deconvolveDiskFromBeam -- the inverse function of computeExpectedFWHM
  246. decrad2dms -- Convert radians of declination to sexagesimal DD:MM:SS
  247. defaultReceptorAngles -- Returns a dictionary of values per band, or the values for a specific band
  248. defaultSBGainsForBand -- Returns the default sideband gains for the signal and image bands used by TelCal
  249. deg2radec -- Convert a single RA/Dec position from degrees to a sexagesimal string
  250. degfile2radec -- Convert a list of RA/Dec positions in a file from degrees to sexagesimal strings
  251. delayCalculations -- Useful calculations for designing the next generation ALMA correlator
  252. detectNegativeTrx -- searches the SYSCAL table of the ms for negative receiver temperatures and reports them
  253. detectNegativeTsys -- searches the SYSCAL table of the ms for negative system temperatures and reports them
  254. differencePhaseSolutions -- takes the phase difference between two CASA gaincal tables
  255. differencePipelineContDat -- takes the difference between two cont.dat files (must match in number of ranges)
  256. directionList2radecDegrees -- convert a list of CASA direction dictionaries into a list of RA, Dec values in degrees
  257. direction2rad -- extracts the direction as a radian list from a CASA direction dictionary
  258. direction2radec -- converts a CASA direction dictionary to RA, Dec string in sexagesimal format
  259. direction2radecForSimobserve -- converts a direction dictionary to RA, Dec string in sexagesimal format that simobserve expects
  260. directorySize -- computes the size of a directory tree in bytes
  261. dminfo -- prints the contents of tb.getdminfo into a text file
  262. doubleIntervalInSysCal -- adjusts the INTERVAL and TIME columns of the SYSCAL table
  263. doyFromDate -- gets the day of year from the specified date time string
  264. DrawAntennaLegend -- writes colorized antenna names just outside the right side y-axis edge of a plot
  265. dutyCycle -- computes duty cycle of observing the science target in ALMA measurement set (ignoring subscan latency)
    E
  266. editFieldname -- Change a field name in a measurement set (FIELD and SOURCE tables)
  267. editFieldnameASDM -- Change the field name in the ASDM (in all 4 xml files where it appears)
  268. editIntents -- change the intents for a specified field in an ms (based on John Lightfoot's pipeline script)
  269. editIntentscsv -- change the intents in a list of measurement sets based on a csv-text file
  270. effectiveAntennas -- converts a number of baselines into the equivalent number of antennas for sensitivity purposes
  271. effectiveBandwidth -- Reads the effective bandwidth of a channel of an spw from a measurement set
  272. effectiveBandwidthASDM -- Reads the effective bandwidth of a channel of an spw from an ASDM
  273. effectiveBaseline -- Implements the definition in EVLA memo 49 over all baselines of a measurement set
  274. effectiveResolution -- Reads the effective resolution of a channel of an spw from a measurement set
  275. effectiveResolutionASDM -- Reads the effective resolution of a channel of an spw from an ASDM
  276. effectiveTaper -- Converts an observed value of the constant X in the formula FWHM=X*lambda/D into an edge taper in dB
  277. elevaitonSeparationOfFields -- computes global or per-scan mean elevation separation between all combinations of fields in a dataset
  278. elevationSeparationPhaseScience -- computes mean separation in elevation between first phase calibrator and each science target
  279. elevationToAirmass -- Converts an elevation in degrees to airmass
  280. emulateLowGainFlag -- Computes antenna/spw combinations that will be flagged by hif_lowgainflag
  281. emulatePipelineTsysFlagDerivative -- Emulates the pipeline's h_tsysflag stage's derivative heuristic returning a dictionary of the expected min/max of the flagging view
  282. epochToDatestring -- Converts year fraction to date/time string
  283. epochToJD -- Converts year fraction to JD
  284. epochToMJD -- Converts year fraction to MJD
  285. equivalentDiskDiameter -- Computes size of top-hat disk that would reproduced the measured size of a marginally-resolved object in an image
  286. estimateMRS -- Computes the MRS=LAS for a specified measurement set
  287. estimateMRSForConfig -- reads an antenna config file and computes the expected maximum recoverable scale for a specified frequency
  288. estimateOpacity -- converts a value of PWV and frequency to opacity as a function of observatory site
  289. estimateSynthesizedBeam -- reads a measurement set and computes expected beamsize
  290. estimateSynthesizedBeamForConfig -- reads an antenna config file and computes the expected beamsize for a specified frequency
  291. estimateSynthesizedBeamFromASDM -- read the max baseline and representative frequency from an ASDM and compute beamsize
  292. everOccupied -- determines if a specific ALMA pad has ever been occupied (as indicated by antennaMoves.txt)
  293. examineContext -- prints the science goal values from a pipeline context file
  294. exportAndGetWeatherStationPositionFromASDM -- exports ASDM if necessary, then returns the position of the first weather station containing the specified string
  295. extendIntervalInSysCal -- increases the value in the INTERVAL column in all rows of the specified caltable
  296. extractAzimuthalAverageFromImage -- uses azimuthalAverage to compute and write out the radial profile of 1..3 images
  297. extractCutFromImage -- extra a single row or column from a CASA image, and optionally run a Gaussian fit on it
  298. extractGaincalParameters -- extract key parameters for a list of gaincal task calls
  299. extractGfluxscaleResultsFromContext --
  300. extractMetadataFromContext --
  301. extractPipelineStage -- extracts the pipeline stage number from a pipeline-generated file
  302. extractPngListFromCSVFile -- extracts all the png filenames from a CSV-format file
  303. extractSensitivitiesAndBeams --
  304. extractSensitivitiesFromContexts -- gets image sensitivities from the per-stage saved_state results objects in the weblog dir
  305. extractSetJyCommandsFromCasaCommandsLog -- extracts all setjy calls from a casa_commands.log
  306. extractSpatialAxisValues -- extracts the array of RA or Dec values from a CASA or FITS image
  307. extractTcleanCommands -- extracts the tclean commands for a specified intent from a pipeline CASA log
  308. extractTcleanCommandsAndModify -- extracts the tclean commands for a specified intent from a pipeline CASA log, modifies them and writes them into a script
  309. extractTimegaincalCommandsFromCasaCommandsLog
  310. extractTimegaincalSummaryFromCasaCommandsLog -- extracts a shorthand list of gaincal calls (for debugging PIPE-1154)
    F
  311. farfieldDistance -- Computes the Fraunhofer distance for a specified observation or combination of baseline length and frequency
  312. fieldsfornames -- Extends the msmd method fieldsforname to a list of names
  313. fillAsdmList -- Takes a list of ASDMs from the same array/night and fills in the missing leading characters where missing
  314. fillZerosInDate -- Add leading zeros to month and day in a date string
  315. filterAndDecimate -- Runs a low-pass filter and decimates a signal by an even factor
  316. filterAndDecimateFromFile -- Reads a 2-column ascii file and runs filterAndDecimate on the signal it contains
  317. filterDictionary -- Filters a dictionary so that it only has keys that are present in a second dictionary
  318. filterOutLines -- Removes all lines from a file that match a string
  319. findAzimuthOfNearestPadToPad -- Computes the azimuth vector from an ALMA pad to its nearest neighbor
  320. findChannel -- Finds the channel in a cube that is nearest in frequency to a specified channel in a different cube
  321. findConfigurationFile -- Searches for an antenna configuration file in the current directory, then the CASA repository
  322. findContinuum -- Reads a dirty cube, psf and pb images and produces recommended continuum channel ranges. This function is not in ananlysisUtils, but is distributed in the ALMA pipeline in the directory: pipeline/extern/findContinuum.py.
  323. findDaytime -- Finds the range of date values corresponding to daylight hours suitable for marking a pylab.plot_date plot
  324. findFindcontPlot -- Finds the findContinuum png in an ALMA imaging pipeline weblog for the specified science target cube
  325. findFindcontResidualCubes -- Finds the list of findcont cubes from a pipeline run
  326. findFindcontResidualJointMasks -- Finds the list of findcont joint masks from a pipeline run
  327. findFindcontStageDir -- Finds the html/stage26,28 directory for the hif_findcont stage of an ALMA imaging pipeline weblog
  328. findFindcontStageNumber -- Returns the stage number for the hif_findcont stage of an ALMA imaging pipeline run using its weblog
  329. findFWHM -- Finds the full-width at a specified fraction of the maximum from two lists (x,y)
  330. findGfluxscaleStageDir -- Locates the stageXX directory of the hifa_gfluxscale weblog page
  331. findImageSpwsFromCasalog -- Examines a pipeline CASA log file and finds the spws images on the science target
  332. findLineNumber -- Finds the line number of the first occurrence of a string in a file
  333. findLineNumberAndTimestamp -- Finds the line number and timestamp of the first occurrence of a string in a CASA log file
  334. findNearestField -- Find the entry in a list of RA,Dec's nearest to a specified RA,Dec
  335. findNearestFieldInVis -- Find the field in a measurement set nearest to a specified RA,Dec
  336. findNearestPadToPad -- Find the nearest neighboring pad to a specified ALMA pad
  337. findNearestPadToXYZ -- Finds the nearest ALMA pad to a specified ITRF position
  338. findNearestVLBISources -- Searches the Petrov catalog around a specified direction
  339. findNull -- Find the baseline length corresponding to a specified fractional peak amplitude of a uniform disk source
  340. findOffsetAxis -- Find which axis (or the length thereof) of a CASA image contains the name 'Offset' (as created by impv)
  341. findPipelineAllcontCubes -- Finds number (or names) of cubes that have only .iter0. meaning findcont returned All Cont.
  342. findPipelineAmpCalTable -- Finds the name of the timegaincal amplitude table
  343. findPipelineCalibratorTcleanCommand -- Extracts the tclean command from casa_commands.log for specified calibrator intent
  344. findPipelineCalTable -- Finds a file matching a specified wildcard string
  345. findPipelineCasaCommandsLog -- returns the path to the casa_commands.log in a pipeline run
  346. amc.findPipelineCasaLogfile -- searches the specified directory tree for the newest casa log file, optionally containing an applycal call on a specified ASDM
  347. findPipelineCasaVersion -- Searches either the CASA log or the pipeline weblog to get the pipeline version string
  348. findPipelineCubes -- finds a list of all cleaned cubes in a pipeline working directory
  349. findPipelineImage -- finds the name of the image file in a pipeline working directory corresponding to the specified field and spw
  350. findPipelineImages -- finds all the image names made by the pipeline
  351. findPipelineRunCasaLogs -- Searches a pipeline execution directory and returns a list of casa log files, optionally containing a call to one of a list of tasks
  352. findPipelineTaskExecutionTimes -- Assembles a list of time intervals from a CASA log of a pipeline run
  353. findPipelineTsysCalTable -- Finds the path of the tsys caltable
  354. findPipelineTsysCalTablePlot -- Finds the path of the weblog plot for the tsys caltable for a specified spw and antenna
  355. findPixel -- Takes an image and converts a pixel to an RA,Dec and (optionally) the separation from a reference position
  356. findPixels -- Takes an image and converts a list of pixels to a list of RA,Decs and (optionally) the separation from a reference position
  357. findRADec -- Takes an image and converts an RA, Dec value to pixel value
  358. findSpectralAxis -- Finds the number of the spectral axis of an image cube
  359. findStokesAxis -- Finds the number of the Stokes axis of an image cube
  360. findWeblog -- Uses the unix find command to locate a weblog in a directory tree (i.e. faster if you start from /working)
  361. fitFitsBeam -- Fits a PSF image, which is useful if the header contains no beam
  362. fitLapseRate -- fits the temperature lapse rate measured by the oxygen sounder
  363. fitLapseRateAndScaleHeightASDM -- fits the lapse rate and scale height measured by the oxygen sounder for the start time of an ASDM
  364. fitLapseRateAndScaleHeightASDMs -- fits the lapse rate and scale height measured by the oxygen sounder for the start time of a list of ASDMs
  365. fitScaleHeight -- fits the water vapor density scale height measured by the oxygen sounder
  366. fixASDM -- Restores the missing newline character at the end of every .xml file of an ASDM
  367. fixBandwidthsInASDM -- Fixes the effective resolution and effective bandwidth of pre-Cycle-3 ASDMs
  368. fixBandwidthsInMOUS -- Fixes the effective resolution and effective bandwidth of a list of pre-Cycle-3 ASDMs
  369. fixConcatSigmaSpectrum -- Fix for CAS-9238 (concat not copying the sigma_spectrum column for subsequent ms)
  370. fixFeedTableTimes -- Copies the time in the first row of the FEED table to all rows
  371. fixMyDelays -- read the Delay solutions from the ASDM, and compute a caltable to correct them
  372. fixpointing -- converts the MS POINTING table from commanded positions to encoder positions (from CSV-2878)
  373. FixPosition -- a class with various methods to fix problems with the direction of sources in an ms
  374. fixReceptorAngles -- Changes the value of the receptor angle in the FEED table of a measurement set
  375. fixScanNumbers -- Detects times when the field name changes, and increments the scan number (for SMA data read with sma2casa).
  376. fixuvw -- Runs calcuvw of the imtool toolkit to recalculate the UVW coordinates of a measurement set
  377. fixvisPermissions -- Runs chmod on all subdirectories of a specified directory
  378. fixWeblogPermissions -- Runs two Linux 'find exec' commands to fix directory and file permissions recursively
  379. flagcmdplot -- Runs flagcmd(action='plot') for each reason code, one at a time, and builds a multi-page PDF
  380. flagDurations -- Computes the durations of all flag commands in the FLAG_CMD table of a measurement set
  381. amc.flagMatrix -- Runs the agent flagger on each baseline and generates a display of baselines that are fully (or mostly) flagged
  382. flagReasons -- Returns a unique list of flag reasons from an ASCII flag commands file
  383. flagReasonStats -- Returns a dictionary of the percentage of data flagged by online flags for each reason
  384. flagTsysFeature -- Flags the SYSCAL table for a specified antenna, field, spw, which can be done at the pipeline pause after import
  385. flagTsysTable -- Flags a Tsys cal table by antenna, spw or time
  386. flattenMask -- Builds a 2D image mask from a 3D cube mask
  387. flipSignDeclination -- Flips the sign of declination for a source ID in the FIELD and/or SOURCE tables of a measurement set
  388. flipSignDeclinationSourcexml -- Flips the sign of declination for a source ID in the Source.xml file of an ASDM
  389. fluxCalibrationAccuracy -- Prints the percent accuracy per band claimed in the ALMA Cycle 6 technical handbook
  390. fluxcalScansFromASDM -- Gets list of scans with CALIBRATE_FLUX intent
  391. fluxscaleMean -- Compute the uncertainty-weighted mean of the flux density measurements in a fluxscale dictionary
  392. fluxscaleLogMean -- Compute the mean and standard deviations of flux densities reported in a sequence of fluxscale log outputs
  393. fluxscaleParseLog -- Extract the spectral index fit parameters from the ASCII file produced by the casa task fluxscale as needed by setjy.
  394. frames -- convert an optical velocity into different optical and radio frames (LSRK, TOPO)
  395. freqToBand -- convert a frequency to an ALMA Band number
    G
  396. gaincalMosaic -- Computes a list of field IDs that have a fraction of solutions above a threshold SNR
  397. gaincalSNR -- Computes the per-antenna SNR expected for gaincal(solint='inf') on a per-spw basis
  398. gaussianBeamOffset -- Computes the radius at which the response of a Gaussian beam drops to the specified level
  399. gaussianBeamResponse -- Computes the gain at a radial offset from the center of a Gaussian beam
  400. genImageName -- Generates an image name that follows the ALMA archive convention; used by NA manual imaging script template
  401. geoToAlma -- convert geocentric coordinates into local (horizontal ones)
  402. getAllBaselineLengthsFromASDM -- returns a list of the baseline lengths in an ASDM, by default sorted by length, with option to create a histogram
  403. getALMAFlux -- contacts ALMA calibrator catalog, computes the spectral index between Bands 3 & 7 and interpolates/extrapolates
  404. getALMAFluxcsv -- reads the initial pipeline-produced flux.csv file (and measurement set) and updates the flux densities into a new flux.csv file
  405. getALMAFluxForMS -- runs getALMAFlux for all fields in a measurement set
  406. getALMAFluxSMA -- Compare a list of SMA calibrator flux densities with the ALMA catalog and compute the statistics of the ratio.
  407. getALMASpectralIndex -- looks through history of calibrator catalog, computing spectral index for the closest Band 3/7 measurement(s)
  408. getALMASpectralIndexCycle6 -- looks through history of calibrator catalog, computing spectral index for the closest (with settable tolerance) Band 3/7 measurement(s)
  409. getAntennaIdsFromCaltable -- gets a list of unique antenna IDs that have solutions in a caltable
  410. getAntennaNames -- Returns the list of antenna names in the ANTENNA table of a dataset
  411. getAntennaNamesForObsID -- Returns the list of antenna names in a particular obsid of a dataset
  412. getAntennaNamesFromCaltable -- Returns the list of unique antenna names from a caltable
  413. getAntennaPadXYZ -- Gets the geocentric position of the pad holding the specified antenna ID in the specified measurement set
  414. getAntennaStationsFromCaltable -- Returns the list of unique antenna stations from a caltable
  415. getAntennaPads -- Returns a list of antenna station names from a measurement set
  416. getAntennaPadsForObsID -- Returns list or dictionary of pads for one portion of a concatenated measurement set
  417. getAntennaPadsFromASDM -- returns a dictionary of antenna/pad association for the specified ASDM
  418. getApexWeather -- retrieves weather for a whole day from the APEX telescope station
  419. getArrayIDs -- gets the list of ARRAY_ID for a measurement set
  420. getAtmcalStateIDsFromASDM -- reads the State.xml file of an ASDM and returns a dictionary
  421. getBand -- Converts a frequency in Hz to the ALMA band number (ambiguity in bands 2/3 overlap)
  422. getBandwidthFromCaltable -- Reports the bandwidth of an spw from the SPECTRAL_WINDOW table of a caltable
  423. getBasebandNumber -- Obsoleted by msmd.baseband
  424. getBasebandNumberFromASDM -- Gets the baseband number for an spw in an ASDM
  425. getBasebandNumbers -- Gets an array containing the baseband number of each spw in a measurement set
  426. getBaselineLength -- compute the baseline length between 2 antennas in an ms and its percentile for the configuration
  427. getBaselineLengthForStations -- compute the baseline length between 2 stations in an antenna config file
  428. getBaselineLengths -- returns a list of the baseline lengths in your ms, by default sorted by length, with option to create a histogram
  429. getBaselineLengthsMultiVis -- returns an aggregated list of the baseline lengths in a list of ms, by default sorted by length, with option to create a histogram
  430. getBaselineLengthsMultiVisMultiOUS -- runs getBaselineLengthsMultiVis for a list of pipeline runs in a directory
  431. getBaselinesInMainTable -- returns an array of tuples containing the antenna IDs of each baseline contained in the main visibility table
  432. getBaselineStats -- Compute statistics on the baseline lengths of the specified ms.
  433. getBaselineStatsFromASDM -- Compute statistics on the baseline lengths of the specified ASDM.
  434. getBaselineTsysFromCaltable -- returns a scalar value of Tsys for a baseline
  435. getCalibrationIntents -- Returns a list of calibration intents for a specified measurement set and field ID
  436. getCalibratorFromASDM -- Returns the name of the calibrator(s) observed for a specified intent from an ASDM
  437. getCalibratorFromASDMs -- Returns a dictionary of the calibrator(s) observed for a specified intent from a list of ASDMs
  438. getCalibrators -- Returns a list of calibrator names or source IDs from a measurement set.
  439. getCasaDataPath -- Finds data repository for current CASA
  440. getChanFreqFromCaltable -- Returns the frequency of the specified channel in the specified spw of a caltable
  441. getChannelAveragedScienceSpws -- Returns a list of channel averaged spws corresponding to the science spws
  442. getChannelAveragedSpw -- Finds the channel-averaged spw corresponding to a specified full resolution spw
  443. getChannelsWithBlankCleanMask -- Finds the list of cube channels with a mask and the list without a mask
  444. getChanRangeFromFreqRange -- written by Dirk Petry
  445. getChanWidths -- Return the channel widths of a specified ms and spw
  446. getChanwidthASDM -- Returns the physical channel width in Hz for an spw in an ASDM
  447. getChanWidthFromCaltable -- gets the width of a channel from one or all spws in a caltable
  448. getCOFA -- returns the center of the array for the specified ms, in XYZ and in longitude/latitude
  449. getCOFAForASDM -- returns the center of the array for the specified ASDM, in XYZ and in longitude/latitude
  450. getCOFAForObservatory -- returns the center of the array for the specified observatory name, in XYZ and in longitude/latitude
  451. getConfig -- Reads the configName value from the ASDM_EXECBLOCK table of an ms
  452. getConfigFromASDM -- Reads the configName value from the ExecBlock.xml file of an ASDM
  453. getConfigsForCycle -- Gets the list of configuration files containing "cycleX" in the name
  454. getCorrectedData -- Reads uvdist and corrected amplitudes
  455. getCorrelatorName -- reads the correlator name from the CorrelatorMode.xml file of an ASDM
  456. getCorrelatorNameFromMS -- reads the correlator name for the ASDM_CORRELATORMODE table, if it was imported
  457. getCryostatTemperaturesFromTMCDB -- reads the 6 cold cartridge temperatures from each receiver band
  458. getCurrentDate -- gets the current date in local time in the format 'YYYY/MM/DD'
  459. getCurrentMJDSec -- gets the current MJD in seconds
  460. getCurrentUnixTime -- gets current unix time from the system clock
  461. getDataColumnName -- gets the name of the data column of a measurement set
  462. getDataDescriptionID -- gets the DATA_DESC_ID for a specified spw (using tb tool instead of msmd)
  463. getDataDescriptionIDs -- gets the DATA_DESC_IDs for a specified list of spws (using tb tool instead of msmd)
  464. getDiameterForObservatory -- convert an observatory name to an antenna diameter
  465. getDistanceFromMedianPadLOCFromASDM -- gets the distance of each antenna from the median of all the pad locations in an ASDM
  466. getElevationStatsForIntentFromASDM -- gets the min/median/max elevation observed for a specified intent in an ASDM
  467. getEphemeris -- reads the ephemeris from the ASDM_EPHEMERIS table of a measurement set
  468. getEphemerisFields -- gets a list of ephemeris field names in a measurement set
  469. getEphemerisFieldsFromASDM -- gets a dictionary of ephemeris fields and their initial direction from an ASDM
  470. getEquinoxForField -- Gets the reference frame name for specified field in an ms (i.e. 'J2000' or 'ICRS')
  471. getExtremeBaselinePerAntenna -- computes min, mean, median, or max baseline length per antenna on an ASDM
  472. getExtremeSpws -- returns the spw ID for the spw containing the minimum and maximum frequency for the specified intent
  473. getFeedTableTimes -- Gets the unique values of the TIME column of the FEED table
  474. getFieldIDsForEphemerisID -- Returns a list of all field IDs that correspond to one ephemeris ID
  475. getFieldnameFromPipelineImageName -- Gets field name from an ALMA pipeline image name
  476. getFieldTime -- Gets the TIME for one cell of the FIELD table of an ms
  477. getFieldTimes -- Gets the TIME column of the FIELD table of an ms
  478. getFieldsFromASDM -- gets field IDs and names from an ASDM, as two dictionaries
  479. getFieldsFromCaltable -- gets a list of unique field IDs (of fields that have a solution) from a caltable
  480. getFirstScienceSpwBand -- Gets the band number of the first science spw (via the spw name string)
  481. getFitsBeam -- Extract the beam information from a FITS or CASA image.
  482. getFitsBeams -- Runs getFitsBeam for a list of images and prints a wiki table
  483. getFitsDate -- Extract the date information from a FITS or CASA image.
  484. getFlagdict -- Extract flagging dictionary using the af tool
  485. getFlagsFromCaltable -- Extract the number of flags from a caltable, or a dictionary of them
  486. amc.getFlagStatistics -- Uses the af tool to compute percentage of flagged data
  487. getFlux -- Uses the old Visibility class to read visibility data and scale it by the jyPerK value and geometric mean of Tsys and take the mean
  488. getFluxesFromAquaReport -- Used by plotGfluxscale to read derived and catalog flux from pipeline-generated aquareport.xml
  489. getFluxesFromGfluxscaleWeblog -- Reads flux densities from the middle row of each field solved for on the hifa_gfluxscale weblog page
  490. getFreqType -- Returns string TOPO or LSRK, etc. for a CASA image
  491. getFrequenciesFromASDM -- Get a list of the frequencies of each spw in the ASDM (extraneous WVR spws are skipped)
  492. getfwhm -- Directly estimate the actual FWHM of the CASA image provided, with no assumption about shape (Brian Mason)
  493. getfwhm2 -- An alternative to getfwhm which solves for radially-averaged zero crossing of (data-halfmax)
  494. getgain -- extract gain curve coefficients for a specified VLA antenna and band and make a plot vs. elevation
  495. getImfitEstimatesFixedString -- Reads the fixed parameter from each line of an imfit estimates file
  496. getIntegrationTime -- use the ms and msmd tools to get the integration time in a measurement set
  497. getIntegrationTimes -- Returns a dictionary keyed by one-word intent (e.g. 'BANDPASS[') of all pipeline-aware intents with value being the integration time in seconds
  498. getIntegrationTimeFromASDM -- reads the Main.xml file to find the longest integration time
  499. getIntensityForPixel -- Gets the intensity at a single pixel of a CASA image.
  500. getIntentsForFieldID -- gets all the intents for which a field was observed
  501. getIntentsFromASDM -- Makes a dictionary with field name as key and intents as the value.
  502. getIterFromPipelineImageName -- Gets the iter value (0,1,2) from an ALMA pipeline image name
  503. getLineFromFile -- Returns the contents of the specified line number from the specified text file
  504. getListOfFilesFromFile -- Reads a list of ASDM or measurement set names from a text file and returns a list of names
  505. getLO1 -- Returns the LO1 frequency in Hz for first science spw of a measurement set
  506. getLOs -- returns a list of four lists containing the LO information from the ASDM_RECEIVER table of a measurement set
  507. getLOsFromASDM -- Returns a dictionary of the LO values for every spw in the specified ASDM
  508. getLoadTemperatures -- Reads the load temperatures from the ASDM_CALDEVICE table (if present).
  509. getLongestProjectedBaselineInMainTable -- Reads the UVW column from main table and computes largest value of specified coordinate combination
  510. getMajorIntentsForFieldID -- gets all the major intents for which a field was observed
  511. getMaxBaselineInUnitsOfL80 -- Returns dictionary of max baseline in units of L80 for specified measurement set(s)
  512. getMaxBaselineInUnitsOfL80FromASDM -- Returns dictionary of max baseline in units of L80 for specified ASDM
  513. getMeanFreqFromASDM -- gets the number and mean frequency of the spws for each sideband
  514. getMeanFreqOfSpwlist -- gets the mean of the mean frequency of a list of spws
  515. getMeanFreqOfSpwSelection -- gets the mean frequency of an arbitrary spw/channel selection string
  516. getMeanGainFromCaltable -- computes mean complex gain for a specified spw and field in a non-spectral gain table
  517. getMeanPosition -- computes the mean RA and mean Dec of a list of positions
  518. getMeanPositionFromOTPointings -- gets the mean RA and Dec direction of a list of pointings output by the Cycle 4 OT
  519. getMeanScienceFreqOfSidebands -- computes the bandwidth-weighted mean of the spws in each sideband
  520. getMeanWeights -- gets the mean of the WEIGHT column from a measurement set
  521. getMeanWeightsPerAntenna -- gets the mean of the WEIGHT column from a measurement set on a per-antenna basis
  522. getMeasFreqRef -- reads the MEAS_FREQ_REF column of a SPECTRAL_WINDOW table of an ms, which encodes whether the frequency frame is TOPO or LSRK, etc.
  523. getMeasurementSetFromCaltable -- get the name of the measurement set associated with a caltable
  524. getMedianBaselinePerAntenna -- computes median baseline length per antenna on an ASDM
  525. getMedianPadLOCFromASDM -- gets the median location (in ENU coordinates) of all the pads in an ASDM
  526. getMedianPWV -- computes median and standard deviation of PWV for the specified ms (or the CalWVR.xml file in the pwd)
  527. getMedianTsys -- gets the median Tsys from one or more datasets
  528. getMedianTsysForChannel -- Computes the median over all antennas of a single Tsys channel in one spw in one ASDM
  529. getMedianTsysPerSpw -- Computes the median Tsys value per spw in a measurement set
  530. getMedianWeatherFromAIV -- Computes the median weather from weather.aiv.alma.cl for a specific time range
  531. getMedianWeatherFromAIVForASDM -- Computes the median/Mad of weather values from weather.aiv.alma.cl per scan of an ASDM
  532. getMedianWeatherFromTMCDB -- Computes the median weather from the TMCDB for a specific time range or ASDM
  533. getMemorySize -- gets the total memory of the current machine
  534. getMJD -- computes the current MJD
  535. getMJDSec -- computes the current MJD in units of seconds
  536. getMJDSecFromCaltable -- computes the mean MJD in units of seconds of the solutions in a caltable
  537. getMostRecentMove -- searches the antennaMoves.txt file for the most recent move for a specified antenna
  538. getNChanFromCaltable -- gets the number of channels from one or all spws in a caltable
  539. getNearestNeighboringPadToAntenna -- gets the nearest neighboring pad to an antenna in a measurement set, without regard to whether that pad was occupied
  540. getNearestNeighborsToAntenna -- gets a list of the N nearest neighbors to an antenna in a measurement set, and the corresponding distances
  541. getNominalObservatoryPressure -- computes the nominal barometric pressure for the tabulated height of a specified observatory
  542. getNonScienceTimeRanges -- Gets a list of time ranges of the scans NOT of a specified field or intent
  543. getNumChanFromASDM -- gets the number of channels for each spw
  544. getObservationDateRangeFromASDM -- gets the start and stop date and time of an ASDM
  545. getObservationEndDateFromASDM -- Reads the stop time of the observation from an ASDM and report it in date + UT time and MJD seconds
  546. getObservationIDs -- gets a list of the unique observation IDs from a measurement set
  547. getObservationLength -- gets length of measurement set observations in minutes
  548. getObservationLengthFromASDM -- gets length of ASDM observation in minutes
  549. getObservationMJDSecRange -- gets beginning and end time of an ms in MJD seconds
  550. getObservationMJDSecRangeFromASDM -- gets beginning and end time of an ASDM in MJD seconds
  551. getObservationStart -- Read the start time of the observation from an ms and report it in MJD seconds.
  552. getObservationStartDate -- Read the start time of the observation from an ms and report it in date and UT time.
  553. getObservationStartDates -- Read the start time of the observation from a list of measurement sets and report a list of dates and UT times.
  554. getObservationStartDateFromASDM -- Read the start time of the observation from an ASDM and report it in date + UT time and MJD seconds.
  555. getObservationStartDateFromASDMs -- Runs getObservationStartDateFromASDM on a list of ASDMs and writes a text file
  556. getObservationStartDay -- Read the start time of the observation from an ms and report only the UT date (YYYY-MM-DD).
  557. getObservationStop -- Read the stop time of the observation from an ms and report it in MJD seconds
  558. getObservationStopDate -- Read the stop time of the observation from an ms and report it in date and UT time
  559. getObservationSummaryFromASDM -- gets the start and stop date and time, and a list of antennas from an ASDM (or a list of them)
  560. getObservatoryFromConfig -- reads the telescope name from an antenna configuration file
  561. getObservatoryLatLong -- reads the latitude and longitude of an observatory from the CASA repository
  562. getObservatoryName -- reads the observatory name from the OBSERVATION table of an ms
  563. getObservatoryNameFromASDM -- reads the observatory name from the ExecBlock.xml file of an ASDM
  564. getOneWordIntent -- converts long intent name to the principle word
  565. getOnlineFlagsForScienceSpws -- inspects a flagging text file for lines that include science spw names
  566. getOUS -- read the OUS for an ASDM from the ExecBlock.xml file (note: it is not possible to get the project code from an ASDM)
  567. getOUSForUID -- retrieves the OUS name for an ASDM or measurement set without requiring that file
  568. getPadDistanceListForConfig -- compute distances to all pads from a reference pad
  569. getPadHeight -- gets the geocentric distance for one or all pads in a measurement set
  570. getPadHeightFromASDM -- gets the geocentric distance for one or all pads in an ASDM
  571. getPadLOC -- reads the local tangent plane coordinates for the specified pad name from the file AOS_Pads_XYZ_ENU.txt
  572. getPadLOCsFromASDM -- reads the pad position in ENU coordinates from an ASDM
  573. getPadPosition -- Gets a measures.position instance for the specified ALMA pad name
  574. getPadPositions -- reads the pad positions in geocentric XYZ coordinates from an ms
  575. getPadPositionsFromASDM -- Reads the pad positions in geocentric XYZ coordinates from an ASDM
  576. getPadsForConfig -- gets a list of pad names for the specified antenna configuration file
  577. getPadXYZ -- computes the XYZ geocentric coordinates any specified ALMA pad name in the file AOS_Pads_XYZ_ENU.txt
  578. getPadXYZFromASDM -- reads the XYZ geocentric coordinates for the specified ALMA pad name from the ASDM
  579. getPhaseCalibrators -- gets the field IDs of the phase calibrators in a measurement set
  580. getPhaseCenterForField -- calls getRADecForField and returns result in form amenable to tclean phasecenter parameter
  581. ami.getPipelinePBAndMask -- given the name of a pipeline image, determines the expected name for the corresponding pb and mask, returns them, and prints a warning if either one does not exist
  582. getPointingBands -- Gets a list of receiver band integers with pointing intent
  583. getPointingFieldOtherIntents -- Gets the other principle intents for all the pointing sources in a measurement set
  584. getPointingScans -- Gets a list of scans with pointing intent
  585. getPointingSpws -- Gets a list of spws with CALIBRATE_POINTING intent
  586. getPolarizationsFromASDM -- Reads the Polarization.xml file and reports the polarization products in each ID
  587. getPrimaryIntent -- Given a list of intents, return the fundamental intent
  588. getProjectedBaselines -- Uses ms tool to build a dictionary of mean projected baseline length, keyed by baseline name
  589. getProjectedBaselineStats -- Uses visstat to compute statistics of the projected baselines
  590. getProjectMOUSFromDir -- Gets the project name and MOUS from a pipeline execution directory path
  591. getProjectRunDir -- Extracts the project code / date-timestamp string from a pipeline-generated filename
  592. getRADecForField -- Returns the RA,Dec in radians for the specified field in the measurement set
  593. getRADecForFieldFromASDM -- Returns the RA,Dec in radians for the specified field ID in an ASDM
  594. getRADecForSource -- Returns the RA,Dec in sexagesimal for the specified source in the measurement set
  595. getRadialVelocityAtStart -- Reads RadVel from ephemeris attached to measurement set and returns entry nearest to start of measurement set
  596. getReceiverId -- Reads the ASDM_RECEIVER table of a measurement set and returns a single integer ID or list of IDs present
  597. getRegionCentroid -- computes centroid of a CASA region CRTF file
  598. getResampledWeatherFromDatabase -- Gathers and resamples weather values onto a common time series
  599. getSB -- Gets the UID of the schedule block for a measurement set
  600. getSBGain -- read the sideband ratio gains from the SYSCAL table of a measurement set
  601. getScanNumbersFromASDM -- Returns a list of scan numbers in an ASDM that have the specified intent
  602. getScansFromCaltable -- Gets the list of unique scan numbers from a caltable
  603. getScienceBasebandFrequencies -- Gets the center frequencies of the science basebands of an ALMA dataset (via the SQLD spws)
  604. getScienceBasebandIFRanges -- Gets the IF range of the science basebands of an ALMA dataset (via the SQLD spws)
  605. getScienceBasebandRFRanges -- Gets the RF range of the science basebands of an ALMA dataset (via the SQLD spws)
  606. getScienceBasebandSamplerRanges -- Gets the location of the science basebands in the sampler range (should always return 2-4 GHz if metadata are correct)
  607. getScienceChannelsInSameBaseband -- Returns the total number of channels in science spws in the same baseband as the specified spw
  608. getScienceFrequencies -- Gets a list of the central frequencies of science spws in a measurement set
  609. getScienceScans -- Gets a list of scans with specified intent
  610. getScienceScansForSpw -- Gets a list of scans with specified intent and spw
  611. getScienceSpwBandwidths -- Gets a list or dictionary of the bandwidths of the science spws
  612. getScienceSpwBasebands -- Gets a dictionary keyed by spw with values equal to their respective basebands numbers (1..4)
  613. getScienceSpwChanwidths -- Gets a list or dictionary of the channel widths of the science spws
  614. getScienceSpwFreqRanges -- Gets a dictionary of the frequency ranges (using getScienceSpws(returnFreqRanges=True))
  615. getScienceSpwIFRanges -- Gets the IF ranges of the science spws in an ALMA measurement set
  616. getScienceSpwNames -- Gets a list of the science spw full names
  617. getScienceSpwNChannels -- Gets a list or dictionary of number of channels in the science spws
  618. getScienceSpws -- Uses msmd to get a list of (full-resolution) science spws in a measurement set
  619. getScienceSpwSamplerRanges -- gets the location in the sampler range of 2-4 GHz of all science spws
  620. getScienceSpwTypes -- returns dictionary with number of 'FDM' and 'TDM' science spws
  621. getScienceSpwsForFrequency -- Gets a list of spws whose channels contain a specified frequency
  622. getScienceSpwsForScan -- gets a list of science spws recorded in a specific scan
  623. getScienceSpwsFromASDM -- Gets a list of spws that observed the science target (i.e. those with a velocity reference code)
  624. getScienceSpwSidebands -- Gets a dictionary keyed by science spws with values of 'LSB' or 'USB'
  625. getScienceSpwsInSameBaseband -- Gets a list of science spws that occupy the same baseband as the specified spw
  626. getScienceSpwsInSameBasebandFromASDM -- Gets a list of science spws that occupy the same baseband as the specified spw
  627. getScienceSpwTransitionsFromASDM -- Gets a dictionary of spectral line transition names for the science spws of an ASDM
  628. getScienceTargetFieldIDsFromASDM -- Returns a list of science field IDs for the nth science source of an ASDM
  629. getScienceTargetRADecsFromASDM -- Returns a list or dictionary of RA, Decs for the science fields of an ASDM
  630. getScienceTargetsFromASDM -- Gets an array of science targets from an ASDM
  631. getScienceTimeRanges -- Gets a list of time ranges of the scans of a specified field or intent
  632. getShadowedBaselines -- Gets list of projected baselines that are smaller than the antenna diameter during a scan
  633. getShortIntent -- Converts an intent name (like PHASE) to the pipeline image type abbreviation ('ph')
  634. getSourceFrame -- Reads the frame of the SOURCE table of a measurement set (e.g. 'J2000' or 'ICRS')
  635. ami.getSourceNameFromPipelineImageName -- Parses the source name from an ALMA pipeline image name
  636. getSourceTypeFromPipelineImageName -- Gets source type (bp,ph,flux,sci,chk) from ALMA pipeline image name
  637. getSpectralSpecNames -- Gets the list of unique spw name prefixes, that originate in the OT
  638. getSpwFromPipelineImageName -- Gets single spw ID from a single-spw ALMA pipeline image name
  639. getSpwImageSidebandFrequencyRange -- Computes the image sideband frequency range of a specified spw
  640. getSpwMeanFreqFromCaltable -- Gets the mean frequency for an spw from a caltable using its SPECTRAL_WINDOW subtable
  641. getSpwSelForFreqRange -- written by Remy Indebetouw
  642. getSpwsForBaseband -- gets the spws associated with a specific baseband number
  643. getSpwsForBasebandFromASDM -- gets the spws associated with a specific baseband number
  644. getSpwsFromCaltable -- gets a list of the unique spws from a caltable
  645. getSpwsFromASDM -- Returns a dictionary of the spw information for an ASDM
  646. getSpwsFromSysCal -- gets a list of the unique spws in a SYSCAL table of a measurement set
  647. getStandardTemperature -- computes the 1976 U.S. Standard atmosphere barometric pressure for a specified height
  648. getStandardTemperature -- computes the 1976 U.S. Standard atmosphere temperature for a specified height
  649. getStartTimeForFieldFromASDM -- gets a list of start times (in MJD) for a specified field name in an ASDM
  650. getStyleFromPipelineImageName -- Given a pipeline image name, returns 'mfs', 'cont', or 'cube'
  651. getSubscanTimesFromASDM - reads the subscan information from the ASDM and returns a dictionary including integration time, and computes latency
  652. getTargetsForIntent -- gets the target names observed for a specified intent in a measurement set (using msmd)
  653. getTargetsForIntentFromASDM -- gets the target names observed for a specified intent in an ASDM
  654. getTelescopeNameFromCaltable -- reads the observatory name from the caltable's OBSERVATORY subtable
  655. getTimesFromCaltable -- gets a list of the unique timestamps from a caltable
  656. getTPSampling - computes the spatial sampling of a single dish measurement set containing a total power raster map
  657. getTsysBands -- gets the band numbers that have Tsys scans
  658. getTsysFromCaltable -- returns an array of Tsys spectra
  659. getTsysFromSysCal -- reads the Tsys values from a SysCal.xml table into a dictionary
  660. getTsysScans -- gets the list of unique scans contained in a caltable
  661. getTsysSpws -- gets a list of spws that measured Tsys
  662. getTsysSpwsForBand -- gets a list of spws of a specific band that have measured Tsys
  663. getTsysSpwsForScan -- gets a list of Tsys spws recorded in a specific scan
  664. getUnflaggedAntennas -- Uses the af tool to determine the list of unflagged antennas in a measurement set
  665. getUnflaggedScans -- Uses the af tool to determine list of unflagged scans for a specific spw and field
  666. getUT -- gets the current Universal Time in hours
  667. getvisdensity -- returns the average density of visibility points for the specified ms
  668. getxyFromFile -- Gets two columns of data from an ASCII file, as numpy arrays
  669. getWeather -- Gets weather information from a measurement set
  670. getWeatherFromAIV -- Retrieves weather values from weather.aiv.alma.cl
  671. getWeatherFromASDM -- Extracts weather values from an ASDM
  672. getWeatherFromTMCDB -- Extracts weather values from the TMCDB
  673. getWeatherStationNames -- Gets the weather station names from a measurement set
  674. getWeatherStationNamesFromASDM -- Gets the ALMA weather station names from an ASDM
  675. getWeatherStationPositions -- Gets the weather station positions from a measurement set
  676. getWeatherStationPositionsFromASDM -- Gets the weather station positions from an ASDM
  677. getWeightedMeanScienceFrequency -- Computes the weighted mean science spw frequency for a list of measurement sets, weighted by data weights on a per-spw, per-vis basis
  678. gfluxscaleMockup -- Generates plots of gfluxscale results and image peak and rms for each non-flux calibrator in each ms of a pipeline run
  679. gjincBeam -- compute the effective restoring beam obtained from the casa command sd_imaging using the GJinc gridding function
  680. goldsmithTaperFactor -- Converts a taper in dB to the constant X in the formula FWHM=X*lambda/D for a Gaussian illumination pattern
  681. grep -- Runs grep on a file in a subprocess 1 getExtremeBaselinePerAntenna -- computes min, mean, median, or max baseline length per antenna on an ASDM
  682. grepAntennaMoves -- Runs grep for a specific antenna on the antennaMoves.txt file distributed with analysisUtils
  683. gridSourceReport -- Builds a report of the age of the most recent measurement of the grid sources in each band
    H
  684. headerToArcsec -- Convert any CASA angle quantity to arc seconds
  685. headerToDegree -- Convert any CASA angle quantity to degrees
  686. headerToRadian -- Convert any CASA angle quantity to radians
  687. help -- prints a list of all the functions defined at the top level of analysisUtils.py
  688. hmsToDegrees -- Converts string of "HH", "HH:MM" or "HH:MM:SS" into floating point degrees
  689. hmsToHours -- Converts string of "HH", "HH:MM" or "HH:MM:SS" into floating point hours
  690. hmsToInterval -- Converts string of "00d01h02m03s" to integer (or floating point) number of seconds
  691. hourAngleForField -- Computes the range and mean hour angle for a field in a measurement set
  692. hourAngleRangeFromWeblog -- Computes range of hour angle for a science target in a weblog
  693. hoursToHMS -- converts decimal hours to HH:MM:SS string
  694. hours2radec -- converts decimal RA hours and decimal Declination degrees to a sexagesimal string
    I
  695. ICRSToJ2000 -- Converts an ICRS direction to J2000
  696. IERSeop2000lastDateComparedToVSDate -- computes difference in time (in days) between VS_DATE value and final MJD entry in IERSeop2000 file
  697. imageAntennaDiameter -- Attempt to infer antenna diameter for an image from its header
  698. imageAreaAbovePB -- Computes area of pixels above a specified level of an image
  699. imageBandwidth -- Reports total bandwidth in GHz for an image cube
  700. imageCenter -- returns the RA/Dec center of an image
  701. imageCenterVsFieldCenter -- Computes angular separation of phase center pixel from field direction in measurement set
  702. imageCentroid -- Computes statistics and centroid of a CASA image
  703. imageCentroids -- Runs imageCentroid for a list of images
  704. imageChannel -- Finds the channel in a cube that corresponds to a specified velocity
  705. imageChannelVelocity -- Finds the velocity of a specified channel in a cube
  706. imageChannelVelocityWidth -- Finds the velocity width of the first channel in a cube
  707. imageChannelFrequency -- Uses the ia tool to get the frequency of a specified channel of a cube
  708. imagesChannelFrequency -- Uses the ia tool to get the frequency of a specified channel of a list of cubes
  709. imageChannelFrequencyWidth -- Finds the frequency width of the first channel in a cube
  710. imageClip -- Clip an image at a specified intensity level
  711. imageClipAndRemove -- Clip and image at a specified intensity level and remove the result from the image
  712. imageCRValues -- Gets the axis reference values from a CASA image
  713. imageDate -- Reads the observation date of an image from its header
  714. imageDecimate -- Decimates an image in the RA and Dec axes by a specified integer factor
  715. imageEpoch -- Reads the observation date of an image from its header in fraction year units
  716. imageEquniox -- Reads the equinox (ICRS/ J2000) from a CASA image
  717. imageFitFluxAtPhaseCenter -- fits a Gaussian to the central 30 pixels of an image and reports flux density and uncertainty
  718. imageFlux -- Computes velocity-integrated flux in Jy*km/s in specified region of cube
  719. imageFluxSNR -- Uses imstat to compute the ratio of flux / scaledMAD
  720. imageFrequencyChannel -- determines the nearest channel to the specified frequency for a cube, with findcont ceil/floor option
  721. imageGaussianFilter -- Smooth an image by a circular Gaussian kernel
  722. imageHeaderToICRS -- Uses CASA imhead to set the equinox in a CASA image to ICRS
  723. imageHeaderToJ2000 -- Uses CASA imhead to set the equinox in a CASA image to J2000
  724. imageHistogram -- Plots a histogram of a CASA image
  725. imageHistory -- Prints the history records of a CASA or FITS image
  726. imageImstat -- Runs the CASA imstat command on an image/region and returns the specified keyword from the dictionary
  727. imageImstats - Runs imageImstat on a list of images and returns a list of values
  728. imageJD -- Returns JD for image date in image header
  729. imageMaxBaseline -- Infers the maximum baseline based on the resolution and frequency of an image
  730. imageMedian -- Uses imstat to compute median of an image
  731. imageMin -- Returns the minimum pixel value of a CASA image
  732. imageMJD -- Returns MJD for image date in image header
  733. imageModelResidual -- Given an image and a model image, compute the residual and plot all three side-by-side
  734. imageObservatory -- Attempt to read the observatory name from the header of an image
  735. imagePeak -- Returns the peak pixel value of a CASA image
  736. imagePeakPerChannel -- Returns an array of the peak pixel in each channel of a CASA cube
  737. imagePeaks -- Runs imagePeak on a list of images
  738. imagePercentile -- Computes pixel value corresponding to a specified pixel value
  739. ami.imagePixelsInMask -- counts number of pixels that are masked in an image
  740. imagePrimaryBeam -- Attemp to infer the primary beam size for an image from the telescope name in its header
  741. imageRejection -- computes relative integration times as image sideband rejection performance is improved (for FE/Digitizer WG report)
  742. imageRegister -- Runs imfit on a list of position in two images of the same field and finds the median pixel shift to bring them into alignment
  743. imageRegisterImfitDictionaries -- same as imageRegister but accepts a user-supplied pair of imfit dictionaries
  744. imageRestFrequency -- Reads the rest frequency stored in a CASA or FITS image header
  745. imageRotate -- Runs ia.rotate on a CASA image
  746. imageShape -- Returns an array of the shape of a CASA image
  747. imageSmooth -- Runs imsmooth on a list of images
  748. imageSNR -- Uses imstat to measure (peak-median)/scaledMAD in a CASA image, optionally on a channel-by-channel basis
  749. imageSnr -- Uses python to measure the peak/std in a CASA image
  750. imageSnrs -- Measures the peak signal to noise ratio in each image in a list of CASA images
  751. imageSource -- Gets the name of the source from a CASA image
  752. imageStd -- Measures the standard deviation (or MAD) in a CASA image
  753. imageStdPerChannel -- Measures and plots the standard deviation, rms, MAD, min and max in a list of channels in a CASA image
  754. imageStds -- Measures the standard deviation in each image in a list of CASA images
  755. imageStdsPerChannel -- Measures and plots the standard deviation, rms, MAD, min and max in a list of channels for each image in a list of CASA images
  756. imageStdVariation -- Measures how the image standard deviation varies across the image
  757. imageStokes -- Reads which Stokes parameters are contained in a CASA image
  758. imageSum -- Sums a list of CASA images into a new image using immath
  759. imageVelocityChannel -- Inverse function to imageChannelVelocity: finds channel that matches most closely to a specified velocity
  760. imfitparseDict -- Simplifies an imfit dictionary for a specified component to have just 6 keys
  761. imfitparse -- converts a dictionary returned by imfit into a formatted string (for a single component)
  762. imfitparseCLB -- alternative version of imfitparse
  763. imfitparseCLBs -- Runs imfitparseCLB on all the components that were fit
  764. imfitplot -- Calls the casa task imfit, then plots the model and residual images side-by-side on the same intensity scale.
  765. imheadlist -- Emulates imhead(mode='list') but is faster because it avoids looking through binary data for the min/max/minpos/maxpos values
  766. importandlist -- Calls the casa task importasdm followed by listobs on one ASDM, or a list of ASDMs.
  767. importasdm2 -- Runs importasdm but only for scans that match a specified intent
  768. insertBracketsIntoFlaglist -- Inserts square brackets around all the timerange entries in a file containing flag statements
  769. imshift -- Shifts a CASA image header in RA/Dec
  770. imstatCompare -- Runs imstat on 2 images and compares all the result for equality
  771. imstat_cas6745 -- Runs imstat using a work-around for CAS-6745
  772. imsubimageOnePlane -- Takes one plane from a 3-axis image, even if the type of the 3rd axis is undefined, as in SOFIA FORCAST images
  773. imviewField -- Plots a square portion of a CASA image specified in arcseconds using imview
  774. imviewFieldCubeEdges -- builds a multi-panel png of the edge channels of a cube
  775. imviewFields -- Calls imviewField for a list of images and builds a multi-page PDF
  776. imviewGaussianModels -- Overlay the 50% contour of one or more Gaussian models overtop an image
  777. intentsforfield -- Workaround for the bug in msmd.intentsforfield (CAS-12164)
  778. interpolateSpectrum -- Interpolates a spectrum onto a finer grid of frequencies.
  779. interpolateTable -- Performs a spline interpolation of any two columns in an ASCII data table
  780. interpretLOs -- returns the LO1 (and optionally LO2) information for each spw (assuming the ASDM_RECEIVER table is present)
  781. intervalDifference -- Computes difference between 2 or more time interval strings
  782. intervalRatio -- Computes ratio of two time interval strings
  783. intervalSum -- Computes the sum of two or more time interval strings
  784. intervalToHMS -- converts a number of seconds into a string interval of format 00h00m00s
  785. inverseTsysspwmapWithNoTable -- Determines a list of science spws that use a specified Tsys spw
  786. invertChannelRanges -- Inverts a CASA channel selection string (i.e. from line-free to line-full)
  787. isMosaic -- Determines if any science target was observed with multiple fields with science intent
  788. isSingleContinuum -- Checks if an spw in an ALMA measurement set was defined as Single Continuum in the OT by looking at the transition name for the first science spw
  789. isSingleContinuumASDM -- Checks if an ASDM contains a tuning that was defined as Single Continuum in the OT (by looking at Source.xml file)
  790. isSingleDish -- Checks if an ALMA measurement set is a single dish dataset
  791. isSingleDishASDM -- Checks if an ALMA ASDM is a single dish dataset
  792. isSpectralScan -- Checks if a measurement set was defined as spectral scan in the OT, by looking at the transition name for the first science spw
  793. isSpectralScanASDM -- Checks if an ASDM contains a tuning that was defined as spectral scan in the OT (by looking at the Source.xml file)
    J
  794. J2000ToICRS -- Convert a J2000 direction to ICRS
  795. J2000ToICRSgrid -- Runs J2000ToICRS for a grid of positions on the celestial sphere and computes statistics
  796. janskyPerKelvin -- Computes the theoretical Jy/K for an ALMA single dish image based on its measured beamsize
  797. jdToMJD -- converts JD to MJD
    K
  798. kelvinToCelsius -- Adds 273.15 to the value
    L
  799. lightcurve -- Produce a light curve of an ALMA calibrator from the calibrator database extrapolated to a specified frequency
  800. lineSeparation -- computes IF location for simultaneous observations of a line in LSB and another line in USB
  801. linfit -- Uses scipy.optimize.leastsq to perform a linear fit to data accounting for measurement uncertainties in the dependent variable
  802. linfitFromFile -- A wrapper for linfit which will read column data from a text file and then fit it
  803. listazel -- Extracts the mean azimuth and elevation for the specified scan of an ms
  804. listBlankChannelsInImage -- Returns an array of channels of a cube whose min==max
  805. listconditions -- lists average weather, PWV and opacity (tau) during your ms
  806. listConditionsFromASDM -- lists average weather during your asdm
  807. listflagsSlow -- list all row numbers in an ms that have flagged data, and report statistics (slow!!)
  808. es.listobs2 -- ALMA qa2 function that produces a more readable listobs and antenna configuration plot
  809. listobsasdm -- Performs casa-like listobs on an ASDM
  810. listobslist -- Runs listobs on a list of measurement sets, which can be alternately be specified by a string containing wildcard characters
  811. listPhaseSolutions -- list phase solutions by antenna, sorted by absolute value (useful for examining selfcal solutions)
  812. listscans -- lists the summary (time and intents) of each scan in an ASDM and the total time on each source
  813. long2xyz -- Wrapper for simutil.long2xyz to convert a longitude,latitude,elevation to an ITRF position
  814. longs2xyz -- Converts a list of longitude,latitude,elevation to a list of ITRF positions
  815. ami.lookForFile -- Accepts a file path with wildcards and returns the newest file
  816. ami.lookForNewestFileContainingStrings -- Accepts a file path with wildcards and a list of strings and finds the newest matching file
  817. lowCaiSelection -- Finds baseline names that reside below the CAI=32 boundary for a specified measurement set (see also crossCaiSelection)
  818. lowTransmissionChannels -- Finds ranges of channels that are below a specified atmospheric transmission level in a specified spw (see CASR-520)
  819. lsrkRangeToRest -- Converts an LSRK frequency (or range) to rest frame
  820. lsrkRangeToTopo -- Converts an LSRK frequency (or range) to TOPO frame
  821. lsrkToRest -- Converts an LSRK frequency to rest frame
  822. lsrkToTopo -- Converts an LSRK frequency to TOPO frame
  823. LSRKRangesToTopoRanges -- Takes a frequency selection string or cont.dat file and generates selection string for a list of ms
  824. lstrange -- lists the range of LST, UT, MJD for the whole ms, and for scans with ON_SOURCE intent (including the elevation range)
  825. lstToUT -- converts LST and date to UT
    M
  826. MAD -- compute the median absolute deviation of a list
  827. MADoutliers -- finds outlier values and their locations in a list or array
  828. makeBriefCaltableName -- converts a caltable name to a brief version capturing the key parts
  829. makeDirtyCube -- picks an appropriate cell and image size and makes a dirty cube
  830. makeFixEphem -- makes a fixEphem.py script for a multi-execution ephemeris observation
  831. visbilityOutliers.makeFlagTemplates -- The development version of hifa_bandpassflag and hifa_gfluxscaleflag
  832. makeGaussianForImage -- Take a CASA image as a template, and build an image with a single 2D Gaussian component at the specified location
  833. makeGaussiansForImage -- Take a CASA image as a template and a dictionary from imfit, and build images of each of the 2D Gaussian components and their sum
  834. makeNoiseCube -- fills a cube's pixels with Gaussian noise
  835. makePSF -- uses imagehelper toolkit to determine PSF for 1 or a group of measurement sets (to emulate hifa_imageprecheck)
  836. makePtgfile -- Builds a pointing file from a measurement set suitable for use in simobserve
  837. makeSimulatedImage -- use simobserve/simanalyze to generate a simulated image of a point source or uniform disk in a specified direction and with a specified flux density
  838. makeTimeStamp -- builds a current timestamp string like '2017-05-06T17:15:37'
  839. mapSpwChannelToTsysChannel -- Finds Tsys channel that corresponds to a specified spw and channel
  840. maskBlankChannelsInImage -- Sets the mask for all channels of a cube whose min==max
  841. maskChannel -- Masks the specified channel(s) in a cube
  842. maxBandwidthWithoutSmearing -- Computes widest bandwidth for averaging that will not cause smearing
  843. maxBaselineForRequestedResolutionFromASDM -- computes the maximum baseline required to achieve the requested resolution of the science targets in an ASDM, accounting for elevation projection
  844. maxTimeWithoutSmearing -- Computes longest time averaging that will not cause smearing
  845. meanAirmassForScan -- Computes mean airmass for (the first field in) one scan in a measurement set
  846. meanAirmassForSource -- Computes mean airmass that a source was observed at in a measurement set
  847. meandate -- Computes mean day of a list of YYYYMMDD's
  848. meanepoch -- Computes mean epoch floating point value of a list of YYYYMMDD's
  849. meanObliquity -- compute the mean obliquity for the specified date
  850. meanVisibility -- Computes vector average visibility for a field/intent/spw combination in one EB
  851. medianFrequencyOfIntent -- Returns the median of the mean frequencies (in Hz) of the spws observed with the specified intent (default = OBSERVE_TARGET#ON_SOURCE)
  852. medianTsysForFieldFromTsysCaltable -- computes median Tsys spectrum a Tsys caltable
  853. medianTsysForFieldFromSyscalTable -- computes median Tsys spectrum from measurement set
  854. medianTsysForRestFrequency -- Returns the median Tsys for the spw that contains the label for the specified rest frequency
  855. mergeConfigs -- Merge two or more antenna configuration files, registering them using pads in common
  856. mixedDishDiameters -- Checks if more than one antenna diameter is present in a measurement set.
  857. mjdListToDateTime -- Takes a list of MJD values and converts it to a list of python datetime structures.
  858. mjdNanosecondsToMJDandUT -- convert MJD in nanoseconds to MJD in days and the UT date and time string
  859. mjdSecondsToFlagTimestamp -- convert MJD in nanoseconds to a string like '2018/01/05/10:03:54.479'
  860. mjdSecondsToMJDUT -- converts MJD in seconds to MJD in days and a UT date/time string
  861. mjdSecondsListToDateTime -- Takes a list of MJD seconds and converts it to a list of python datetime structures.
  862. mjdsecToDate -- Converts MJD seconds to the date string that contains it (YYYY-MM-DD)
  863. mjdsecToDateString -- Converts MJD seconds to the equivalent date/time string that appears in a CASA log
  864. mjdsecToDDMonthYYYY -- Converts MJD seconds to DD-MonthName-YYYY
  865. mjdsecToTimerange -- Converts two value of MJD seconds into a UT date/time string suitable for the plotms timerange argument
  866. mjdsecToTimerangeComponent -- Converts a value of MJD seconds into a UT date/time string suitable for one component of the plotms timerange argument
  867. mjdsecToUT -- converts MJD in seconds to a string of format "YYYY-MM-DD HH:MM:SS UT"
  868. mjdsecToUTHM -- converts MJD in seconds to a string of format "HH:MM"
  869. mjdsecToUTHMS -- converts MJD in seconds to a string of format "HH:MM:SS"
  870. mjdToChileTime -- converts MJD to a datetime structure in Chile/Continental timezone (ALMA)
  871. mjdToDate -- Converts MJD to the date string that contains it (YYYY-MM-DD)
  872. mjdToDatestring -- Converts MJD to a date and time string
  873. mjdToEasternTime -- converts MJD to a datetime structure in Eastern time
  874. mjdToJD -- converts MJD in day to JD in days
  875. mjdToLocalTime -- converts MJD to a datetime structure in any specified timezone
  876. mjdToMountainTime -- converts MJD to a datetime structure in US/Mountain timezone (VLA)
  877. mjdToPredictcomp -- Converts an MJD into a string suitable for the epoch parameter of predictcomp
  878. mjdToUnixtime -- Converts an MJD into unix time in seconds
  879. mjdToUT -- converts MJD to date and UT
  880. mjdToYear -- converts MJD to floating point year
  881. modifyAntennaDiameter -- Change the dish diameter column in the ANTENNA table of a measurement set
  882. modifyCorrType -- Change all appearances of a CORR_TYPE value in the POLARIZATION table of a measurement set to a different value
  883. modifyImfitEstimates -- Modifies a line in an existing imfit estimates text file
  884. modifyIntents -- replace all appearances of one intent in the STATE table of an ms with another
  885. modifyPPR -- modifies a pipeline processing request xml file (PPR) in a variety of ways
  886. modifyReferenceFrequency -- Modifies the REF_FREQUENCY column of the SPECTRAL_WINDOW table of a caltable
  887. momdiffSNRFromCasalog -- Searches the casa log for the findContinuum message that gives the SNR of the final momDiff image
  888. montage -- runs the ImageMagick command montage on a list of images
  889. montagePngs -- takes 2, 3 or 4 pngs (or other single-page image types) and puts them onto one page as a new png
  890. montageTwoPdfs -- takes two multi-page PDFs and places their corresponding page numbers onto the same page
  891. montageTwoPngLists -- take two lists of png files (or other single-page image types) and pair them side-by-side, on successive pages
  892. mosaicFieldOrder -- Returns the mosaic target field IDs in time order of first OBSERVE_TARGET observation
  893. mosaicSensitivity -- computes the sensitivity at the center of a hexagonal mosaic relative to a single pointing
  894. mosaicOverlapFactor -- computes the peak sensitivity of a arbitrary pattern mosaic relative to a single pointing
  895. mosaicTimeGapBetweenFields -- computes the gap between last integration of field N and first integration of field N+1 for each TARGET scan, and returns median
  896. mostRecentMoves -- checks the antennaMoves.txt file for the most recent move of each antenna in an ms
  897. mostRecentPipelineParentDirectory -- finds the parent directory of the most recent pipeline run of a NA user
  898. mostRecentPipelineWorkingDirectory -- finds the working directory of the most recent pipeline run of a NA user
  899. mousExport -- Exports first or all EBs from the archive for a science MOUS
  900. multiTaskExecutionTimes -- calls taskExecutionTimes for a list of tasks and returns a dictionary
  901. multiTaskExecutionTimesGlob -- calls multTaskExecutionTimes for all the directories in a pipeline execution area
    N
  902. nameforspw -- Reads the spw name from the spectral window table (obsoleted by msmd.namesforspws in casa>4.2.2)
  903. nearestCalibratorToScienceTargets -- Computes the nearest calibrator to each science target in a measurement set
  904. nearestCalScanForTime -- Determines the calibrator scan which has the nearest central time to the specified time
  905. nearestScanForTime -- Determines the scan which has the nearest start or end time to the specified time
  906. nextHighestIntegerEvenlyDivisible -- Finds a number of channels that is evenly divisible into the total number of channels in an spw
  907. nodeFromLogfile -- Reads the Lustre node name used by a pipeline run from its CASA log file
  908. noiseFigureToTemperature -- Converts noise figure to noise temperature
  909. noiseTemperatureToFigure -- Converts noise temperature to noise figure
  910. nonPointingNonAtmosphereScans -- Returns list of scan numbers that do not have pointing or atmosphere intents (or other specified combinations of intents)
  911. nonzeroGainPhase -- Looks for deviations from zero phase for a specified antenna in a caltable (all spws)
  912. nonzerGainPhases -- Runs nonzeroGainPhase on all the hifa_session_refant tables in a pipeline working directory
  913. nonzeroPixels -- Counts the number of non-zero pixels in a CASA image
  914. normalizeImage -- normalize the intensity scale of a CASA image to a specified value
  915. numberOfChannelsInCube -- returns the number of channels in a CASA image cube
  916. numberOfPolarizationsInSyscalTable -- returns the number of polarizations in the first row of the SYSCAL table
  917. numberOfPolarizationsInSyscalXML -- returns the number of polarizations in the first antenna, spw, scan combination in the SysCal.xml file
    O
  918. observatories -- Returns a list of all observatory names in the CASA repository
  919. obslist -- prints the antenna station coordinates in local offsets from the Center of Array, and computes longest/shortest baselines
  920. onlineChannelAveraging -- infers the channel averaging factor for ALMA data from Cycle 3 and beyond
  921. orthogonalDistanceRegression -- perform linear fit accounting for uncertainties in both axes
  922. outlierChannelsInPSF -- Returns a list of channels in a cube that are outliers in beam area or axial ratio
  923. overlayCuts -- Extract a single row or column from two CASA images and overlay them.
  924. overlayHolographyCuts -- Extract a single row through the peak of a list of images and overlay them
  925. overlayPadDistanceHistogramForCycle -- for Christophe Jacques
  926. overlayTrx -- Overlay the Trx spectra from two different datasets for the same antenna/spw/pol
  927. overlayTsys -- Overlay the Tsys spectra from two different datasets for the same antenna/spw/pol
  928. o2sounder -- Loads a CSV file from the O2 sounder and generates profiles, plot or movie
    P
  929. padEllipsoidalHeightFromASDM -- Returns the height above the Earth ellipsoid model in meters of the pad in a specific ASDM
  930. padHeightRange -- finds the range of pad heights in the local tangent plane for a measurement set or configuration file
  931. padPlotLimits -- Expands the current pylab plot limits by specified fraction on each edge
  932. padSeparation -- Computes the separation of two ALMA pads, in meters
  933. padToPadPositionAngle -- Computes the azimuth in degrees from one ALMA pad to another (in the local tangent plane)
  934. padUsageHistogram -- Draws histogram of number of times an antenna has been placed on each pad
  935. parallacticAngle -- Compute the instantaneous parallactic angle for a source
  936. parallacticAngleForField -- Compute the range and mean parallactic angle for a field in a measurement set
  937. parallacticAngleForFieldAcrossMOUS -- Compute the range of parallactic angle for a field in a list of measurement sets
  938. parallacticAngleForPipelineRun -- Compute the range of parallactic angle for a pipeline run (does not separate multiple sessions)
  939. parseAngleArgumentToDegrees -- Converts a string with rad/deg/arcs/arcm units to floating point degrees
  940. parseAngleArgumentToRadians -- Converts a string with rad/deg/arcs/arcm units to floating point radians
  941. parseAntenna -- given an antenna argument and a measurement set, returns a list of selected antenna IDs
  942. parseAntennaArgument -- called by parseAntenna
  943. parseAntennaASDM -- given an antenna argument and an ASDM, returns a list of selected antenna IDs
  944. parseBasebandArgument -- takes a scalar, integer list or string list of baseband IDs and returns an integer list
  945. parseCalibratorServiceWarning -- translate warning code from calibrator web service into readable text
  946. parseFieldArgument -- Takes a field specification, converts to names, then find all field IDs associated with those names.
  947. parseFitpsf -- Parses the beamsize from the tuple returned by imager.fitpsf
  948. parseFrequencyArgument -- converts a frequency string with units into floating point value in Hz
  949. parseFrequencyArgumentToMHz -- converts a frequency string with units into floating point value in MHz
  950. parseFrequencyArgumentToGHz -- converts a frequency string with units into floating point value in GHz
  951. parseGencalAntpos -- reads a text file, locates the first gencal antpos command, and returns the values of the antenna and parameter
  952. parseImadvise -- Parses the cell size from the tuple returned by imager.advise
  953. parseImfitShape -- returns 6 values from a 'shape' dictionary returned by imfit
  954. parseSpw -- Parses the spw argument (integer or string or list) and returns an integer list of spw IDs
  955. parseTimerangeArgument -- Converts 'HH:MM HH:MM' to [MJDsec1, MJDsec2] for a measurement set
  956. parseUvrange -- converts a uvrange string (in meters or klambda) into min and max baseline length (in meters)
  957. partialpolScans -- converts a flagcmds.txt file into list of scans that contain partially-flagged polarization products
  958. peakJanskyPerPixel -- finds the peak intensity of an image in Jy/beam and converts to Jy/pixel (for simobserve)
  959. phaseClosureRelationships -- Returns number of phase closure relationships for a specified number of array elements
  960. pickCellSize -- Computes the recommended image cell size (and total size) for a dataset's science spws
  961. pickDishDiameter -- Returns a statistical value of the dish diameter in a measurement set (min, max, median)
  962. picklePipeRun -- Save information about a pipeline run (R. Indebetouw)
  963. pickPixelSize -- Returns the best pixel size to use with the specified convsupport parameter for the SF option of sdimaging
  964. pickTicraImage -- Picks the TICRA model image to use for a specified frequency and antenna type
  965. pipe692outliers -- Parses casa log for outliers in rms phase vs. baseline length plot of hifa_spwphaseup
  966. pipelineAntpos -- Counts number of positions corrections in a pipeline run's antennapos.csv file
  967. pipelineBandpassSolint -- Finds the frequency solint used per spw per ms in a pipeline MOUS
  968. pipelineBDFlags -- Parses the statistics table of the hifa_flagdata weblog page to return a per-EB dictionary of percent flags "Before task" of an MOUS
  969. pipelineCheckCaltable -- Checks for presence of reference and target fields for fluxscale
  970. pipelineCubeRMS -- Emulates the rms calculation shown in the pipeline weblog
  971. amc.pipelineDuration -- Computes the duration based on the calibPipeIF*.log file
  972. pipelineEBs -- Returns list of EBs from a weblog main page
  973. pipelineEclipticLatitude -- Returns a sorted list of ecliptic latitudes for the science targets in a pipeline run
  974. pipelineFindIndexHtml -- Finds the index.html file in a pipeline weblog
  975. amc.pipelineHostname -- Pulls the hostname from the casa log (available in casa 5.1p1 and beyond)
  976. pipelineImageRms -- Emulates the pipeline's calculation of image (or cube) rms
  977. pipelineImageTheFluxCalibrator -- Attempts to image the flux calibrator in a pipeline working directory
  978. pipelineImview -- Generates png of CASA image in the same color palette and layout as the ALMA pipeline
  979. pipelineIsMosaicAndTimePerPointing -- parses weblog for whether an MOUS contains mosaics, computes observing time per pointing, and number of pointings
  980. pipelineMakeRequest -- Sets up the correct bash path and runs pipelineMakeRequest on an NRAO CV Lustre node
  981. pipelinePointingFieldOtherIntents -- Gets the other principle intents for all the pointing sources in all the measurement sets of a pipeline run
  982. pipelinePointingsFromHtml -- Returns number of science target pointings from a weblog
  983. pipelineRobust -- Pulls the robust value from the CASA log as written by hifa_imageprecheck
  984. pipelineScienceBand -- Extracts the receiver band number from a pipeline weblog
  985. pipelineSevere -- Checks a casalog for a specified string and returns matching lines
  986. pipelineSpwTypes -- Returns dictionary keyed by spw ID with values of 'TDM' or 'FDM'
  987. pipelineTaskExecutionTimes -- Assembles and prints a list of time intervals from a CASA log of a pipeline run
  988. pipelineTimeOnSource -- Returns observing time on source from a pipeline weblog
  989. pipelineTsysFlags -- Parses casa log for number of flags found for a specified hifa_tsysflag metric
  990. pipelineVersionFromLogfile -- Reads the pipeline version used by a pipeline run from its CASA log file
  991. pipelineVersionFromWeblog -- Reads the pipeline version from a pipeline weblog
  992. pipelineWvrgcalFlaggedAntennas -- Reads the wvrgcal generated messages in a pipeline casa log file and returns a dictionary
  993. pixelsPerBeam -- Computes the number of pixel areas per resolution beam area of an image
  994. planet -- queries the JPL Horizons telnet server (or CASA) for the position, rate and angular diameter of a solar system body, with an option to run predictcomp
  995. planetFlux -- calls Bryan Butler's solar_system_setjy module to compute flux density vs. time or frequency
  996. planetPlots -- generates plots of uv amplitude vs. uv distance for a grid of ALMA configurations and frequencies for each planetary body
  997. planetRangeAcceleration -- runs planet twice in succession with a 1 hour time interval to compute radial velocity change (i.e., range acceleration in km/s/s)
  998. planetTemperature -- Estimates the expected antenna temperature of a planet based on its model in casa
  999. planetVelocityChange -- Measure change in radial velocity across EBs in a multi-EB MOUS
  1000. plotAllPads -- Plots all ALMA pads on a radially-logarithmic scale, with colorization and orientation options for the labels
  1001. plotAntennaAmbientTemperatures -- retrieves antenna temperatures from TMCDB and plots them vs. time and height
  1002. es.plotAntennas -- plots the ALMA antenna configuration of a measurement set, including pad names
  1003. plotantsFromASDM -- plots the ALMA antenna configuration of an ASDM (and optionally the weather stations) in linear and/or logarithmic fashion
  1004. plotantsLogarithmic -- plots the antenna configuration of a measurement set in a logarithmic polar fashion
  1005. plotantsTwoPanel -- Creates a 2-panel plot of the antenna configuration, with a zoom to the central array
  1006. plotApexPWV -- retrieve and plot PWV measured at APEX
  1007. plotAtmosphere -- plots the model atmospheric transmission, opacity or sky temperature vs. frequency for specific observatory and/or weather condition using matplotlib
  1008. plotAtmosphereAcrossScienceSpws -- plots the model atmospheric transmission across all spws using plotms showatm option
  1009. plotAzimuth -- plot the azimuth vs. time for a specific antenna in a dataset
  1010. plotbandpass -- faster version of plotcal for bandpass tables, with useful overlay capabilities
  1011. plotbandpassStats -- runs plotbandpass(channeldiff=5) several times and plots the MAD vs. channel averaging factor
  1012. plotBaselinesOneScan -- makes multi-panel plotms plots of all requested spws on a per-baseline basis
  1013. plotBaselinesPerScan -- makes multi-panel plotms plots of all baselines with specific antenna(s)
  1014. plotBaselinesSorted -- makes single-panel plotms plots of all baselines, sorts them by baseline length and builds a big PDF
  1015. plotcalCompare -- places two sequences of plotcal plots side-by-side onto each page of a multi-page PDF
  1016. plotCalibratedData -- a wrapper for plotms that plots calibrated data
  1017. plotCalibratedDatasets -- a wrapper for plotCalibratedData that runs it for multiple measurement sets in succession
  1018. plotCalibratedSpectrum -- a wrapper for plotms that plots the calibrated uv spectrum of the bandpass calibrator (or other intent)
  1019. plotconfig -- plot any standard telescope configuration of observatories known to casa, or custom config file
  1020. plotconfigs -- overlay telescope configuration files
  1021. plotDailyWeather -- runs plotWeatherFromDatabase on a series of days and generates a movie and multi-page PDF
  1022. plotDecorrelation -- plot the decorrelation vs. baseline length from the CalPhase.xml file of an ASDM
  1023. plotElevation -- plot the elevation vs. time for a specific antenna in a dataset
  1024. plotElevationSummary -- uses plotms to create a field-color-coded summary of elevation vs. time for a measurement set
  1025. plotExtremeBaselinePerAntenna -- plots the extreme (min, mean, median, or max) baseline length per antenna on an ASDM or config file
  1026. plotFluxcsv -- plots the contents of a pipeline-generated flux.csv file
  1027. plotGfluxscale -- Reads a pipeline-generated aquareport.xml and plots the derived flux densities and assumed catalog values for first derived calibrator
  1028. plotIERSpredict -- Read and plot the X, Y, and dUT columns from the IERSpredict table, with error bars
  1029. plotLowGains -- Plots GainAmp vs. antenna name on a per-spw basis
  1030. plotMedianTsysForFieldFromTsysCaltable -- computes and plots the median Tsys spectrum of a Tsys caltable
  1031. plotmosaic -- shows relative location of pointings in an .ms
  1032. plotmosaics -- runs plotmosaic on a list of datasets
  1033. plotmsGrid -- plots values on a per-antenna average basis in a grid
  1034. plotmsPhaseAmplitude -- uses plotms to make a 2-panel plot of amplitude and phase (or any 2 quantities)
  1035. plotmsSolutionAndSNR -- uses plotms to make a 2-panel plot of any quantity, along with SNR
  1036. plotmsSpwOverlay -- uses plotms to overlay multiple spws, optionally smoothed to a common channel width
  1037. plotmsTargetflag -- makes the same plotms plot for 2 versions of the same measurement set
  1038. plotmsTwoColumnsVsTime -- uses plotms to make a multi-panel plot
  1039. plotObservatories -- plots the IRTF X,Y coordinates on a polar projection of all observatories in the CASA repository table
  1040. plotOxygenSounder -- gathers and plots the level zero products from the oxygen sounder by querying weather.aiv.alma.cl
  1041. plotPadDistanceHistogramForConfig -- for Christophe Jacques
  1042. plotPadDistanceHistogramsForCycle -- for Christophe Jacques
  1043. plotParallacticAngle -- Plot the parallactic angle vs. time across the sky for an radec
  1044. plotParallacticAngleAcrossMOUS -- Plot the parallactic angle vs. time across the sky for a calibrator in a list of measurement sets
  1045. plotParallacticAngleForPipeline -- Plot the parallactic angle coverage of the polcal for a pipeline run (does not separate multiple sessions)
  1046. plotParallacticAngleSummary -- Plot the parallactic angle vs. time for all sources in a measurement set
  1047. plotParallacticAngleSummarys -- Plot the parallactic angle vs. time for all sources in a list of measurement sets
  1048. plotPhaseCheckTargetOnSky -- plots the relative positions of the phasecal, check source, and first science target of an ASDM
  1049. plotPhaseSolutions -- plot a series of selfcal solutions to explore phase vs angular separation of target and calibrator
  1050. plotPointingResults -- plot the pointing results written by TelCal to the ASDM_CALPOINTING table
  1051. plotPointingResultsFromASDM -- plot the pointing results written by TelCal to the CalPointing.xml table
  1052. plotPointingTable -- plots the azimuth and elevation vs. timestamp for one antenna from the MS POINTING table
  1053. plotPointingTableAngleVsAngle -- plots a map of the DIRECTION or TARGET column of the MS POINTING table
  1054. plotPWV -- plot PWV vs. time for your ms (from each antenna's WVR)
  1055. plotPWVFromADSM -- plot PWV vs. time for your ASDM (median of all antennas over specified time interval)
  1056. plotPWVFromASDMs -- plot PWV/medianPWV vs. pad height for a list of ASDMs
  1057. plotPWVHistogram -- plots a histogram of the antenna-based PWV measurements for an ALMA dataset
  1058. plotRefantScore -- plots a histogram of the refant total score from the CASA log of a pipeline run
  1059. plotResampledWeatherFromTMCDB -- gets and plots weather from the TMCDB from specified range of days
  1060. plotSamplersWithTsys -- plot autocorrelation of ATM Cal sky subscan and corresponding Tsys vs. channel on a per-antenna, per spw basis
  1061. plotSBGain -- plot the sideband gain ratios from the SYSCAL table of a measurement set.
  1062. plotSBGainFromASDM -- plot the sideband gain ratios for your ASDM
  1063. plotSensitivityImprovement -- plots a grid of results from sensitivityImprovement
  1064. plotSpectrumFromMask -- generates summary spectrum plot added to pipeline weblog in PIPE-198 for Cycle 7
  1065. plotspw -- Like plotspws, but for showing only one spw across multiple measurement sets
  1066. plotspws -- Makes a plot summarizing the location of the non-channel-averaged TDM and FDM spws in an ALMA dataset.
  1067. plotSunDuringTrack -- plot the solar location during the specified dataset
  1068. plotTcal -- plot the Tsys, Tsky or Trx columns of the SYSCAL table of an ALMA ms
  1069. plotTrx -- plot the Trx column of the SYSCAL table of an ALMA ms (wrapper for plotTcal)
  1070. plotTsky -- plot the Tsky column of the SYSCAL table of an ALMA ms (wrapper for plotTcal)
  1071. plotTsys -- plot the Tsys column of the SYSCAL table of an ALMA ms (wrapper for plotTcal)
  1072. plotWeather -- plot weather conditions vs. time for your ms
  1073. plotWeatherFromASDM -- plot weather conditions vs. time for your asdm
  1074. plotWeatherFromDatabase -- gathers and plots weather conditions from weather.aiv.alma.cl or from the TMCDB
  1075. plotWeightsPerAntenna -- generates per-antenna plots of data weights
  1076. plotwvr -- reads the CalWVR.xml table from the ASDM and generates a plot of pathCoeff vs. solution number
  1077. plotWVRSolutions -- plot WVR caltable phase solutions on a baseline basis for a specified spw
  1078. pngWidthHeight -- Gets the width and height of a png image (in pixels)
  1079. pointingTableMedian -- Computes the median value of a tuple column in the POINTING table
  1080. popularPadHistogram -- Makes a histogram after calling popularPads
  1081. popularPads -- Determines the number of notional 12m configurations that each non-ACA pad appears in
  1082. primaryBeamArcsec -- compute the primary beam in arcseconds from an ms and spw, or by specifying frequency or wavelength
  1083. primaryIntentLetter -- translate a single scan intent into a single character
  1084. printBaselineAngularScale -- converts a baseline length into an angular scale at the specified frequency
  1085. printBaselineUVDistance -- converts a baseline length into a uv distance at the specified frequency
  1086. printFluxesFromASDM -- calls readFluxesFromASDM and prints the results in a table
  1087. printLOs -- print the values of LO1, LO2 and YIG for each spw in an ms
  1088. printLOsFromASDM -- print the values of LO1 and LO2 frequencies and compute TFB LO and YIG frequency for each spw in an ASDM, and show the window function used for each spw (i.e. Hanning vs. uniform)
  1089. printPngListFromCSVFile -- prints all png files whose names are present in a CSV-format file
  1090. printSwVersionFromASDM -- Reads and prints the contents of the ASDM's Annotation.xml table
  1091. printTsysFlags -- prints the flags found in a Tsys table (ignoring the N edge channels)
  1092. projectCodeForMOUS -- looks up the project code for an MOUS
  1093. projectCodeFromSB -- looks up the project code, MOUS, EB, and ALMA region from an SB uid
  1094. projectCodeFromDataset -- looks up the project code, SB name and ALMA region from an ASDM or measurement set name
  1095. ami.projectCodeFromWorkingDir -- extracts the project code and pipeline start time from a pipeline working directory
  1096. properMotion -- reads the proper motion from the SOURCE table of a measurement set
  1097. properMotionASDM -- reads the proper motion from the Source.xml of an ASDM
    Q
  1098. properMotionConversion -- converts between arcsec/yr and rad/s
  1099. psfDynamicRange -- computes ratio of peak to highest sidelobe in central channel of cube
  1100. qa0flags -- Summarize the QA0 flags in the FLAG_CMD table of a measurement set
    R
  1101. radecOffsetFileToRadec -- converts an absolute position and a file of relative offsets into a file of absolute positions
  1102. radecOffsetToRadec -- converts an absolute position and offset into a new absolute position
  1103. radecToEcliptic -- uses CASA measures tool to convert from equatorial to ecliptic coordinates
  1104. radec2deg -- converts an RA, Dec string in sexagesimal format to degrees
  1105. radec2direction -- converts an RA, Dec string in sexagesimal format to a casa direction dictionary
  1106. radec2ra -- convert an RA/Dec string in sexagesimal format to just the RA part
  1107. radec2rad -- convert an RA/Dec string in sexagesimal format to radians
  1108. radialVelocity -- reads the SYSVEL column of the SOURCE table for the specified source and spw
  1109. rad2direction -- converts an RA, Dec from a radians tuple or list into a casa direction dictionary
  1110. rad2radec -- convert an RA/Dec (or component0 from an imfit dictionary) from radians to sexagesimal
  1111. rads2radec -- convert a list of RA/Dec from radians to sexagesimal
  1112. rarad2hms -- Convert radians of right ascension to sexagesimal HH:MM:SS
  1113. ratioImageStdPerChannel -- runs imageStdPerChannel for two cubes and plots the spectral ratio of the selected imstat statistic
  1114. readAntennaPositionFromASDM -- returns a dictionary of antenna positions read from an ASDM
  1115. readAntennasFromASDM -- returns a list of antenna names (and optionally their stations) in the Antenna.xml file of an ASDM
  1116. readAntennasFromCalPosition -- returns a list of antenna names from a CalPosition.xml file as written by tc_antpos
  1117. readCalData -- Provides the mapping from cal data ID to scan number by reading the ASDM_CALDATA table of a measurement set
  1118. readCalDataFromASDM -- Builds a dictionary relating the calDataId to the scan number of an ASDM.
  1119. readContDateAggregateContinuum -- Reads the aggregate continuum bandwidth from a _findContinuum.dat file
  1120. readContDatFileType -- Determines if a cont.dat file came from the pipeline or from a manual run of findContinuum.py
  1121. readContDatLSRKRanges -- Reads the LSRK frequency ranges from a _findContinuum.dat file
  1122. readFitsMultiBeamTable -- reads the CASA beam table from a FITS cube and computes the median shape and position angle
  1123. readFluxCSV -- reads the flux.csv file of a pipeline run and returns a dictionary
  1124. readFluxesFromASDM -- Read the flux densities from the Source.xml file of an ASDM.
  1125. readIERS -- Displays the date and version code of the IERSeop2000 and IERS predict tables
  1126. readIERSeop2000 -- Read columns from the IERSeop2000 table
  1127. readIERSpredict -- Read columns from the IERSpredict table
  1128. readLLCs -- Reads the LLC voltage monitor point from one or more antennas for one day
  1129. readNonStandardHeader -- Reads the pixel information from a CASA image that does not have a spectral axis (workaround for CAS-5901)
  1130. readPipelineContDat -- Reads a cont.dat file and returns a dictionary keyed by spw ID
  1131. readPointingModelFromASDM -- Reads the pointing model for one (or all) antennas of an ASDM
  1132. readpwv -- assembles the dictionary returned by readwvr into arrays containing the PWV measurements
  1133. readRefantScoresFromCasalog -- Reads refant flagging and total scores from a CASA log for a specific ms and returns dictionaries
  1134. readSeeingFromASDM -- returns a dictionary containing information from the Seeing.xml file
  1135. readStationFromASDM -- Reads one or all stations from the ASDM, dictionary keyed by station number
  1136. readStationsFromASDM -- Reads one or all stations from the ASDM, dictionary keyed by station name
  1137. readStationFromASDMKeyedByAntennaName -- Reads one or all stations from the ASDM, dictionary keyed by antenna name
  1138. readSysCal -- Reads the SysCal.xml file of an ASDM searching for duplicate entries
  1139. readTAIUTC -- Returns the VS_DATE and VS_VERSION of the TAI_UTC table
  1140. readTcal -- Read the Tcal, Trx, or Tsys spectrum from the ASDM for a specific antenna, spw, and time
  1141. readTimesFromAnnotationTable -- Reads the parameter optimization entries for integration time from ASDM Annotation.xml
  1142. readTMCDBVersionAntennaHistory -- Reads the history of updates for an antenna
  1143. readTMCDBVersionPadHistory -- Reads the history of updates for a pad
  1144. readwvr -- reads the CalWVR.xml table from the ASDM and returns a dictionary
  1145. rebuildWeblog -- Regenerates the weblog from a pipeline execution
  1146. receiverTrxSpec -- Returns the Trx specification for the specified ALMA band
  1147. receiverTrxOT -- Returns the Trx used by the (Cycle 7) ALMA OT for the specified ALMA band
  1148. recenterOTPointings -- takes a Cycle 4 format OT pointings file and recenters it on a new direction
  1149. receptorAngles -- Prints the receptor angles associated with each antenna in the FIELD table of a measurement set.
  1150. recoverImfitEstimates -- Extracts estimates used by imfit from the CASA log into a text file (in case you changed it in the meantime)
  1151. refantScoreHistogram -- Builds histogram of refant total score and flagging score from a CASA log (see also plotRefantScore
  1152. refraction -- Computes the refraction angle for the specified elevation and weather
  1153. removeLines -- Removes all lines of an ASCII file that contain a specific string
  1154. removeAntennaFromCaltable -- Removes all rows in a caltable associated with an antenna
  1155. removeFieldFromTsysTable -- Removes all rows in a Tsys table associated with a specific field ID or field name
  1156. removeImageIfPresent -- Removes a file or directory if it is present
  1157. removePhasecalsFromSyscalTable -- Removes the rows from a SYSCAL table associated with phase calibrators (or other specified intent or specified scans)
  1158. removePhasecalsFromTsysTable -- Removes the rows from a Tsys table associated with the phase calibrators
  1159. removeScanFromCaltable -- Removes all rows from a caltable associated with a specified scan number
  1160. removeTargetMSfromList -- Removes all _target.ms from a list of measurement sets
  1161. removeTsysSpike -- interpolate a Tsys table across a spike or other unwanted feature
  1162. removeWhiteSpace -- removes spaces, tabs and newlines from a string
  1163. renameAntennas -- renames all, or a list of, antennas in a measurement set (helpful for simulations)
  1164. renameMsInCalTable -- Change the name of the MSName keyword in the header of a caltable
  1165. renameSourceInASDM -- Renames a source in all 5 relevant .xml files of the ASDM
  1166. renameSpwsInASDM -- Changes a specified string within an spw name to a different string, operating on all spws
  1167. repairAtmcalStateIDs -- Repairs the stateId entries in the Main.xml file of an ASDM for all the AtmCal scans
  1168. repairSidebandRatio -- prepares an ASDM for running casapy-telcal's tc_sidebandratio() command to recompute SB gains and then runs it
  1169. repairSysCal -- prepares an ASDM for running casapy-telcal's tc_atmosphere() command to recompute Trx/Tsys and then runs it
  1170. replaceCharacterInSpwString -- Called by renameSpwsInASDM
  1171. replaceFinalAppearanceOfSubstringInString -- replace the final appearance of a substring with a different string
  1172. replaceMonth -- Replaces a 3-character month string with its 2-character integer string
  1173. replacePipelineStage - replaces the stage number string in a pipeline-generated filename
  1174. replaceTsys -- copy a scaled version of the Tsys values for one antenna, one spw, one polarization, to another
  1175. replaceTsysScan -- copy the Tsys values for one antenna, one spw, one polarization, one scan to a different scan
  1176. replaceTsysScanFromSQLD -- replaces existing Tsys values in a caltable with those from the SQLDs (located in an ASDM SysCal.xml table)
  1177. representativeFrequency -- gets the representative frequency for an ALMA measurement set
  1178. representativeFrequencyFromASDM -- gets the representative frequency for an ALMA ASDM
  1179. representativeSpw -- gets the representativeWindow value from the SBSummary.xml file of a measurement set (see also surmiseRepresentativeSpw)
  1180. requestedResolution -- gets the min/max acceptable angular resolution from a measurement set
  1181. requestedResolutionFromASDM -- gets the min/max acceptable angular resolution from an ASDM
  1182. resetVisibilities -- Sets the visibilities (data column) of a measurement set to a single user-supplied value
  1183. resetweights -- Set the data weights in a measurement set to a user-supplied factor
  1184. restFrameFreqRangeForSpw -- Gets rest frame frequency range in Hz for an spw
  1185. restFrequencies -- Returns a dictionary of spw rest frequencies for an ms
  1186. restFrequenciesASDM -- Returns a dictionary of spw rest frequencies for an ASDM
  1187. restFrequency -- read the spectral line rest frequency for the source and spw (originating in the OT)
  1188. visibilityOutliers.restoreCorrectedAmpFlagStage -- Prints commands to prepare a pipeline calibrated ms for testing with vo.makeFlagTemplates
  1189. restToLSRK -- convert rest frequency to LSRK frequency
  1190. roundFigures -- Rounds a value to N significant digits and outputs a float
  1191. roundFiguresToString -- Rounds a value to N significant digits and outputs a string
  1192. roundMeasurementToString -- Rounds two values to the same number of significant figures and generates a string
  1193. roundRadec -- Rounds a sexagesimal RA, Dec string to a specified precision (number of digits after the seconds decimal)
  1194. ami.runImstat -- Runs imstat with simultaneous mask and annulus options
  1195. runFixsyscaltimes -- Runs the casarecipe::almahelpers fixsyscaltimes and broadcasts the output messages to the CASA log
  1196. runPipeline -- Generates a small script to run the pipeline from PPR, pausing and running correctMyAntennaPositions and getALMAFluxcsv before restarting
  1197. runPredictcomp -- A convenient wrapper for running the casa task predictcomp
  1198. ruzeEfficiency -- Computes Ruze efficiency for wavelength, surface rms
    S
  1199. sbnameForMOUS -- Looks up the SB name for a science MOUS
  1200. scaleChanwidth -- Scales the channel width of an spw in a measurement set
  1201. scaleEffectiveBandwidth -- Scales the effective bandwidth of an spw in a measurement set
  1202. scaleEffectiveBandwidthASDM -- Scales the effective bandwidth of an spw in an ASDM
  1203. scaleEffectiveResolution -- Scales the effective resolution of an spw in a measurement set
  1204. scaleEffectiveResolutionASDM -- Scales the effective resolution of an spw in a measurement set
  1205. scaleweights -- Scale the data weights in the WEIGHT column in a measurement set by a factor
  1206. scaleWeightSpectrum -- Scales the data weights in the WEIGHT_SPECTRUM column in a measurement set by a factor
  1207. scaleWeightsPerAntenna -- Scales the data weights individually on each antenna in a measurement set by an individual factor
  1208. scansForIntent -- Returns a list of scans for a specific intent in a measurement set
  1209. scienceScanTimeFromWeblog -- Reads the scan start/end times for science targets from weblog
  1210. searchFlux -- Search the ALMA calibrator catalog for a specific source to get its measured flux densities
  1211. searchFluxForMS -- Search the ALMA calibrator catalog for all non-science targets in a measurement set
  1212. searchFluxPolarization -- Search the ALMA calibrator catalog for recent observations of polarization calibrators
  1213. sensitivity -- Calculate sensitivity of various telescopes (this is a wrapper for simutil's calculator which matches the ALMA OT)
  1214. sensitivityAdjustment -- Computes the formula from CAS-8534
  1215. sensitivityImprovement -- Computes the expected improvement in sensitivity from making ALMA images with combined channels
  1216. setBeam -- Set the restoring beam in the header of a CASA image
  1217. setFieldTime -- Sets a cell in the TIME column of the FIELD table of an ms
  1218. setImageUnits -- Sets the units of the first two axes of an image to the specified angular unit using imhead 'put'
  1219. setMeasFreqRef -- modifies the MEAS_FREQ_REF column of a SPECTRAL_WINDOW table of an ms, which encodes whether the frequency frame is TOPO or LSRK, etc.2018/01/05/10:03:54.479
  1220. setObject -- Sets the OBJECT (and FIELD) keywords in a FITS image
  1221. sevenMeterAntennasMajority -- returns True if the majority of antennas are <= 7m diameter
  1222. sevenMeterAntennasOnly -- Checks for 'CM' in antenna names, and returns False if at least one is not
  1223. sevenMeterAntennasMajorityASDM -- returns True if the majority of antennas in an ASDM are <= 7m diameter
  1224. sevenMeterAntennasOnlyASDM -- Checks the antenna diameters in an ASDM and returns True if all are less than 8m
  1225. sfBeam -- compute the effective restoring beam obtained from the casa command sd_imaging using the SF gridding function
  1226. sharedPads -- finds pads that are shared by specified list of ALMA standard configurations (i.e. a more ALMA-specific version of CommonPads)
  1227. shiftChannelSelection -- shifts a CASA channel selection string by a specified number of channels
  1228. sidebandToNetSideband -- convert from the [-1,+1] convention to the measurement set convention [+1,+2]
  1229. sidebandToString -- converts -1, +1 to 'LSB', 'USB'
  1230. singleDishSpectrum -- computes calibrated spectra from a single dish measurement set in a variety of ways
  1231. smooth -- smooth data using a specified window and size
  1232. smoothbandpass -- smooths an existing bandpass table with options for window length and type (Ed Fomalont)
  1233. smoothSpectralWindowTable -- resamples the vector columns of a spectral window table by taking means
  1234. smoothTsys -- filters and decimates all spws in a Tsys caltable to emulate lower resolution measurements
  1235. smoothTsysSpw -- filters and decimates a single spw in a Tsys caltable to emulate lower resolution measurements
  1236. snrFromCaltable -- builds a dictionary of statistics of the SNR in a caltable
  1237. snrToPhaseRmsDegrees -- converts the S/N of a visibility into rms phase in degrees
  1238. solutionsFromCaltable -- reads amplitudes, times, antenna IDs for a time-based 'T' solve
  1239. sortByObservationDate -- sorts a list of measurement sets by their observation start date/time
  1240. spectralindex -- performs least-squares fit to the output from fluxscale, computes uncertainties, and produces a plot
  1241. splitListIntoContiguousLists -- Converts [1,2,3,5,6,7] into [[1,2,3],[5,6,7]], etc., and (optionally) trim and recombine
  1242. splitListIntoHomogeneousLists -- Converts [1,1,1,2,2,3] into [[1,1,1],[2,2],[3]], etc.
  1243. spwForRestFrequency -- Finds the spw that contains the defined rest frequency closest to a specified value
  1244. spwPhaseupFromWeblog -- Finds whether mapping or combine was used for each vis, and which spws have relevant solutions
  1245. spwsForFields -- calls msmd.spwsforfield for each field in a list and returns the union
  1246. spwsForNames -- returns a list of spw IDs corresponding to a list of spw names
  1247. spwsForObsID -- returns a list of spw IDs observed in the specified Obs ID (and optionally scan number/list)
  1248. spwsForScan -- returns a dictionary keyed by scan number, with values equal to the non-chanavg, non-WVR, non-SQLD spws
  1249. spwToLSRK -- converts TOPO frequencies in a measurement set to LSRK for a specified field
  1250. spwType -- Determines the type of ALMA spw based on the number of channels
  1251. SQLD -- a class to read the baseband total power detector coefficients from the computing logs web interface and apply them to a measurement set to convert from counts to dBm
  1252. stripTaskFromLog -- remove all messages from a specific task(s) from a casa log file
  1253. strDate2MJD -- converts date in string format (YYYYMMDD or YYYY-MM-dd) to MJD
  1254. strongTsysLines -- returns dictionary containing number of strong features in each Tsys spw
  1255. strongTsysLinesInSpw -- returns number of strong features in the specified Tsys spw
  1256. subtractDays -- subtract a specified number of days from a date string
  1257. subtractGaussianFromImage -- Subtract a 2D Gaussian from an image
  1258. analyzemsimage.summarizeFindcont -- builds a multi-panel png for the findcont joint masks and mean spectra from a pipeline run, or pair of serial/parallel pipeline runs
  1259. analyzemsimage.summarizeFindconts -- runs summarizeFindcont for a list of pairs of pipeline runs
  1260. summarizeFlagFile -- Summarizes flag file per spw and per field
  1261. summarizeImfitResults -- Computes the median and MAD of a dictionary list of imfit fit results
  1262. sun -- computes the azimuth and elevation of the Sun at a specified time (or "now"), for any observatory known to CASA
  1263. sunrise -- computes the sunrise and sunset in mjd seconds for the specified date and observatory
  1264. surmiseConfiguration -- determine the most closely matching ALMA configuration from a measurement set (also works for VLA and other interferometers)
  1265. surmiseConfigurationFromASDM -- determine the most closely matching ALMA configuration from an ASDM (also works for VLA)
  1266. surmiseConfigurationFromImage -- determines nominal ALMA configuration that would produce the beam of the specified image
  1267. surmiseCycle -- determine the ALMA cycle from the date of a measurement set
  1268. surmiseCycleFromASDM -- determine the ALMA cycle from the date of an ASDM
  1269. surmiseCycleFromImage -- determine the ALMA cycle from the date of an image
  1270. surmiseEffectiveResolution -- determine the effective resolution of a channel in an ALMA measurement set
  1271. surmiseOnlineChannelAveraging -- determine the level of channel averaging in an spw of an ALMA measurement set
  1272. surmiseRepresentativeSpw -- gets the spw that contains (and whose center frequency is closest to) to the representative frequency of a measurement set (see also representativeSpw)
  1273. swapPhasecalChecksourceIntents -- swaps all appearances of CALIBRATE_PHASE with OBSERVE_CHECK_SOURCE
    T
  1274. amc.tailCalibPipeLogfile -- searches the specified directory tree for the newest calibPipeIF.*log file and runs "tail -f" on it
  1275. amc.tailPipelineCasaLogfile -- searches the specified directory tree for the newest casa log file, optionally containing an applycal call on a specified ASDM, and runs "tail -f" on it
  1276. ALMA.TargetRADecFromWeblogtargetRADecFromWeblog]] -- Reads the RA/Dec of all science targets from the weblog
  1277. taskExecutionTimes -- computes the time taken to execute a task in a casa log file
  1278. tcleanMemoryFromLogfile -- computes the median value of Available memory in a casa log containing tclean commands
  1279. tcleanMemoryFromLogfiles -- computes the median value of Available memory in several casa logs
  1280. tcleanVelocityParameters -- determines nchan, start, width, restfreq parameters for tclean for an MOUS
  1281. testFlagRowColumn -- Tests whether the FLAG_ROW column is consistent with the FLAG column
  1282. timeDifference -- compute the time difference between two observations (two .ms)
  1283. timeDifferenceASDM -- compute the time difference between two ASDMs
  1284. timeOnSource -- compute the total time spent integrating on-source for each specified field
  1285. timeOnSourceFromWeblog -- Reads time on science targets from weblog
  1286. timeOnSourceSD -- compute the total time spent integrating on-source and off-source on the science target in a single dish dataset
  1287. timePipelineImaging -- Parses the CASA log to build a dictionary of tclean run times
  1288. timeTargetflag -- Parses the CASA log to compare time required for various pieces of hifa_targetflag
  1289. timeTclean -- Times the various parts of tclean autoboxing for Major Cycle 2 from a CASA log file
  1290. topoChannelToLSRK -- convert a visibility channel TOPO frequency to LSRK frequency
  1291. topoToLSRK -- convert topocentric frequency to LSRK frequency
  1292. topoToLSRKForField -- Reads date, observatory, equinox and direction from an ms and converts a TOTO freq to LSRK
  1293. topoToRest -- convert topocentric frequency to rest frequency
  1294. transferWeights -- transfers the weights from one measurement set to another
  1295. transferWeightsWithinMS -- transfers the weights from one spw to one or more other spws (in the same measurement set)
  1296. transition -- read the spectral line transition name for the source and spw (originating in the OT)
  1297. transitions -- returns a dictionary of spectral line transitions keyed by spw of the science spws of a specified ms
  1298. transitTime -- Compute the time of transit on a certain date for an RA, or a field from a measurement set
  1299. transitTimeUnix -- Compute the unix time in seconds of transit on a certain date for an RA, or a field from a measurement set
  1300. es.tsysAverage -- computes and plots the average (per-spw) Tsys spectrum for an ALMA Tsys caltable
  1301. tsysFromListobs -- Returns the number of Tsys scans on phasecal and science targets from a listobs text file
  1302. tsysFromMOUSListobs -- Returns the number of Tsys scans on phasecal and science targets in each EB of a pipeline-reduced MOUS
  1303. tsysOffSourceRADec -- Computes RA/Dec of the Tsys reference position
  1304. tsysspwmapWithNoTable -- finds the Tsys spw corresponding to a specfied spw without the need for a tsys caltable
  1305. tunnel -- open an ssh tunnel to a server in Chile, e.g. for accessing the calibrator catalog
  1306. twoSourceDataset -- modifies the intents of a two-source measurement set so that it can be run through the script generator
    U
  1307. uidToUnderscores -- converts a colon/slash delimited uid to underscore-delimited, preserving any initial path
  1308. unifyFieldTimes -- Copies the time for a field in the FIELD table from one ms to a list of others
  1309. uniqueValuesInASCIIFileColumn -- reads in a list of ASCII files, parses 1 or 2 columns and returns a dictionary of the unique values in those columns
  1310. unixTimeToDateString -- converts a unix time (in seconds) to "YYYY-MM-DD HH:MM:SS UT"
  1311. unixtimeToSiderealTime -- converts a unix time in seconds to sidereal time at specified observatory
  1312. unpackWeblogs -- unpacks the tarball weblogs contained in a list of directories
  1313. unwrapCasaCommandLog -- Takes an ASCII file and unwraps the long lines (without breaking words)
  1314. updateImfitEstimates -- Reads logfile produced by imfit and updates an estimates file for peak intensity and x and y
  1315. updateSBSummary -- Changes values in the ASDM_SBSUMMARY table of a measurement set
  1316. updateSBSummaryASDM -- Change values in the SBSummary.xml file of an ASDM
  1317. updateSBSummaryMOUS -- Change values in the ASDM_SBSUMMARY table of a list of measurement sets according to a text file
  1318. upsampleSpectralAxis -- Resample's the spectral axis of a cube by a specified factor (using imregrid)
  1319. utm2long -- A convenient wrapper for simutil.utm2long
  1320. utm2longFromFile -- Converts a text file from UTM 19S coordinates to latitude/longitude
  1321. utm2xyz -- A convenient wrapper for simutil.utm2xyz
  1322. uvcontfitCaltable -- Examine values in a caltable generated by uvcontfit
  1323. uvplot -- Makes a uv plot with points mirrored about the origin (similar but inferior to plotuv in casa)
  1324. uvplotHeterogeneous -- Makes a 4-panel Vwave vs. Uwave plot of heterogenous ALMA dataset
  1325. uvplotMultiEB -- Overlays the uv coverage of multiple EBs by calling plotms repeatedly
  1326. uvrangeFromVisstat -- Calls visstat followed by visstat2uvrange to return min/max uvrange in meters
  1327. uvrangeFromVisstats -- Calls uvrangeFromVisstat on a list of measurement sets and reports the aggregate range
  1328. uvspectrum -- Uses plotms to generate a (baseline-)averaged uv spectrum
  1329. uvtaperProtection -- Preliminary algorithm for tapering the effect of outlier antennas in an ms
  1330. uvtaperProtectionASDM -- Preliminary algorithm for tapering the effect of outlier antennas in an ASDM
  1331. uvwDifference -- compute the difference in uvw's between two (nearly) identical ms's
    V
  1332. validateReceptorAngle -- Compares the receptor angles for the first science spw of a measurement set against the default values for the corresponding ALMA band
  1333. validCalibration -- checks if all science spws were also observed with the specified calibration intent
  1334. velocityRange -- computes LSRK velocity range of the visibility data of an spw
  1335. velocityRanges -- computes relative channel shifts among measurement sets
  1336. velocityResolution -- computes the velocity resolution of spw(s) of a measurement set
  1337. version -- returns the CVS version number of analysisUtils.py
  1338. versionsFromWeblog -- reads the CASA and pipeline versions from the weblog main page
  1339. virtualSpwsNeeded -- returns the number of EBs that require virtual spw mechanism for a specified pipeline working directory
  1340. visHistory -- returns and/or searches the history of a measurement set
  1341. vislistFromWeblog -- reads list of measurement sets from weblog
  1342. visstatBinnedUVSpectrum -- calls visstat N times to build up an N-channel spectrum
  1343. visstatParse -- Computes mean timestamp of data selected by visstat
  1344. visstat2uvrange -- computes the global min/max uvrange over all spws from a dictionary returned by visstat2(axis='uvrange')
    W
  1345. waterPartialPressure -- converts relative humidity and temperature into partial pressure of water vapor
  1346. waterVaporPressure -- computes vapor pressure of water at a particular temperature using the Antoine equation
  1347. waveNumberPerAtmosphereToMHzPerMillibar -- converts air broadening coefficient to different units
  1348. waveNumberToFrequency -- converts wave number to frequency in GHz
  1349. wcaRange -- returns the LO range divided by the cold multipler for the specified band
  1350. weatherCorrelation -- plots one ALMA weather station quantity vs. another for one station.
  1351. weatherCorrelationMontage -- calls weatherCorrelation for all ALMA stations and assembles result into relative location on Chajnantor
  1352. amc.weblogDuration -- returns the duration string shown in the pipeline weblog main page
  1353. widestChanwidth -- returns the widest channel width for the specified list of spws in a measurement set
  1354. windowFunction -- returns the FWHM or effective bandwidth (in channels) for the chosen ALMA correlator window function
  1355. worstMomDiffSNRFromCasalog -- Searches the casa log by calling momdiffSNRFromCasalog for each findcont.residual cube of a pipeline run
  1356. wvrAmplitudes -- returns the median and maximum values of each WVR channel per antenna, for a specified field
  1357. wvrCorrelation -- computes the covariance between the WVR data channels and the astronomical autocorrelation, scaled to the variance of the WVR data
  1358. wvrdata -- Looks in CalPhase.xml of an ASDM to determine if it contains WVR-corrected data or not
  1359. wvrgcalStats -- runs wvrgcal once for each source ID with --statsource set and generates a table of RMS and discrepancy statistics
  1360. es.wvr_stat_all -- runs es.wvr_stat once for each spw/pol combination, and assembles all the plots into a PDF
    X
  1361. xyz2long -- A convenient wrapper for simutil.xyz2long to convert the specified ITRF location to degrees of latitude and longitude
    Y
  1362. yearFraction -- computes the epoch (e.g. 2016.02344) for a specified date time string
  1363. yigHarmonic -- returns the YIG harmonic used in the WCA of the specified ALMA band
  1364. yigRange -- returns the required tuning range in Hz of YIG in the WCA of the specified ALMA band
  1365. ymdhmsToMJD -- converts the date and time specified via 3 to 6 integers into MJD

Additions from others

  • InterpolateTsys -- Stuartt Corder
    • related CASA recipes:
      • tsysspwmap
        • from recipes.almahelpers import tsysspwmap
        • tsysspwmap(vis='', tsystable='')
      • fixsyscaltimes
        • from recipes.almahelpers import fixsyscaltimes
        • fixsyscaltimes(vis='blah.ms')
  • stuffForScienceDataReduction -- a class containing methods to correct antenna positions, etc. (Eric Villard)
    • generateReducScript -- generate a script to reduce ALMA data
    • generateQA2Report -- generate a QA2 report for ALMA Cycle 0 or Cycle 1 data
    • correctMyAntennaPositions -- print out the exact gencal command you need to run to apply the most recent position offsets applicable to your array configuration
    • wvr_stat -- QA2 function to determine the phase rms before and after application of wvr
  • ValueMapping -- A class which provides details on the mapping of various parameters of an ms to each other, which is used by many of the functions above (Stuartt Corder)

Other utilities for EVLA, etc.

Easy access in Charlottesville or Socorro

  • create a file in your home area: ~/.casa/init.py which contains:
import sys
sys.path.append("/users/thunter/AIV/science/analysis_scripts/")
import analysisUtils as au
  • start casa
  • Now you can access all functions, for example: au.plotbandpass()

Easy access for users outside of NRAO

  • download the tar file analysis_scripts.tar
  • unpack it in a designated area, such as your home directory -- it will make a subdirectory called analysis_scripts
  • edit your file ~/.casa/init.py to contain the following lines:
import sys
sys.path.append("/your_parent_directory/analysis_scripts/")
import analysisUtils as au
  • start casa
  • Now you can access all functions, for example: au.plotbandpass()

-- ToddHunter - 2011-10-07

  • analysisUtils.py_history.png: generated by tt.plotLinesOfCodeVsTime(filename='analysisUtils.py')
    analysisUtils.py history.png
Topic attachments
I Attachment Action Size Date Who Comment
analysisUtils.py_history.pngpng analysisUtils.py_history.png manage 61 K 2018-05-18 - 14:59 ToddHunter  
runspecfit.py.txttxt runspecfit.py.txt manage 5 K 2012-10-19 - 16:10 ToddHunter Example script using specfit to fit multiple Gaussians to multiple pixels in a cube
Topic revision: r951 - 2026-04-10, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback