FORTRAN Generation
(/./ftp/cats/J/PAZh/28/764)

Conversion of standardized ReadMe file for file /./ftp/cats/J/PAZh/28/764 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-Mar-29
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/PAZh/28/764    UBVR photometry of Nova Mon 2002 (V838 Mon)  (Goranskii+, 2002)
*================================================================================
*Nova Monocetoris 2002 (V838 Mon) at early outburst stages
*    Goranskii V.P., Kusakin A.V., Metlova N.V., Shugarov S.Yu., Barsukova E.A.,
*    Borisov N.V.
*   <Pis'ma Astron. Zh. 28, 764 (2002)>
*   =2002PAZh...28..764G
*   =2002AstL...28..691G
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Photographic observations of V838 Mon before its
                               discovery

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

      real*8        JD          ! (d) Julian date
      real*4        Bmag        ! (mag) B magnitude
      character*1   u_Bmag      ! rms uncertainty on Bmag

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

C  Declarations for 'table3.dat'	! Observations of V838 Mon

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

      real*8        JD_1        ! (d) [2452288/2452354] Julian date
      real*4        Umag        ! (mag) ? U magnitude
      real*4        Bmag_1      ! (mag) ? B magnitude
      real*4        Vmag        ! (mag) ? V magnitude
      real*4        Rmag        ! (mag) ? R magnitude
      character*3   Obs         ! Observer (1)
*Note (1): Observers:
*           B: E.A. Barsukova; G: V.P. Goranskii
*           K: A.V. Kusakin
*           M: N.V. Metlova

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

C  Loading file 'table2.dat'	! Photographic observations of V838 Mon before its
*                               discovery

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,26
        read(1,'(A19)')ar__
        read(ar__,1)JD,Bmag,u_Bmag
c    ..............Just test output...........
        write(6,1)JD,Bmag,u_Bmag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Observations of V838 Mon

C  Format for file interpretation

    2 format(F12.4,2X,F5.2,2X,F5.2,2X,F5.2,2X,F4.2,2X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,92
        read(1,'(A48)')ar__1
        read(ar__1,2)JD_1,Umag,Bmag_1,Vmag,Rmag,Obs
        if(ar__1(15:19) .EQ. '') Umag = rNULL__
        if(ar__1(22:26) .EQ. '') Bmag_1 = rNULL__
        if(ar__1(29:33) .EQ. '') Vmag = rNULL__
        if(ar__1(36:39) .EQ. '') Rmag = rNULL__
c    ..............Just test output...........
        write(6,2)JD_1,Umag,Bmag_1,Vmag,Rmag,Obs
c    .......End.of.Just test output...........
      end do
      close(1)

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