Conversion of standardized ReadMe file for
file /./ftp/cats/III/76A into FORTRAN code for loading all data files into arrays.
Note that special values are assigned to unknown or unspecified
numbers (also called NULL numbers);
when necessary, the coordinate components making up the right ascension
and declination are converted into floating-point numbers
representing these angles in degrees.
program load_ReadMe C============================================================================= C F77-compliant program generated by readme2f_1.81 (2015-09-23), on 2024-Apr-20 C============================================================================= * This code was generated from the ReadMe file documenting a catalogue * according to the "Standard for Documentation of Astronomical Catalogues" * currently in use by the Astronomical Data Centers (CDS, ADC, A&A) * (see full documentation at URL http://vizier.u-strasbg.fr/doc/catstd.htx) * Please report problems or questions to C============================================================================= implicit none * Unspecified or NULL values, generally corresponding to blank columns, * are assigned one of the following special values: * rNULL__ for unknown or NULL floating-point values * iNULL__ for unknown or NULL integer values real*4 rNULL__ integer*4 iNULL__ parameter (rNULL__=--2147483648.) ! NULL real number parameter (iNULL__=(-2147483647-1)) ! NULL int number integer idig ! testing NULL number C============================================================================= Cat. III/76A Luminous Stars in the Northern Milky Way (LS) (Hardorp+ 1959-1965) *================================================================================ *Luminous Stars in the Northern Milky Way, Volumes I-VI * Hardorp J., Rohlfs K., Stock J., Slettebak A. * <Hamburg-Bergedorf I (1959)> * Stok J., Nassau J.J., Stephenson C.B. * <Hamburg-Bergedorf II (1960)> * Hardorp J., Theile I. Voigt H.H. * <Hamburg-Bergedorf III (1964)> * Nassau J.J., Stephenson C.B. * <Hamburg-Bergedorf IV (1963)> * Hardorp J., Theile I. Voigt H.H. * <Hamburg-Bergedorf V (1965)> * Nassau J.J., Stephenson C.B., Mac-Donnell D.J. * <Hamburg-Bergedorf VI (1965)> C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'ls.dat' ! The Catalogue integer*4 nr__ parameter (nr__=7392) ! Number of records character*77 ar__ ! Full-size record C B1950 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg (nr__) ! (deg) Right Ascension B1950 real*8 DEdeg (nr__) ! (deg) Declination B1950 C ---------------------------------- ! (position vector(s) in degrees) character*7 LS (nr__) ! *LS number in the form sign, zone, number integer*4 Vol (nr__) ! *[1/6] Volume number of published catalogue in * which the star is listed. character*10 BD (nr__) ! Durchmusterung (BD present in bytes 9-10). * Bytes 11-13 contain the zone, and * bytes 14-18 the number in the zone. character*1 m_BD (nr__) ! *Code for duplicity in BD designation character*17 Sp (nr__) ! *Estimated spectral type. integer*4 Pmag (nr__) ! (dmag) *? Photographic magnitude (see also u_Pmag) character*1 u_Pmag (nr__) ! *[:Vm] Remarks about accuracy, variability, band integer*4 RAh (nr__) ! (h) Right Ascension B1950 (hours) integer*4 RAm (nr__) ! (min) Right Ascension B1950 (minutes) real*4 RAs (nr__) ! (s) Right Ascension B1950 (seconds) character*1 DE_ (nr__) ! Declination B1950 (sign) integer*4 DEd (nr__) ! (deg) Declination B1950 (degrees) integer*4 DEm (nr__) ! (arcmin) Declination B1950 (minutes) integer*4 DEs (nr__) ! (arcsec) ? Declination B1950 (seconds) character*1 u_DEs (nr__) ! Colon (:) for uncertain coordinates. character*20 Remarks (nr__) ! *Remarks; an "*" indicates a note detailed * in the "notes.dat" file. character*1 AGK2 (nr__) ! [*] indicates an AGK2 star (volumes III and V) *Note on LS, Vol: * The LS column is made of a declination zone (a sign and 2 digits), * followed by a running number in the zone. * Note that a complete LS designation must include the volume number, * since the same zone/number combination representing different stars * may exist in two or more volumes. In practice, the LS designation * is written e.g. "LS II +34 26" for star from volume 2, numbered 26 * in zone +34{deg}. *Note on m_BD: * The note includes e.g. P (primary or preceding), S (secondary), * F (following), or remarks (?, 9 = BD and BD+1 stars together). *Note on Sp: * All characters are in upper case. For uncertain spectral types * (enclosed in parentheses) the left parenthesis occurs in byte 20, * e.g., it is possible to select all uncertain types by retrieving all * stars having a "(" in byte 20. The types are uniform enough to allow a * search of byte 21 for all O, B, A,... stars, but the luminosity * classes are not uniform. Plus and minus signs occur for their * superscript counterparts and the following abbreviations are employed: * CE - continuous emission near the Balmer limit * LE - line emission, usually >= 1 members of the Balmer series if not * otherwise specified, observed on the blue plates * H - H-alpha observed in emission * R - reddened * P - peculiar * () - enclose uncertain information * : - entire spectral type uncertain * Exclamation points (!) can occur in the field. The W for Wolf-Rayet * types is in byte 21. The entire field is blank when no data are given. *Note on Pmag, u_Pmag: * The Pmag column contains generally a photographic magnitude, unless * the u_Pmag column contains a "m" indicating a visual or photovisual * magnitude (Ptv) taken from the Henry Draper Catalogue (Cat. <III/135>). * A 'V' in the u_Pmag column indicates a variable star, and a colon (:) * an uncertain magnitude. *Note on Remarks: * The remarks include slit spectral classifications, mostly from * Morgan, Code and Whitford (1955ApJS....2...41M) and Hiltner * (1956ApJS....2..389H); Aitken double-star (ADS) identifications; * variable-star names; "AGK2" if star occurs in that catalogue (see Cat. * <I/61>) ; number of star included in the list of Brodskaya and Shajn * (1958IzKry..20..299B); and miscellaneous short remarks. * An "*" indicates a note detailed in the "notes.dat" file. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'notes.dat' ! Remarks originally in volumes II, IV and VI. integer*4 nr__1 parameter (nr__1=167) ! Number of records character*80 ar__1 ! Full-size record character*7 LS_1 (nr__1) ! *LS number, as in the file ls.dat integer*4 Vol_1 (nr__1) ! *[1/6] Volume number, as in the file ls.dat character*71 Text (nr__1) ! Text of note *Note on LS, Vol: * Columns are repeated when the note requires several lines. C============================================================================= C Loading file 'ls.dat' ! The Catalogue C Format for file interpretation 1 format(A7,I1,A10,A1,A17,I3,A1,I2,I2,F4.1,A1,I2,I2,I2,A1,A20,A1) C Effective file loading open(unit=1,status='old',file= +'ls.dat') write(6,*) '....Loading file: ls.dat' do i__=1,7392 read(1,'(A77)')ar__ read(ar__,1) + LS(i__),Vol(i__),BD(i__),m_BD(i__),Sp(i__),Pmag(i__), + u_Pmag(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),u_DEs(i__),Remarks(i__),AGK2(i__) if(ar__(37:39) .EQ. '') Pmag(i__) = iNULL__ if(ar__(54:55) .EQ. '') DEs(i__) = iNULL__ RAdeg(i__) = rNULL__ DEdeg(i__) = rNULL__ c Derive coordinates RAdeg and DEdeg from input data c (RAdeg and DEdeg are set to rNULL__ when unknown) if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15. if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4. if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240. if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__) if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60. if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600. if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__) c ..............Just test output........... write(6,1) + LS(i__),Vol(i__),BD(i__),m_BD(i__),Sp(i__),Pmag(i__), + u_Pmag(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),u_DEs(i__),Remarks(i__),AGK2(i__) write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'notes.dat' ! Remarks originally in volumes II, IV and VI. C Format for file interpretation 2 format(A7,I1,1X,A71) C Effective file loading open(unit=1,status='old',file= +'notes.dat') write(6,*) '....Loading file: notes.dat' do i__=1,167 read(1,'(A80)')ar__1 read(ar__1,2)LS_1(i__),Vol_1(i__),Text(i__) c ..............Just test output........... write(6,2)LS_1(i__),Vol_1(i__),Text(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end