Welcome to iraf.net Saturday, January 20 2018 @ 07:13 AM GMT

 Forum Index > Help Desk > Applications New Topic Post Reply
 Hedit colon separated coordinates
 12/02/2016 05:22PM (Read 410 times)  

Status: offline

Registered: 09/14/2016
Posts: 3
I am trying to update the header of my fits file with coordinates and time of the observation and i want them in the 'hh:mm:ss' format. I use the hedit command as follows

hedit test.fits RA '10:17:58' add+

but iraf convert it into a decimal format and saves it as '10.2994' that is not what i want. How can i force it to preserve the correct format in hours minutes and seconds?

Profile Email
 12/06/2016 09:00AM  

Status: offline

Registered: 09/30/2005
Posts: 3991

Sexagesimal values are supported by the CL and various tasks as native types, combined with the fact that HEDIT is expecting an *expression* as the argument, the single quotes don;t actually define your value as a string (as far as the task is concerned). The trick is to use parentheses in the expression so your value is treated as a simple string constant. For example,

cl> hedit test.fits RA "('10:17:58')" add+

will do what you want.

Profile Email
Content generated in: 0.10 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies

Privacy Policy
Terms of Use

User Functions