FORTRAN Generation
(/./ftp/cats/J/AJ/131/461)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/131/461 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-16
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/131/461       Stromgren photometry of NGC 2420      (Anthony-Twarog+, 2006)
*================================================================================
*vbyCaH{beta} CCD photometry of clusters.
*VI. The metal-deficient open cluster NGC 2420.
*    Anthony-Twarog B.J., Tanner D., Cracraft M., Twarog B.A.
*   <Astron. J., 131, 461-472 (2006)>
*   =2006AJ....131..461A
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Extended Stromgren photometry in NGC 2420

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

      integer*4     WEBDA       ! The WEBDA database number (1)
      character*1   m_WEBDA     ! Multiplicity index on WEBDA
      real*8        Xpos        ! (pix) The X pixel coordinate (1)
      real*8        Ypos        ! (pix) The Y pixel coordinate (1)
      real*4        Vmag        ! (mag) Johnson V band magnitude
      real*4        b_y         ! (mag) Stromgren (b-y) color index
      real*4        m1          ! (mag) ? Stromgren m1 band magnitude
      real*4        Hb          ! (mag) ? Stromgren H{beta} band magnitude
      real*4        hk          ! (mag) ? hk index [(Ca-b) - (b-y)]
      real*4        e_Vmag      ! (mag) The 1{sigma} error in Vmag
      real*4        e_b_y       ! (mag) The 1{sigma} error in b-y
      real*4        e_m1        ! (mag) ? The 1{sigma} error in m1
      real*4        e_Hb        ! (mag) ? The 1{sigma} error in Hb
      real*4        e_hk        ! (mag) ? The 1{sigma} error in hk
      integer*4     Ny          ! Number of y band observations
      integer*4     Nb          ! Number of b band observations
      integer*4     Nv          ! Number of v band observations
      integer*4     Nw          ! Number of w band observations
      integer*4     Nn          ! Number of n band observations
      integer*4     NCa         ! Number of Ca band observations
*Note (1): Identifications and XY-coordinates are on the system found in the
*     WEBDA cluster database. For those stars not included in the WEBDA
*     database, an identification number has been created beginning with 6000.
*      NNN are NGC 2420 NNN in Simbad.
*     NNNN are Cl* NGC 2420 ATC NNNN in Simbad.

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

C  Loading file 'table1.dat'	! Extended Stromgren photometry in NGC 2420

C  Format for file interpretation

    1 format(
     +  I4,A1,1X,F7.2,1X,F7.2,2X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,
     +  1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,I3,1X,I2,1X,I2,1X,
     +  I2,1X,I2,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,1195
        read(1,'(A106)')ar__
        read(ar__,1)
     +  WEBDA,m_WEBDA,Xpos,Ypos,Vmag,b_y,m1,Hb,hk,e_Vmag,e_b_y,e_m1,
     +  e_Hb,e_hk,Ny,Nb,Nv,Nw,Nn,NCa
        if(ar__(38:43) .EQ. '') m1 = rNULL__
        if(ar__(45:50) .EQ. '') Hb = rNULL__
        if(ar__(52:57) .EQ. '') hk = rNULL__
        if(ar__(71:75) .EQ. '') e_m1 = rNULL__
        if(ar__(77:81) .EQ. '') e_Hb = rNULL__
        if(ar__(83:87) .EQ. '') e_hk = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  WEBDA,m_WEBDA,Xpos,Ypos,Vmag,b_y,m1,Hb,hk,e_Vmag,e_b_y,e_m1,
     +  e_Hb,e_hk,Ny,Nb,Nv,Nw,Nn,NCa
c    .......End.of.Just test output...........
      end do
      close(1)

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