FORTRAN Generation
(/./ftp/cats/J/PASP/120/1)

Conversion of standardized ReadMe file for file /./ftp/cats/J/PASP/120/1 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 2024-Apr-19
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/PASP/120/1        HST WFPC2 star clusters in M31. II.         (Krienke+, 2008)
*================================================================================
*A Hubble Space Telescope Survey of the Disk Cluster Population of M31.
*II. Advanced Camera for Surveys Pointings.
*    Krienke O.K., Hodge P.W.
*   <Publ. Astron. Soc. Pac. 120, 1 (2008)>
*   =2008PASP..120....1K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table4.dat'	! New star clusters in M31

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

C  J2000.0 position composed of: RAdeg DEdeg
      integer*4     KHM31      (nr__) ! [284/571] KHM31 designation (KHM31 NNN in Simbad)
      real*8        RAdeg      (nr__) ! (deg) Right ascension in decimal degrees (J2000.0)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000.0)
      real*4        Vmag       (nr__) ! (mag) V magnitude
      real*4        e_Vmag     (nr__) ! (mag) rms uncertainty on Vmag
      real*4        Bmag       (nr__) ! (mag) ? B magnitude
      real*4        e_Bmag     (nr__) ! (mag) ? rms uncertainty on Bmag
      real*4        B_V        (nr__) ! (mag) ? B-V colour index
      real*4        Imag       (nr__) ! (mag) ? I magnitude
      real*4        e_Imag     (nr__) ! (mag) ? rms uncertainty on Imag
      real*4        V_I        (nr__) ! (mag) ? V-I colour index

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

C  Loading file 'table4.dat'	! New star clusters in M31

C  Format for file interpretation

    1 format(
     +  6X,I3,1X,F8.5,1X,F8.5,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,
     +  1X,F5.2,1X,F4.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,287
        read(1,'(A72)')ar__
        read(ar__,1)
     +  KHM31(i__),RAdeg(i__),DEdeg(i__),Vmag(i__),e_Vmag(i__),
     +  Bmag(i__),e_Bmag(i__),B_V(i__),Imag(i__),e_Imag(i__),V_I(i__)
        if(ar__(40:44) .EQ. '') Bmag(i__) = rNULL__
        if(ar__(46:49) .EQ. '') e_Bmag(i__) = rNULL__
        if(ar__(51:55) .EQ. '') B_V(i__) = rNULL__
        if(ar__(57:61) .EQ. '') Imag(i__) = rNULL__
        if(ar__(63:66) .EQ. '') e_Imag(i__) = rNULL__
        if(ar__(68:72) .EQ. '') V_I(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  KHM31(i__),RAdeg(i__),DEdeg(i__),Vmag(i__),e_Vmag(i__),
     +  Bmag(i__),e_Bmag(i__),B_V(i__),Imag(i__),e_Imag(i__),V_I(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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