FORTRAN Generation
(/./ftp/cats/J/A_A/374/504)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/374/504 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/A+A/374/504       UBVI photometry of NGC 7654 (M52)        (Pandey+, 2001)
*================================================================================
*NGC 7654: An interesting cluster to study star formation history
*    Pandey, A.K., Nilakshi, Ogura, K., Sagar, R., Tarusawa, K.
*   <Astron. Astrophys. 374, 504 (2001)>
*   =2001A&A...374..504P
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! UBVIc photometric data of the stars in the field
                             of NGC 7654

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

      integer*4     No          ! Identification number of the stars
      real*8        Xpos        ! (pix) Pixel coordinate (1)
      real*8        Ypos        ! (pix) Pixel coordinate (1)
      real*4        Vmag        ! (mag) Magnitude in the V (Johnson) band
      real*8        B_V         ! (mag) ? B-V colour index
      character*1   n_B_V       ! [*] *: no value
      real*4        V_I         ! (mag) ? V-I (Cousins) colour index
      character*1   n_V_I       ! [*] *: no value
      real*4        U_B         ! (mag) ? U-B colour index
      character*1   n_U_B       ! [*] *: no value
      real*4        e_Imag      ! (mag) ? Errors in the I (Cousins) band
      character*1   n_Imag      ! [*] no value
      real*4        e_Vmag      ! (mag) Errors in the V (Johnson) band
      real*4        e_Bmag      ! (mag) ? Errors in the B (Johnson) band
      character*1   n_Bmag      ! [*] *: no value
      real*4        e_Umag      ! (mag) ? Errors in the U (Johnson) band
      character*1   n_Umag      ! [*] *: no value
      real*4        chi         ! {chi} parameter in the V (Johnson) band (3)
      real*4        Sharp       ! Sharpness parameter in the V (Johnson) band (2)
      real*8        r           ! (arcsec) Radial distance of the stars from the cluster
*                                   center (X=855, Y=755)
*Note (1): Pixel coordinates:
*   * Origin: X=0, Y=0
*   * Orientation  East:  X=0, 
*                  West:  X=1600;
*                  South: Y=0,
*                  North: Y=1600
*   * Scale: 1 pix = 1.5arcsec
*Note (2): the sharpness parameter measures how well the PSF fits the object.
*Note (3): the {chi} parameter measures the average rms deviation to the
*   PSF fit normalized to the expected errors.

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

C  Loading file 'table2.dat'	! UBVIc photometric data of the stars in the field
*                             of NGC 7654

C  Format for file interpretation

    1 format(
     +  I6,1X,F8.2,1X,F8.2,3X,F6.3,1X,F7.3,A1,1X,F6.3,A1,1X,F6.3,A1,
     +  2X,F5.3,A1,2X,F5.3,3X,F5.3,A1,2X,F5.3,A1,2X,F5.3,2X,F6.3,F9.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,17862
        read(1,'(A114)')ar__
        read(ar__,1)
     +  No,Xpos,Ypos,Vmag,B_V,n_B_V,V_I,n_V_I,U_B,n_U_B,e_Imag,n_Imag,
     +  e_Vmag,e_Bmag,n_Bmag,e_Umag,n_Umag,chi,Sharp,r
        if(ar__(35:41) .EQ. '') B_V = rNULL__
        if(ar__(44:49) .EQ. '') V_I = rNULL__
        if(ar__(52:57) .EQ. '') U_B = rNULL__
        if(ar__(61:65) .EQ. '') e_Imag = rNULL__
        if(ar__(77:81) .EQ. '') e_Bmag = rNULL__
        if(ar__(85:89) .EQ. '') e_Umag = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  No,Xpos,Ypos,Vmag,B_V,n_B_V,V_I,n_V_I,U_B,n_U_B,e_Imag,n_Imag,
     +  e_Vmag,e_Bmag,n_Bmag,e_Umag,n_Umag,chi,Sharp,r
c    .......End.of.Just test output...........
      end do
      close(1)

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