FORTRAN Generation
(/./ftp/cats/J/AJ/128/2239)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/128/2239 into FORTRAN code for loading all data files into arrays.

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       (nr__) ! Cepheid name
      real*4        Jmag       (nr__) ! (mag) ? The J-band magnitude
      real*4        e_Jmag     (nr__) ! (mag) ? The 1{sigma} error in Jmag
      real*4        Hmag       (nr__) ! (mag) ? The H-band magnitude
      real*4        e_Hmag     (nr__) ! (mag) ? The 1{sigma} error in Hmag
      real*4        Ksmag      (nr__) ! (mag) ? The K_s_ band magnitude
      real*4        e_Ksmag    (nr__) ! (mag) ? The 1{sigma} error in Ksmag
      real*8        JD         (nr__) ! (d) Julian Date
      real*4        Phase      (nr__) ! 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     (nr__1) ! Cepheid name
      real*8        Per        (nr__1) ! (d) Period
      integer*4     xi         (nr__1) ! (arcsec) Wesselink (1959MNRAS.119..576W)
*                                  {xi} coordinate (1)
      integer*4     eta        (nr__1) ! (arcsec) Wesselink (1959MNRAS.119..576W)
*                                  {eta} coordinate (1)
      real*4        E_B_V      (nr__1) ! (mag) The (B-V) color excess
      real*4        Jmag_1     (nr__1) ! (mag) The J-band intensity-mean magnitude
      real*4        e_Jmag_1   (nr__1) ! (mag) The 1{sigma} error in Jmag
      real*4        Hmag_1     (nr__1) ! (mag) The H-band intensity-mean magnitude
      real*4        e_Hmag_1   (nr__1) ! (mag) The 1{sigma} error in Hmag
      real*4        Ksmag_1    (nr__1) ! (mag) The K_s_ band intensity-mean magnitude
      real*4        e_Ksmag_1  (nr__1) ! (mag) The 1{sigma} error in Ksmag
      integer*4     o_Name     (nr__1) ! Number of observations
      character*3   Note       (nr__1) ! 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(i__),Jmag(i__),e_Jmag(i__),Hmag(i__),e_Hmag(i__),
     +  Ksmag(i__),e_Ksmag(i__),JD(i__),Phase(i__)
        if(ar__(9:14) .EQ. '') Jmag(i__) = rNULL__
        if(ar__(16:20) .EQ. '') e_Jmag(i__) = rNULL__
        if(ar__(22:27) .EQ. '') Hmag(i__) = rNULL__
        if(ar__(29:33) .EQ. '') e_Hmag(i__) = rNULL__
        if(ar__(35:40) .EQ. '') Ksmag(i__) = rNULL__
        if(ar__(42:46) .EQ. '') e_Ksmag(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),Jmag(i__),e_Jmag(i__),Hmag(i__),e_Hmag(i__),
     +  Ksmag(i__),e_Ksmag(i__),JD(i__),Phase(i__)
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(i__),Per(i__),xi(i__),eta(i__),E_B_V(i__),Jmag_1(i__),
     +  e_Jmag_1(i__),Hmag_1(i__),e_Hmag_1(i__),Ksmag_1(i__),
     +  e_Ksmag_1(i__),o_Name(i__),Note(i__)
c    ..............Just test output...........
        write(6,2)
     +  Name_1(i__),Per(i__),xi(i__),eta(i__),E_B_V(i__),Jmag_1(i__),
     +  e_Jmag_1(i__),Hmag_1(i__),e_Hmag_1(i__),Ksmag_1(i__),
     +  e_Ksmag_1(i__),o_Name(i__),Note(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================
      stop
      end