Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/420/1590 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-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. J/MNRAS/420/1590 Abundances of classical Cepheids (Acharova+, 2012) *================================================================================ *Galactic restrictions on iron production by various types of supernovae. * Acharova I.A., Mishurov YU.N., Kovtyukh V.V. * <Mon. Not. R. Astron. Soc., 420, 1590-1605 (2012)> * =2012MNRAS.420.1590A C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'tablea1.dat' ! Abundances, distances, ages and masses for classical Cepheids integer*4 nr__ parameter (nr__=282) ! Number of records character*78 ar__ ! Full-size record character*9 Name ! Cepheid name integer*4 Nsp ! Number of spectra real*8 Per ! (d) Period observed real*4 Vmag ! (mag) V magnitude real*4 B_V ! (mag) ?=- B-V colour index real*4 E_B_V ! (mag) Interstellar redenning real*4 r ! (kpc) Heliocentric distance real*4 VMAG_1 ! (mag) Absolute V magnitude real*4 v_O_H_ ! ([Sun]) ?=- Oxygen abundance real*4 v_Fe_H_ ! ([Sun]) Metallicity integer*4 Age ! (Myr) Age real*4 Mass ! (Msun) Mass C============================================================================= C Loading file 'tablea1.dat' ! Abundances, distances, ages and masses for * classical Cepheids C Format for file interpretation 1 format( + A9,3X,I2,1X,F10.7,1X,F6.3,1X,F5.3,1X,F5.3,1X,F6.3,1X,F5.2,1X, + F5.2,1X,F5.2,1X,I3,1X,F4.1) C Effective file loading open(unit=1,status='old',file= +'tablea1.dat') write(6,*) '....Loading file: tablea1.dat' do i__=1,282 read(1,'(A78)')ar__ read(ar__,1) + Name,Nsp,Per,Vmag,B_V,E_B_V,r,VMAG_1,v_O_H_,v_Fe_H_,Age,Mass if (idig(ar__(34:38)).EQ.0) B_V = rNULL__ if (idig(ar__(59:63)).EQ.0) v_O_H_ = rNULL__ c ..............Just test output........... write(6,1) + Name,Nsp,Per,Vmag,B_V,E_B_V,r,VMAG_1,v_O_H_,v_Fe_H_,Age,Mass 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