View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

adding observatory to obsdb.dat

Sunshine wrote on Jun 02, 2006

How can I add an observatory to my iraf account? I don't need it added to the general one.

Thanks.

Mike Fitzpatrick wrote on Jun 02, 2006

A private copy of the observatory database can be used simply by defining an 'obsdb' environment variable giving the path to it. For example,


cl> copy noao$lib/obsdb.dat home$   # make private copy
cl> edit home$obsdb.dat             # add your entry
cl> reset obsdb = home$obsdb.dat   # define the env variable


and you should be able to use the new entry. This can be put in your login.cl file for more persistence and doesn't require iraf write permission. See the OBSERVATORY help page for details.

-Mike

Sunshine wrote on Jun 02, 2006

Wow, that was fast! Thanks! :D

Do I add it to the login.cl by adding the following?
set obsdb = home$obsdb.dat

Mike Fitzpatrick wrote on Jun 02, 2006

Right, just be sure the 'keep' remains the last line of the file. You can also put it in a 'loginuser.cl' file in the same directory (again with 'keep' as the last line).

-Mike

Sunshine wrote on Jun 02, 2006

Thanks! :D

Last post on Jun 02, 2006