FORTRAN Generation
(/./ftp/cats/J/A_A/492/145)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/492/145 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-Mar-28
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/492/145       UBV(RI)c light curves of Nova Cygni 2006  (Munari+, 2008)
*================================================================================
*The nature and evolution of Nova Cygni 2006.
*    Munari U., Siviero A., Henden A., Cardarelli G., Cherini G., Dallaporta S.,
*    Dalla Via G., Frigo A.,  Jurdana-Sepic R., Moretti S., Ochner P.,
*    Tomaselli S., Tomasoni S., Valisa P., Navasardyan H., Valentini M.
*   <Astron. Astrophys., 492, 145-162 (2008)>
*   =2008A&A...492..145M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! UBVRcIc magnitudes and colors

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

      real*8        HJD1       (nr__) ! Heliocentric Julian date of B, B-V data
      real*4        Bmag       (nr__) ! Johnson B magnitude
      real*4        B_V        (nr__) ! Johnson B-V color index
      real*8        HJD2       (nr__) ! ? Heliocentric Julian date of Rc-Ic data
      real*4        Rc_Ic      (nr__) ! ? Cousins Rc-Ic color index
      real*8        HJD3       (nr__) ! ? Heliocentric Julian date of V-Rc data
      real*4        V_Rc       (nr__) ! ? Johnson-Cousins V-Rc color index
      real*8        HJD4       (nr__) ! ? Heliocentric Julian date of V-Ic data
      real*4        V_Ic       (nr__) ! ? Johnson-Cousins V-Ic color index
      real*8        HJD5       (nr__) ! ? Heliocentric Julian date of U-B data
      real*4        U_B        (nr__) ! ? Johnson U-B color index

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

C  Loading file 'table1.dat'	! UBVRcIc magnitudes and colors

C  Format for file interpretation

    1 format(
     +  F12.4,1X,F6.3,1X,F6.3,1X,F12.4,1X,F6.3,1X,F12.4,1X,F6.3,1X,
     +  F12.4,1X,F6.3,1X,F12.4,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,367
        read(1,'(A106)')ar__
        read(ar__,1)
     +  HJD1(i__),Bmag(i__),B_V(i__),HJD2(i__),Rc_Ic(i__),HJD3(i__),
     +  V_Rc(i__),HJD4(i__),V_Ic(i__),HJD5(i__),U_B(i__)
        if(ar__(28:39) .EQ. '') HJD2(i__) = rNULL__
        if(ar__(41:46) .EQ. '') Rc_Ic(i__) = rNULL__
        if(ar__(48:59) .EQ. '') HJD3(i__) = rNULL__
        if(ar__(61:66) .EQ. '') V_Rc(i__) = rNULL__
        if(ar__(68:79) .EQ. '') HJD4(i__) = rNULL__
        if(ar__(81:86) .EQ. '') V_Ic(i__) = rNULL__
        if(ar__(88:99) .EQ. '') HJD5(i__) = rNULL__
        if(ar__(101:106) .EQ. '') U_B(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  HJD1(i__),Bmag(i__),B_V(i__),HJD2(i__),Rc_Ic(i__),HJD3(i__),
     +  V_Rc(i__),HJD4(i__),V_Ic(i__),HJD5(i__),U_B(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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