filterSources

Return to directory of Todd's tools

Reads a list of source coordinate positions and filters them to be within a specified box on the sky, and writes those to a new file.

Usage:

tt.filterSources(myfile, blc, trc, outfile='', startline=41, startcol=7, endcol=31, writeCoordsOnly=False)
Inputs:
  • myfile: an ASCII file containing source positions, e.g. from a journal electronic table
  • blc: bottom left corner coordinate as a sexagesimal string
  • trc: top right corner coordinate as a sexagesimal string
  • startcol: the starting column from which to read the position string
  • endcol: the ending column from which to read the position string
  • startline: the first line in the file from which to start reading position lines
  • writeCoordsOnly: if True, then only write the coordinates on each line (not the rest of the columns) to the output file

-- ToddHunter - 2015-04-14
Topic revision: r2 - 2015-04-15, 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