Usage of degfile2radec

Return to directory of Todd's CASA extensions

Usage:

degfile2radec(filename)

filename is an ASCII file of the format:
  84.735055 +69.071335
  84.705420 -69.078338
  ...
Convert a list of RA/Dec positions in a file from degrees to sexagesimal strings. Output file name will have '.radec' appended. See also deg2radec, direction2radec and rad2radec.

Examples:

CASA <15>: au.degfile2radec('30dor.dat')
05:38:56.41320, -069:04:16.806000
05:38:49.30080, -069:04:42.016800
05:38:47.00784, -069:05:00.337200
05:38:45.15792, -069:05:06.914400
05:38:37.87752, -069:05:00.312000
05:38:47.06256, -069:04:40.231200
05:38:46.61016, -069:04:45.012000
05:38:47.34264, -069:04:00.926400
05:38:47.11656, -069:04:03.910800
05:38:47.34552, -069:04:06.607200
05:38:50.98080, -069:04:23.120400
05:38:48.91176, -069:04:47.427600
05:38:44.87496, -069:04:39.619200
05:38:45.21288, -069:04:40.796400
05:38:52.82808, -069:04:37.801200
05:38:53.55912, -069:04:35.713200
05:38:49.36176, -069:04:44.137200
Output file = 30dor.dat.radec

Note: The output file will be space-delimited rather than comma-delimited, and will have the extraneous leading zero on declination removed.

-- ToddHunter - 2012-12-07
Topic revision: r1 - 2012-12-07, 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