Institut für Astronomie und AstrophysikAbteilung AstronomieWaldhäuser Str. 64, D-72076 Tübingen, Germany |
MID_RD_DISDSC
Get a MIDAS directory descriptor from a MIDAS BDF.
Note: PORTABLE MIDAS.
MID_RD_DIRDSC,IMAGE,DSCNAME,DSCVALUE
IMAGE = Filename or Logical Unit Number. * If a filename is given, the file will be opened and closed using a local LUN. The filename is that of the MIDAS image, without extension (.BDF will is assumed) or version number (latest version is assumed). * If a LUN is given, the file associated with that LUN will be used. DSCNAME = Name of the Descriptor wanted.
DSCVALUE = Value of the directory descriptor wanted.
0) Check inputs and set error handling. 1) Open file for access using the access method indicated by the type of the input parameter IMAGE. 2) Find the descriptor by name (string type). 3) Decode the 30 byte descriptor block. 4) Use #3 to find descriptor data area. 5) Convert descriptor data as indicated by descriptor block information. 6) Terminate file access as is proper for the type of parameter IMAGE.
1) There must be only one FCB and it must be in VBN 1. 2) The LDBs must begin in VBN 2. 3) All descriptors must be in the first LDB. 4) Note: .bdf and .tbl extensions assumed lower case.
SAV - Stephen A. Voels, USM/DAN
FEB 1989 SAV Initial programming. MAY 1989 FM Change of name of routine; some minor alterations. AUG 1990 FM Updates for Portable MIDAS (noted as comments below). FEB 1991 FM Conversion to V. 2 of IDL, Unix. Converted to IDL V5.0 W. Landsman September 1997
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]