FORTRAN Generation
(/./ftp/cats/J/MNRAS/346/390)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/346/390 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/346/390     VI and CMT1 photometry of NGC 2627       (Piatti+, 2003)
*================================================================================
*Intermediate-age Galactic open clusters: fundamental parameters of NGC 2627.
*    Piatti A.E., Claria J.J., Ahumada A.V.
*   <Mon. Not. R. Astron. Soc., 346, 390-402 (2003)>
*   =2003MNRAS.346..390P
C=============================================================================

C  Internal variables

      integer*4 i__

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table1.dat'	! CCD VI data of stars in the field of NGC 2627

      integer*4 nr__
      parameter (nr__=2534)	! Number of records
      character*61 ar__   	! Full-size record

      integer*4     PCA         ! Star sequential number, Cl* NGC 2627 PCA 1-NNN
      real*8        Xpos        ! (pix) X position (G1)
      real*8        Ypos        ! (pix) Y position (G1)
      real*4        Vmag        ! (mag) V magnitude
      real*4        e_Vmag      ! (mag) rms uncertainty on Vmag
      real*4        V_Ic        ! (mag) V-Ic colour index
      real*4        e_V_Ic      ! (mag) rms uncertainty on V-Ic
      integer*4     o_Vmag      ! Number of observations
      integer*4     PMJ94       ! ? Number in Phelps et al., 1994AJ....107.1079P,
*                                   Cl* NGC 2627 PMJ NNN ???

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table2.dat'	! CCD CT1 data of stars in the field of NGC 2627

      integer*4 nr__1
      parameter (nr__1=1734)	! Number of records
      character*54 ar__1  	! Full-size record

      integer*4     PCA_1       ! Star sequential number, Cl*  NGC 2627 PCA  2-NNNN
      real*8        Xpos_1      ! (pix) X position (G1)
      real*8        Ypos_1      ! (pix) Y position (G1)
      real*4        T1mag       ! (mag) T1 magnitude
      real*4        e_T1mag     ! (mag) rms uncertainty on T1mag
      real*4        C_T1        ! (mag) C-T1 colour index
      real*4        e_C_T1      ! (mag) rms uncertainty on C-T1
      integer*4     o_T1mag     ! Number of observations

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table3.dat'	! CCD Washington photometry of 12 red giant
                              candidates in the field of NGC 2627

      integer*4 nr__2
      parameter (nr__2=12)	! Number of records
      character*76 ar__2  	! Full-size record

      character*4   PCAGC       ! Red giant designation (GCNN),
*                                   Cl* NGC 2627 PCAGC NN
      real*8        Xpos_2      ! (pix) X position (G1)
      real*8        Ypos_2      ! (pix) Y position (G1)
      real*4        T1mag_1     ! (mag) T1 magnitude (2)
      real*4        e_T1mag_1   ! (mag) rms uncertainty on T1mag (2)
      real*4        C_T1_1      ! (mag) C-T1 colour index (2)
      real*4        e_C_T1_1    ! (mag) rms uncertainty on C-T1 (2)
      real*4        M_T1        ! (mag) M-T1 colour index (2)
      real*4        e_M_T1      ! (mag) rms uncertainty on M-T1 (2)
      real*4        T1_T2       ! (mag) T1-T2 colour index (2)
      real*4        e_T1_T2     ! (mag) rms uncertainty on T1-T2 (2)
      integer*4     o_T1mag_1   ! Number of observations
*Note (2): Magnitude and colour errors are the standard deviations of the mean,
*           or the observed photometric errors for stars with one measurement.

C=============================================================================

C  Loading file 'table1.dat'	! CCD VI data of stars in the field of NGC 2627

C  Format for file interpretation

    1 format(
     +  2X,I4,1X,F8.3,1X,F8.3,2X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,2X,I1,
     +  4X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,2534
        read(1,'(A61)')ar__
        read(ar__,1)
     +  PCA,Xpos,Ypos,Vmag,e_Vmag,V_Ic,e_V_Ic,o_Vmag,PMJ94
        if(ar__(59:61) .EQ. '') PMJ94 = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  PCA,Xpos,Ypos,Vmag,e_Vmag,V_Ic,e_V_Ic,o_Vmag,PMJ94
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'table2.dat'	! CCD CT1 data of stars in the field of NGC 2627

C  Format for file interpretation

    2 format(
     +  2X,I4,1X,F8.3,1X,F8.3,2X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,2X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,1734
        read(1,'(A54)')ar__1
        read(ar__1,2)
     +  PCA_1,Xpos_1,Ypos_1,T1mag,e_T1mag,C_T1,e_C_T1,o_T1mag
c    ..............Just test output...........
        write(6,2)
     +  PCA_1,Xpos_1,Ypos_1,T1mag,e_T1mag,C_T1,e_C_T1,o_T1mag
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'table3.dat'	! CCD Washington photometry of 12 red giant
*                              candidates in the field of NGC 2627

C  Format for file interpretation

    3 format(
     +  A4,1X,F7.2,2X,F7.2,2X,F6.3,1X,F5.3,2X,F5.3,1X,F5.3,2X,F5.3,1X,
     +  F5.3,2X,F5.3,1X,F5.3,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,12
        read(1,'(A76)')ar__2
        read(ar__2,3)
     +  PCAGC,Xpos_2,Ypos_2,T1mag_1,e_T1mag_1,C_T1_1,e_C_T1_1,M_T1,
     +  e_M_T1,T1_T2,e_T1_T2,o_T1mag_1
c    ..............Just test output...........
        write(6,3)
     +  PCAGC,Xpos_2,Ypos_2,T1mag_1,e_T1mag_1,C_T1_1,e_C_T1_1,M_T1,
     +  e_M_T1,T1_T2,e_T1_T2,o_T1mag_1
c    .......End.of.Just test output...........
      end do
      close(1)

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