Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/128/2239 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 2026-Aug-11
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/128/2239 JHKs photometry of 92 LMC Cepheids (Persson+, 2004)
*================================================================================
*New cepheid period-luminosity relations for the Large Magellanic Cloud:
*92 near-infrared light curves.
* Persson S.E., Madore B.F., Krzeminski W., Freedman W.L., Roth M.,
* Murphy D.C.
* <Astron. J., 128, 2239-2264 (2004)>
* =2004AJ....128.2239P
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Infrared Photometry of All 92 LMC Cepheids
integer*4 nr__
parameter (nr__=2120) ! Number of records
character*63 ar__ ! Full-size record
character*7 Name ! Cepheid name
real*4 Jmag ! (mag) ? The J-band magnitude
real*4 e_Jmag ! (mag) ? The 1{sigma} error in Jmag
real*4 Hmag ! (mag) ? The H-band magnitude
real*4 e_Hmag ! (mag) ? The 1{sigma} error in Hmag
real*4 Ksmag ! (mag) ? The K_s_ band magnitude
real*4 e_Ksmag ! (mag) ? The 1{sigma} error in Ksmag
real*8 JD ! (d) Julian Date
real*4 Phase ! Phase
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! LMC Cepheid Infrared Magnitudes
integer*4 nr__1
parameter (nr__1=92) ! Number of records
character*84 ar__1 ! Full-size record
character*7 Name_1 ! Cepheid name
real*8 Per ! (d) Period
integer*4 xi ! (arcsec) Wesselink (1959MNRAS.119..576W)
* {xi} coordinate (1)
integer*4 eta ! (arcsec) Wesselink (1959MNRAS.119..576W)
* {eta} coordinate (1)
real*4 E_B_V ! (mag) The (B-V) color excess
real*4 Jmag_1 ! (mag) The J-band intensity-mean magnitude
real*4 e_Jmag_1 ! (mag) The 1{sigma} error in Jmag
real*4 Hmag_1 ! (mag) The H-band intensity-mean magnitude
real*4 e_Hmag_1 ! (mag) The 1{sigma} error in Hmag
real*4 Ksmag_1 ! (mag) The K_s_ band intensity-mean magnitude
real*4 e_Ksmag_1 ! (mag) The 1{sigma} error in Ksmag
integer*4 o_Name ! Number of observations
character*3 Note ! Additional notes (2)
*Note (1): These follow the convention that {xi} increases east and {eta}
* increases north from the fiducial (J2000) position:
* (RA_0_, DEC_0_) = (5:25:15, -68:53:45).
*Note (2): Additional notes are defined as follows:
* 1 = A 5" diameter was used to avoid star within 10" aperture
* 2 = A close contaminating star was measured and removed from
* 10" aperture magnitudes
* 3 = Faint stars contribute, but less than 1% and are ignored
* 4 = The HV2279 data not as clean because of serious crowding;
* extra uncertainty is included
C=============================================================================
C Loading file 'table2.dat' ! Infrared Photometry of All 92 LMC Cepheids
C Format for file interpretation
1 format(
+ A7,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F10.2,
+ 1X,F5.3)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,2120
read(1,'(A63)')ar__
read(ar__,1)
+ Name,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag,e_Ksmag,JD,Phase
if(ar__(9:14) .EQ. '') Jmag = rNULL__
if(ar__(16:20) .EQ. '') e_Jmag = rNULL__
if(ar__(22:27) .EQ. '') Hmag = rNULL__
if(ar__(29:33) .EQ. '') e_Hmag = rNULL__
if(ar__(35:40) .EQ. '') Ksmag = rNULL__
if(ar__(42:46) .EQ. '') e_Ksmag = rNULL__
c ..............Just test output...........
write(6,1)
+ Name,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag,e_Ksmag,JD,Phase
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! LMC Cepheid Infrared Magnitudes
C Format for file interpretation
2 format(
+ A7,1X,F10.6,1X,I6,1X,I6,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,
+ F5.3,1X,F6.3,1X,F5.3,1X,I2,1X,A3)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,92
read(1,'(A84)')ar__1
read(ar__1,2)
+ Name_1,Per,xi,eta,E_B_V,Jmag_1,e_Jmag_1,Hmag_1,e_Hmag_1,
+ Ksmag_1,e_Ksmag_1,o_Name,Note
c ..............Just test output...........
write(6,2)
+ Name_1,Per,xi,eta,E_B_V,Jmag_1,e_Jmag_1,Hmag_1,e_Hmag_1,
+ Ksmag_1,e_Ksmag_1,o_Name,Note
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end