FORTRAN Generation
(/./ftp/cats/J/A_AS/145/365)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_AS/145/365 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 2026-May-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/A+AS/145/365      BVI photometry of NGC 7790               (Gupta+, 2000)
*================================================================================
*A complete photometric study of the open cluster NGC 7790 containing
*Cepheid variables.
*     Gupta A.C., Subramaniam A., Sagar R., Griffiths W.K.
*    <Astron. Astrophys. Suppl. Ser. 145, 365 (2000)>
*    =2000A&AS..145..365G
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Relative (X, Y) pixel positions and CCD BVI
                                magnitudes of stars measured in the field of
                                NGC 7790 are presented.

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

      integer*4     Seq        (nr__) ! Sequential number (1)
      real*4        Xpos       (nr__) ! (pix) X position (2)
      real*4        Ypos       (nr__) ! (pix) Y position (2)
      real*4        Vmag       (nr__) ! (mag) V magnitude
      real*4        B_V        (nr__) ! (mag) ? B-V colour index
      real*4        V_I        (nr__) ! (mag) V-I Cousins colour index
      character*27  Names      (nr__) ! Other identifications, separated by commas (3)
*Note (1): Numbers are the same as Phelps & Janes (1994ApJS...90...31P)
*          Numbers staring from 5001 is new detection of stars in this cluster
*Note (2): The coordinate system is that of the database given by Phelps & Janes
*           (1994ApJS...90...31P). The center of the cluster is located at
*            RA = 23h 54min 12s, DE = +60{deg} 57' (1950.0)
*           1 pix = 0.74". North is up, and east is to the left.
*Note (3): Other identifications:
*       F: Frolov, 1977IzPul.195...80F, Cat. <V/28>
*       I: Iyeshima et al., 1994, Ann. Rep. Nishi - Harima Astron. Obs. 4, 18
*       O: Odewahn et al., 1992PASP..104..553O, Cat. <J/PASP/104/553>
*       P: Pedreros et al., 1984ApJ...286..563P
*       R: Romeo et al., 1989MNRAS.240..459R

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

C  Loading file 'table1.dat'	! Relative (X, Y) pixel positions and CCD BVI
*                                magnitudes of stars measured in the field of
*                                NGC 7790 are presented.

C  Format for file interpretation

    1 format(1X,I4,1X,F6.2,1X,F6.2,1X,F6.3,1X,F6.3,1X,F6.3,1X,A27)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,1156
        read(1,'(A68)')ar__
        read(ar__,1)
     +  Seq(i__),Xpos(i__),Ypos(i__),Vmag(i__),B_V(i__),V_I(i__),
     +  Names(i__)
        if(ar__(28:33) .EQ. '') B_V(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Seq(i__),Xpos(i__),Ypos(i__),Vmag(i__),B_V(i__),V_I(i__),
     +  Names(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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