Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/512/A54 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/A+A/512/A54 Teff and Fbol from Infrared Flux Method (Casagrande+, 2010) *================================================================================ *An absolutely calibrated Teff scale from the Infrared Flux Method. *Dwarfs and subgiants. * Casagrande L., Ramirez I., Melendez J., Bessell M., Asplund M. * <Astron. Astrophys. 512, A54 (2010)> * =2010A&A...512A..54C C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table8.dat' ! Photometric data used in the paper and stellar fundamental parameters determined via InfraRed Flux Method (IRFM) integer*4 nr__ parameter (nr__=423) ! Number of records character*151 ar__ ! Full-size record character*12 Name ! Star name real*4 logg ! ([cm/s2]) Surface gravity real*4 v_Fe_H_ ! ([Sun]) Metallicity real*4 mBol ! (mag) IRFM apparent bolometric magnitude. * (Mbol_{sun}_=4.74) real*4 Fbol ! (mW/m2) IRFM bolometric flux (on the Earth) real*4 e_Fbol ! (mW/m2) IRFM bolometric flux error integer*4 Teff ! (K) IRFM effective temperature integer*4 e_Teff ! (K) IRFM effective temperature error real*4 Diam ! (mas) IRFM angular diameter real*4 e_Diam ! (mas) IRFM angular diameter error real*4 Bmag ! (mag) Johnson apparent B magnitude real*4 Vmag ! (mag) Johnson apparent V magnitude real*4 Rmag ! (mag) ?=- Cousins apparent R magnitude real*4 Imag ! (mag) ?=- Cousins apparent I magnitude real*4 Jmag ! (mag) 2MASS apparent J magnitude real*4 Hmag ! (mag) 2MASS apparent H magnitude real*4 Kmag ! (mag) 2MASS apparent Ks magnitude real*4 E_B_V ! (mag) Reddening correction C============================================================================= C Loading file 'table8.dat' ! Photometric data used in the paper and stellar * fundamental parameters determined via * InfraRed Flux Method (IRFM) C Format for file interpretation 1 format( + A12,2X,F4.2,2X,F5.2,2X,F6.3,2X,E13.7,2X,E11.5,2X,I4,3X,I3,2X, + F5.3,2X,F5.3,2X,F6.3,2X,F6.3,2X,F6.3,2X,F6.3,2X,F6.3,2X,F6.3, + 2X,F6.3,3X,F5.3) C Effective file loading open(unit=1,status='old',file= +'table8.dat') write(6,*) '....Loading file: table8.dat' do i__=1,423 read(1,'(A151)')ar__ read(ar__,1) + Name,logg,v_Fe_H_,mBol,Fbol,e_Fbol,Teff,e_Teff,Diam,e_Diam, + Bmag,Vmag,Rmag,Imag,Jmag,Hmag,Kmag,E_B_V if (idig(ar__(106:111)).EQ.0) Rmag = rNULL__ if (idig(ar__(114:119)).EQ.0) Imag = rNULL__ c ..............Just test output........... write(6,1) + Name,logg,v_Fe_H_,mBol,Fbol,e_Fbol,Teff,e_Teff,Diam,e_Diam, + Bmag,Vmag,Rmag,Imag,Jmag,Hmag,Kmag,E_B_V 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