ridsmtn ids_file iraf_file
iraf_file.record_number+offsetThe offset parameter can be used to create a sequence of output IRAF filenames with continuous, sequential suffixes over more than one night's data.
The IDS records from either a raw or reduced IDS mountain tape are read and optionally converted to a sequence of one dimensional IRAF images. The records to be read can be specified. The IDS header information is printed in either a short or long form. The pixel values can be listed as well.
The entire image may be extracted (default for reduced data) by specifying the parameters np1=1 and np2=1024 (IIDS and IRS). Otherwise, the header parameters NP1 and NP2 will be used to indicate the useful portion of the spectrum. For raw data these values are 6 and 1024 for the IIDS and 68 and 888 for the IRS (your IRS values may vary).
On the mountain, the NEW-TAPE command writes a dummy record on tape with a record number equal to the starting record number minus 1. If this dummy record number is included in the record_numbers range, a meaningless IRAF image will be written. In most cases, the dummy record number = 0.
[1] Convert all records on the IDS tape to IRAF images, with the root image name being "aug83". The data is mountain reduced, and all records will be converted. The IDS tape is mounted on mtb. cl> ridsmtn mtb aug83
[2] List the headers from the same mountain tape read in example 1 but don't make output images. A long_header will be listed; sample output is shown.
cl> ridsmtn mtb make_image=no long_header=yes
RECORD = 79, label = "NGC 7662 7.4E 10S AUG 23/24 84 CLOUDS", oflag = OBJECT, beam_number = 0, W0 = 4588.503, WPC = 2.598, ITM = 120, NP1 = 0, NP2 = 1024, UT = 7:37:04.0, ST = 22:21:46.0, HA = -1:03:25.7, RA = 23:25:12.6, DEC = 42:26:37.0, DRA = 7.4, DDEC = -10., df =-1, sm =-1, qf =-1, dc = 0, qd = 0, ex =-1, bs = -1, ca = -1, co = 0 RECORD = 238, label = "HENEAR AUG 23/24 84 END 8.4" ENT", oflag = SKY, beam_number = 1, W0 = 4585.501, WPC = 2.602, ITM = 400, NP1 = 8, NP2 = 1019, UT = 12:31:01.0, ST = 3:16:33.0, HA = 0:17:16.3, RA = 2:59:16.7, DEC = 31:57:30.0 df = 6, sm = -1, qf = -1, dc = -1, qd =-1, ex =-1, bs =-1, ca =-1, co = -1, df[1] = 5889.2139, df[2] = 1355.6821, df[3] = 23.1303, df[4] = -2.85366, df[5] = 3.0472932, df[6] = -4.541831
[3] Print the pixel values for records 5086 and 5087. No output image will be written, and only the short header listed. This time, the IDS tape contains raw data, not reduced.
cl> ridsmtn mtb red- make_im- rec=5086,5087 print_pix-