FORTRAN Generation
(/./ftp/cats/J/A_A/609/A106)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/609/A106 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/A+A/609/A106          PTF11mnb Bgri light curves               (Taddia+, 2018)
*================================================================================
*PTF11mnb: the first analog of supernova 2005bf.
*A long-rising, double-peaked supernova Ic from a massive progenitor.
*    Taddia F., Sollerman J., Fremling C., Karamehmetoglu E., Quimby R.M.,
*    Gal-Yam A., Yaron O., Kasliwal M.M., Kulkarni S.R., Nugent P.E., Smadja G.,
*    Tao C.
*    <Astron. Astrophys. 609, A106 (2018)>
*    =2018A&A...609A.106T        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Optical photometry of PTF11mnb

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

      real*8        JDB        (nr__) ! (d) ? B band Julian date (JD-2455000)
      real*4        Bmag       (nr__) ! (mag) ? Johnson B magnitude
      real*4        e_Bmag     (nr__) ! (mag) ? rms uncertainty on Bmag
      real*8        JDg        (nr__) ! (d) g band Julian date (JD-2455000)
      real*4        gmag       (nr__) ! (mag) SDSS g magnitude
      real*4        e_gmag     (nr__) ! (mag) rms uncertainty on gmag
      real*8        JDr        (nr__) ! (d) ? r band Julian date (JD-2455000)
      real*4        rmag       (nr__) ! (mag) ? SDSS r magnitude
      real*4        e_rmag     (nr__) ! (mag) ? rms uncertainty on rmag
      real*8        JDi        (nr__) ! (d) ? i band Julian date (JD-2455000)
      real*4        imag       (nr__) ! (mag) ? SDSS i magnitude
      real*4        e_imag     (nr__) ! (mag) ? rms uncertainty on imag

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

C  Loading file 'table1.dat'	! Optical photometry of PTF11mnb

C  Format for file interpretation

    1 format(
     +  F7.3,1X,F6.3,1X,F5.3,1X,F7.3,1X,F6.3,1X,F5.3,1X,F7.3,1X,F6.3,
     +  1X,F5.3,1X,F7.3,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,40
        read(1,'(A83)')ar__
        read(ar__,1)
     +  JDB(i__),Bmag(i__),e_Bmag(i__),JDg(i__),gmag(i__),e_gmag(i__),
     +  JDr(i__),rmag(i__),e_rmag(i__),JDi(i__),imag(i__),e_imag(i__)
        if(ar__(1:7) .EQ. '') JDB(i__) = rNULL__
        if(ar__(9:14) .EQ. '') Bmag(i__) = rNULL__
        if(ar__(16:20) .EQ. '') e_Bmag(i__) = rNULL__
        if(ar__(43:49) .EQ. '') JDr(i__) = rNULL__
        if(ar__(51:56) .EQ. '') rmag(i__) = rNULL__
        if(ar__(58:62) .EQ. '') e_rmag(i__) = rNULL__
        if(ar__(64:70) .EQ. '') JDi(i__) = rNULL__
        if(ar__(72:77) .EQ. '') imag(i__) = rNULL__
        if(ar__(79:83) .EQ. '') e_imag(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  JDB(i__),Bmag(i__),e_Bmag(i__),JDg(i__),gmag(i__),e_gmag(i__),
     +  JDr(i__),rmag(i__),e_rmag(i__),JDi(i__),imag(i__),e_imag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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