Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/148/4 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/AJ/148/4 JHK photometry of 913 globular clusters in M31 (Wang+, 2014) *================================================================================ *New 2MASS near-infrared photometry for globular clusters in M31. * Wang S., Ma J., Wu Z., Zhou X. * <Astron. J., 148, 4 (2014)> * =2014AJ....148....4W C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Integrated measurements for 913 clusters in M31 integer*4 nr__ parameter (nr__=913) ! Number of records character*73 ar__ ! Full-size record character*9 Name ! Cluster identifier real*4 Jmag ! (mag) ? 2MASS J band magnitude (1) real*4 e_Jmag ! (mag) ? Uncertainty in Jmag real*4 Hmag ! (mag) ? 2MASS H band magnitude (1) real*4 e_Hmag ! (mag) ? Uncertainty in Hmag real*4 Ksmag ! (mag) ? 2MASS Ks band magnitude (1) real*4 e_Ksmag ! (mag) ? Uncertainty in Ksmag real*4 r ! (arcsec) Aperture radius real*4 E_B_V ! (mag) The (B-V) color excess integer*4 r_E_B_V ! Reference for E(B-V) (2) real*4 v_Fe_H_C ! ([Sun]) ?=99.99 Metallicity from Caldwell et al. 2011 * (cat. J/AJ/141/61) real*4 v_Fe_H_K ! ([Sun]) ?=99.99 Metallicity from Kang et al. 2012 * (cat. J/ApJS/199/37) *Note (1): Photometry for 627 objects was performed using the 2MASS-6X * (cat. II/281) data, while photometry for the remaining 286 was performed * using the All-Sky Release Survey (cat. VII/233) data. *Note (2): References for the reddening values are defined as follows: * 1 = Caldwell et al. (2009, cat. J/AJ/137/94; 2011, cat. J/AJ/141/61); * 2 = Fan et al. (2008MNRAS.385.1973F); * 3 = Barmby et al. 2000 (cat. J/AJ/119/727); * 4 = Fan et al. 2010 (cat. J/ApJ/725/200); * 5 = Mean reddening value of clusters located within an annulus at every 2kpc * radius from the center of M31; * 6 = Foreground reddening value of E(B-V)=0.13mag. C============================================================================= C Loading file 'table1.dat' ! Integrated measurements for 913 clusters in M31 C Format for file interpretation 1 format( + A9,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F4.1,1X, + F5.2,1X,I1,1X,F5.2,1X,F5.2) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,913 read(1,'(A73)')ar__ read(ar__,1) + Name,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag,e_Ksmag,r,E_B_V,r_E_B_V, + v_Fe_H_C,v_Fe_H_K if(ar__(11:16) .EQ. '') Jmag = rNULL__ if(ar__(18:22) .EQ. '') e_Jmag = rNULL__ if(ar__(24:29) .EQ. '') Hmag = rNULL__ if(ar__(31:35) .EQ. '') e_Hmag = rNULL__ if(ar__(37:42) .EQ. '') Ksmag = rNULL__ if(ar__(44:48) .EQ. '') e_Ksmag = rNULL__ c ..............Just test output........... write(6,1) + Name,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag,e_Ksmag,r,E_B_V,r_E_B_V, + v_Fe_H_C,v_Fe_H_K c .......End.of.Just test output........... end do close(1) C============================================================================= stop end