FORTRAN Generation
(/./ftp/cats/J/MNRAS/122/363)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/122/363 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.5, on 2013-May-22
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__=-1.e37)     	! NULL real number
      parameter  (iNULL__=-2147483647)	! NULL int  number

C=============================================================================
Cat. J/MNRAS/122/363     Eggen PV photometry in NGC 7492             (Cuffey, 1961)
*================================================================================
*NGC 7492
*    Cuffey J.
*   <Mon. Not. R. Astron. Soc. 122, 363 (1961)>
*   =1961MNRAS.122..363C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! NGC 7492, standard stars

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

      character*1   Star       (nr__) ! Star designation (Cl* NGC 7492 C A in Simbad)
      real*4        Pmag       (nr__) ! (mag) ? P magnitude (See <GCPD/31>)
      character*1   u_Pmag     (nr__) ! Uncertainty flag on Pmag
      real*4        Vmag       (nr__) ! (mag) ? V magnitude (See <GCPD/31>)
      character*1   u_Vmag     (nr__) ! Uncertainty flag on Vmag
      real*4        P_V        (nr__) ! (mag) ? P-V colour index (See <GCPD/31>)
      character*1   u_P_V      (nr__) ! Uncertainty flag on P-V
      character*1   Note       (nr__) ! [VD] D: double star, V: variable

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

C  Declarations for 'table4.dat'	! NGC 7492, catalogue of stars

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

      character*4   Region     (nr__1) ! Region in finding chart, SnRn (1)
      integer*4     Star_1     (nr__1) ! Star number in the region (2)
      character*1   m_Star     (nr__1) ! Multiplicity index on Star
      real*4        Pmag_1     (nr__1) ! (mag) P magnitude (See <GCPD/31>)
      real*4        Vmag_1     (nr__1) ! (mag) V magnitude (See <GCPD/31>)
      real*4        P_V_1      (nr__1) ! (mag) P-V colour index (See <GCPD/31>)
*Note (1): S for Sector, R for Ring
*Note (2): In Simbad, Cl* NGC 7492 C N-N-NN (S1R1  1 = Cl* NGC 7492 C 1-1-1)

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

C  Loading file 'table3.dat'	! NGC 7492, standard stars

C  Format for file interpretation

    1 format(A1,1X,F5.2,A1,1X,F5.2,A1,1X,F5.2,A1,1X,A1)

C  Effective file loading

      open(unit=1,file='table3.dat', status='old')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,35
        read(1,'(A24)')ar__
        read(ar__,1)
     +  Star(i__),Pmag(i__),u_Pmag(i__),Vmag(i__),u_Vmag(i__),
     +  P_V(i__),u_P_V(i__),Note(i__)
        if(ar__(3:7) .EQ. '') Pmag(i__) = rNULL__
        if(ar__(10:14) .EQ. '') Vmag(i__) = rNULL__
        if(ar__(17:21) .EQ. '') P_V(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Star(i__),Pmag(i__),u_Pmag(i__),Vmag(i__),u_Vmag(i__),
     +  P_V(i__),u_P_V(i__),Note(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! NGC 7492, catalogue of stars

C  Format for file interpretation

    2 format(A4,1X,I2,A1,2X,F5.2,1X,F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,file='table4.dat', status='old')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,159
        read(1,'(A27)')ar__1
        read(ar__1,2)
     +  Region(i__),Star_1(i__),m_Star(i__),Pmag_1(i__),Vmag_1(i__),
     +  P_V_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  Region(i__),Star_1(i__),m_Star(i__),Pmag_1(i__),Vmag_1(i__),
     +  P_V_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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