Conversion of standardized ReadMe file for
file /./ftp/cats/III/153 into FORTRAN code for reading data files line by line.
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-Mar-28 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/153 An Atlas of Near Infrared Stellar Spectra (Arnaud+ 1989) *================================================================================ *An Atlas of Stellar Spectra between 2.00 and 2.45 micrometers * Arnaud K.A., Gilmore G., Collier C.A. * <Mon. Not. Roy. Astron. Soc. 237, 495, (1989)> * =1989MNRAS.237..495A C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'spectra.dat' ! Summary of the spectra (from Table 1) integer*4 nr__ parameter (nr__=83) ! Number of records character*80 ar__ ! Full-size record character*3 Spec ! Spectrum ID in "sp" subdirectory (1) character*10 Star ! Star designation (2) character*8 SpType ! MK Spectral classification real*4 v_Fe_H_ ! ([Sun]) ? Metallicity of star integer*4 r__Fe_H_ ! ? Reference of Metallicity (3) character*9 Obs ! Observation instrument character*34 Notes ! Remarks *Note (1): * The file containing the actual spectrum consists in a "s" followed by * the spectrum ID, and the ".dat" suffix. *Note (2): "BMB" stands for the list of stars in Baade's Window by * Blanco+McCarthy+Blanco (1984AJ.....89..636B), named also "BW" in the * publication. *Note (3): there references are numbered as follows: * 2 = Cayrel de Strobel et al., 1985A&AS...59..145C * 6 = Norris, 1986ApJS...61..667N * 7 = Persson et al., 1977AJ.....82..729P c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'sp/*' ! Actual spectra integer*4 nr__1 parameter (nr__1=83) ! Number of records character*20 ar__1 ! Full-size record real*4 lambda ! (um) Wavelength in micrometers real*4 Flux ! Flux normalized to unity at {lambda}=2.15um real*4 e_Flux ! Fractional error of flux C============================================================================= C Loading file 'spectra.dat' ! Summary of the spectra (from Table 1) C Format for file interpretation 1 format(A3,1X,A10,3X,A8,2X,F4.1,2X,I1,2X,A9,1X,A34) C Effective file loading open(unit=1,status='old',file= +'spectra.dat') write(6,*) '....Loading file: spectra.dat' do i__=1,83 read(1,'(A80)')ar__ read(ar__,1)Spec,Star,SpType,v_Fe_H_,r__Fe_H_,Obs,Notes if(ar__(28:31) .EQ. '') v_Fe_H_ = rNULL__ if(ar__(34:34) .EQ. '') r__Fe_H_ = iNULL__ c ..............Just test output........... write(6,1)Spec,Star,SpType,v_Fe_H_,r__Fe_H_,Obs,Notes c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'sp/*' ! Actual spectra C Format for file interpretation 2 format(F5.3,2X,F5.3,2X,F6.4) C Effective file loading open(unit=1,status='old',file= +'sp/*') write(6,*) '....Loading file: sp/*' do i__=1,83 read(1,'(A20)')ar__1 read(ar__1,2)lambda,Flux,e_Flux c ..............Just test output........... write(6,2)lambda,Flux,e_Flux c .......End.of.Just test output........... end do close(1) C============================================================================= stop end