Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/459/1170 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. J/MNRAS/459/1170 Coulour-Period relation for Cepheids (Scowcroft+, 2016) *================================================================================ *The Carnegie Chicago Hubble Program: the mid-infrared colours of Cepheids and *the effect of metallicity on the CO band-head at 4.6{mu}m. * Scowcroft V., Seibert M., Freedman W.L., Beaton R.L., Madore B.F., * Monson A.J., Rich J.A., Rigby J.R. * <Mon. Not. R. Astron. Soc., 459, 1170-1178 (2016)> * =2016MNRAS.459.1170S (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Mid-IR colours and metallicities for MW, LMC and SMC Cepheids integer*4 nr__ parameter (nr__=212) ! Number of records character*43 ar__ ! Full-size record character*12 Name ! Cepheid ID real*4 logP ! ([d]) Period real*4 v_3_6___4_5_ ! (mag) Mid-ID [3.6]-[4.5] colour index real*4 e__3_6___4_5_ ! (mag) rms uncertainty on [3.6]-[4.5] real*4 v_Fe_H_ ! ([-]) ?=- Metallicity character*3 Gal ! Galaxy name C============================================================================= C Loading file 'table1.dat' ! Mid-IR colours and metallicities for MW, LMC * and SMC Cepheids C Format for file interpretation 1 format(A12,2X,F6.4,1X,F6.3,1X,F5.3,1X,F5.2,1X,A3) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,212 read(1,'(A43)')ar__ read(ar__,1)Name,logP,v_3_6___4_5_,e__3_6___4_5_,v_Fe_H_,Gal if (idig(ar__(35:39)).EQ.0) v_Fe_H_ = rNULL__ c ..............Just test output........... write(6,1)Name,logP,v_3_6___4_5_,e__3_6___4_5_,v_Fe_H_,Gal 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