Conversion of standardized ReadMe file for
file /./ftp/cats/III/31B 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-19 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/31B Michigan catalogue for the HD stars, vol. 1 (Houk+, 1975) *================================================================================ *Michigan Catalogue of two dimentional spectral types for the HD stars. *(Vol.1, -90deg < {delta} < -53deg) * Houk N., Cowley A.P. * <Ann Arbor, Univ. of Michigan, 1975> C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'vol1.dat' ! The Catalogue, Vol.1 integer*4 nr__ parameter (nr__=36382) ! Number of records character*107 ar__ ! Full-size record C B1900 position composed of: RAh RAm DE- DEd DEm real*8 RAdeg (nr__) ! (deg) Right Ascension B1900 real*8 DEdeg (nr__) ! (deg) Declination B1900 C ---------------------------------- ! (position vector(s) in degrees) integer*4 HD (nr__) ! Henry Draper Catalog number (cat. <III/135>) character*1 Case (nr__) ! [*] '*' if spectral type has lower case * in printed version character*1 f_SpType (nr__) ! [+] '+' if spectral type is from HD Catalog character*16 SpType (nr__) ! The Spectral type character*1 n_SpType (nr__) ! [A] 'A' if classification is an average (3) integer*4 q_SpType (nr__) ! [1/4]? Quality of the classification (1=good), * see ADC document (adc.doc) and (3) character*4 Remark (nr__) ! [BDLOR ] indicates a remark (5) real*4 Ptg (nr__) ! (mag) ?=99.9 Photographic magnitude from HD catalog character*1 Vflg (nr__) ! 'V' if star is known or suspected variable integer*4 RAh (nr__) ! (h) Hours RA (B1900) real*4 RAm (nr__) ! (min) Minutes RA character*1 DE_ (nr__) ! Sign Dec integer*4 DEd (nr__) ! (deg) Degrees Dec (B1900) integer*4 DEm (nr__) ! (arcmin) Minutes Dec real*4 precRA (nr__) ! (min/ha) Centennial precession in RA (1) integer*4 precDE (nr__) ! (arcmin/ha) Centennial precession in Dec real*4 GLON (nr__) ! (deg) Galactic longitude real*4 GLAT (nr__) ! (deg) Galactic latitude character*10 CPD (nr__) ! Cape Photographic Durchmusterung (4) character*3 Plate1 (nr__) ! Plate code #1 (2) character*3 Plate2 (nr__) ! Plate code #2 (2) character*3 Plate3 (nr__) ! Plate code #3 (2) character*3 Plate4 (nr__) ! Plate code #4 (2) character*3 Plate5 (nr__) ! Plate code #5 (2) *Note (1): very near the south pole, some of the precessions are larger * than -99.9 min/century and these values are in the remarks. *Note (2): Each plate has its own identification code (see file plates1.dat) *Note (3): for averaged spectra, q_SpType is assigned the highest * of the qualities used in forming the average. *Note (4): Cape Photographic Ducrchmusterung is CDS Cat. <I/108>. * 'CP' is in bytes 78-79, -ZZNNNNN in bytes 80-87 *Note (5): the flags refer to the type of notes detailed in rem1.dat: * B = remarks contains designations of bright stars * D = remarks concerning duplicity * L = information from the literature * O = remarks that do not fit into any other category * R = remarks related to the spectrum, written by the author (N. Houk). * More details about the meaning of these notes may be found in * Table 4-2 of the "adc.doc" file c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'rem1.dat' ! Remarks of Vol.1 integer*4 nr__1 parameter (nr__1=4636) ! Number of records character*315 ar__1 ! Full-size record integer*4 HD_1 (nr__1) ! Henry Draper Catalog (HD) number character*309 Remark_1 (nr__1) ! Remarks in free form text c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'plates1.dat' ! List of Plate Codes integer*4 nr__2 parameter (nr__2=479) ! Number of records character*32 ar__2 ! Full-size record character*3 Plate (nr__2) ! Plate code integer*4 Number (nr__2) ! Plate Number character*18 Date (nr__2) ! Exposure date C============================================================================= C Loading file 'vol1.dat' ! The Catalogue, Vol.1 C Format for file interpretation 1 format( + I6,A1,A1,A16,1X,A1,I1,1X,A4,2X,F5.2,A1,1X,I2,1X,F4.1,1X,A1,I2, + 1X,I2,1X,F5.1,1X,I3,1X,F5.1,1X,F5.1,A10,1X,A3,1X,A3,1X,A3,1X, + A3,1X,A3) C Effective file loading open(unit=1,status='old',file= +'vol1.dat') write(6,*) '....Loading file: vol1.dat' do i__=1,36382 read(1,'(A107)')ar__ read(ar__,1) + HD(i__),Case(i__),f_SpType(i__),SpType(i__),n_SpType(i__), + q_SpType(i__),Remark(i__),Ptg(i__),Vflg(i__),RAh(i__), + RAm(i__),DE_(i__),DEd(i__),DEm(i__),precRA(i__),precDE(i__), + GLON(i__),GLAT(i__),CPD(i__),Plate1(i__),Plate2(i__), + Plate3(i__),Plate4(i__),Plate5(i__) if(ar__(27:27) .EQ. '') q_SpType(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(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__) if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60. if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__) c ..............Just test output........... write(6,1) + HD(i__),Case(i__),f_SpType(i__),SpType(i__),n_SpType(i__), + q_SpType(i__),Remark(i__),Ptg(i__),Vflg(i__),RAh(i__), + RAm(i__),DE_(i__),DEd(i__),DEm(i__),precRA(i__),precDE(i__), + GLON(i__),GLAT(i__),CPD(i__),Plate1(i__),Plate2(i__), + Plate3(i__),Plate4(i__),Plate5(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 'rem1.dat' ! Remarks of Vol.1 C Format for file interpretation 2 format(I6,A309) C Effective file loading open(unit=1,status='old',file= +'rem1.dat') write(6,*) '....Loading file: rem1.dat' do i__=1,4636 read(1,'(A315)')ar__1 read(ar__1,2)HD_1(i__),Remark_1(i__) c ..............Just test output........... write(6,2)HD_1(i__),Remark_1(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'plates1.dat' ! List of Plate Codes C Format for file interpretation 3 format(A3,3X,I5,3X,A18) C Effective file loading open(unit=1,status='old',file= +'plates1.dat') write(6,*) '....Loading file: plates1.dat' do i__=1,479 read(1,'(A32)')ar__2 read(ar__2,3)Plate(i__),Number(i__),Date(i__) c ..............Just test output........... write(6,3)Plate(i__),Number(i__),Date(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end