FORTRAN Format Descriptors in ADC Documents
The CDS/ADC standard document structure uses FORTRAN format descriptors as a compact way to describe a data line. There are a dozen or so FORTRAN format descriptors, but only a few are commonly used in the standard documents:
| Descriptor | Meaning |
|---|---|
| Aw | Interpret the next w characters as a text string. |
| Iw | Interpret the next w characters to an INTEGER value. |
| Fw.d | Interpret the next w characters as a REAL number. If no decimal point is included, the final d digits are the fractional part. |
| Ew.d | Interpret the next w characters as a REAL number in exponential notation. |
Where:
w = positive integer specifying FIELD WIDTH
d = non-negative integer specifying number of
digits to display to right of decimal.
The corresponding input item must consist of decimal digits and/or spaces, with an optional sign anywhere before the first digit and an optional decimal point. As with the I format descriptor, spaces are interpreted as zeroes. If there is no decimal point in the item, the number of fractional digits is indicated by d.
4I6The format 4I6 describes a line consisting of 4 successive I6 fields. When no integer (n) appears before a letter code, it implies that the repeat count is one (n=1).
Byte-by-byte Description of file: uv.dat
--------------------------------------------------------------------------------
Bytes Format Units Label Explanations
--------------------------------------------------------------------------------
1- 3 I3 --- ID Lanning number
4 A1 --- rem "*" indicates a note in notes.dat
6- 7 I2 h RAh Hours of Right Ascension (J2000)
9- 10 I2 min RAm Minutes of Right Ascension (J2000)
12- 16 F5.2 s RAs Seconds of Right Ascension (J2000)
18 A1 --- DE- Sign of declination
19- 20 I2 deg DEd Degrees of declination (J2000)
22- 23 I2 arcmin DEm Minutes of declination (J2000)
25- 29 F5.2 arcsec DEs Seconds of declination (J2000)
32- 36 F5.2 mag B ? Approximate blue magnitude
37 A1 --- u_B : indicates B is uncertain
39- 42 F4.1 mag U-B ? Approximate U-B
43 A1 --- u_U-B : indicates U-B is uncertain
--------------------------------------------------------------------------------
Sample data records described by above:
15* 16 58 01.43 +34 43 28.55 18.5 16* 18 20 35.4 -16 10 48.64 17* 18 23 00.39 -04 37 09.6 20. 18* 18 47 39.12 +01 57 39.09 12. 19 19 33 49.94 +18 52 03.12 15.5 20 19 43 31.19 +18 24 35.22 12.