Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/461/839 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-29 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. J/MNRAS/461/839 DIB 661.3nm in Cepheid spectra (Kashuba+, 2016) *================================================================================ *An investigation of the 661.3 nm diffuse interstellar band in Cepheid spectra. * Kashuba S.V., Andrievsky S.M., Chekhonadskikh F.A., Luck R.E., * Kovtyukh V.V., Korotin S.A., Krelowski J., Galazutdinov G.A. * <Mon. Not. R. Astron. Soc., 461, 839-844 (2016)> * =2016MNRAS.461..839K (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! List of the 185 observed stars, their parameters and DIB EWs integer*4 nr__ parameter (nr__=276) ! Number of records character*85 ar__ ! Full-size record C Position composed of: GLON GLAT character*9 Name ! Star name character*1 Nsp ! Spectrum number when more than one for the star character*10 Date ! ("date") Observation date real*4 Phase ! ?=- Phase integer*4 Teff ! (K) Effective temperature real*4 logg ! ([m/s2]) Surface gravity real*4 vt ! (km/s) Microturbulent velocity integer*4 Dist ! (pc) ?=- Distance real*4 GLON ! (deg) Galactic longitude real*4 GLAT ! (deg) Galactic latitude real*4 E_B_V ! (mag) ?=- B-V colour excess real*4 EW_Y_Fe ! (nm) Y+Fe equivalent width real*4 EW_DIB ! (nm) DIB 661.356nm equivalent width C============================================================================= C Loading file 'table1.dat' ! List of the 185 observed stars, their parameters * and DIB EWs C Format for file interpretation 1 format( + A9,1X,A1,1X,A10,1X,F5.3,1X,I4,1X,F3.1,1X,F3.1,1X,I5,1X,F6.2, + 1X,F6.2,1X,F5.3,1X,E8.4,1X,E8.4) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,276 read(1,'(A85)')ar__ read(ar__,1) + Name,Nsp,Date,Phase,Teff,logg,vt,Dist,GLON,GLAT,E_B_V,EW_Y_Fe, + EW_DIB if (idig(ar__(24:28)).EQ.0) Phase = rNULL__ if (Dist .EQ. 45) Dist = iNULL__ if (idig(ar__(63:67)).EQ.0) E_B_V = rNULL__ c ..............Just test output........... write(6,1) + Name,Nsp,Date,Phase,Teff,logg,vt,Dist,GLON,GLAT,E_B_V,EW_Y_Fe, + EW_DIB c .......End.of.Just test output........... end do close(1) C============================================================================= stop end C Locate position of first digit in string; or return 0 integer function idig(c) character*(*) c character*1 c1 integer lc,i lc=len(c) idig=0 do i=1,lc if(c(i:i).ne.' ') go to 1 end do 1 if(i.gt.lc) return c1=c(i:i) if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1 if(i.gt.lc) return c1=c(i:i) if(c1.ge.'0'.and.c1.le.'9') idig=i return end