Cmds File Examples

From BYU Astro Docs

Jump to: navigation, search

Contents

Introduction

There are two versions of cmd files. Versions that are used prior to IRAF version 2.11 are old school cmds files. However either can be used based if asthedit parameters are set correctly. See asthedit help on iraf.net for more information.

For these example files:

  • The items written in bold are the items to be edited by the user.
  • The quotes are needed in the .cmds file. There are a few places were single quotes (') are used, be sure to follow the format.
  • Edit only the items that are in bold.

New Style cmds Files

  • For these to work, the asthedit parameter option oldstyle should be set to no.

AP8p with MaxIm Software

title = "Wolf 359"
subset = "V"
ra = "10:56:28.99"
dec = "+07:00:52.0"
epoch = "2000"
imagetyp = "object"
observers = "Locutus of Borg"
obs = '@observat'
observat = "esc"
ut = sexstr(@'time-obs')
st = mst(@'date-obs',@'time-obs',obsdb(observat,"longitude"))

Old School cmds Files

  • For these to work, the asthedit parameter option oldstyle must be set to yes.

Pictor CCD and Pictor Software

title           "Wolf 359"
subset          "V"
date            "14/06/02"
ra              "10:56:28.99"
dec             "+07:00:52.0"
epoch           "2000"
imagetyp        "object"
observers       "Locutus of Borg"
ut              sexstr ($ut)
st              mst (@'date',ut,obsdb(observat,"longitude"))

Note: date is in day/month/year format.

Apogee CCD / MaxIm Software

title           "Wolf 359"
subset          "V"
ra              "10:56:28.99"
dec             "+07:00:52.0"
epoch           "2000"
imagetyp        "object"
observers       "Locutus of Borg"
obs             '@observat'
observat        "esc"
ut sexstr       (@'time-obs')
st mst          (@'date-obs',@'time-obs',obsdb(observat,"longitude"))
Personal tools