FORTRAN Generation
(/./ftp/cats/J/ApJ/946/7)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/946/7 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-Oct-13
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/ApJ/946/7      BVI light curves and sp. of Type Ia SN 2018aoz      (Ni+, 2023)
*================================================================================
*The origin and evolution of the normal type Ia SN 2018aoz with infant-phase
*reddening and excess emission.
*    Ni Y.Qi, Moon D.-S., Drout M.R., Polin A., Sand D.J., Gonzalez-Gaitan S.,
*    Kim S.C., Lee Y., Park H.S., Howell D.A., Nugent P.E., Piro A.L.,
*    Brown P.J., Galbany L., Burke J., Hiramatsu D., Hosseinzadeh G.,
*    Valenti S., Afsariardchi N., Andrews J.E., Antoniadis J., Beaton R.L.,
*    Bostroem K.A., Carlberg R.G., Cenko S.B., Cha S.-M., Dong Y., Gal-Yam A.,
*    Haislip J., Holoien T.W.-S., Johnson S.D., Kouprianov V., Lee Y.,
*    Matzner C.D., Morrell N., McCully C., Pignata G., Reichart D.E., Rich J.,
*    Ryder S.D., Smith N., Wyatt S., Yang S.
*   <Astrophys. J., 946, 7 (2023)>
*   =2023ApJ...946....7N
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Nebular-phase magnitudes of SN 2018aoz

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

      real*8        MJD        (nr__) ! (d) [58471.68/58658] Modified Julian Date
      character*1   Band       (nr__) ! [BVi] Photometric band used
      real*4        mag        (nr__) ! (mag) [19.19/22.1] Apparent magnitude in Band (1)
      real*4        e_mag      (nr__) ! (mag) [0.03/0.4] Uncertainty in mag
*Note (1): The BV-band magnitudes are in the Vega system, while the
*          i-band magnitudes are in the AB system.

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

C  Declarations for 'table2.dat'	! Nebular-phase spectroscopy of SN 2018aoz

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

      integer*4     Date_Y     (nr__1) ! (yr) Year of observation date (UT)
      character*3   Date_M     (nr__1) ! ("month") Month of observation date (UT)
      real*4        Date_D     (nr__1) ! (d) Decimal day of observation date (UT)
      real*4        Phase      (nr__1) ! (d) [259.4/382.5] Observer frame days since the
*                                 B-band maximum light (MJD 58221.41)
      character*13  Tel        (nr__1) ! Telescope
      character*6   Inst       (nr__1) ! Instrument
      integer*4     R          (nr__1) ! [860/2000] Resolution
      integer*4     lam1       (nr__1) ! (0.1nm) [3200/5000] Lower limit of wavelength in {AA}
      integer*4     lam2       (nr__1) ! (0.1nm) [10000] Upper limit of wavelength in {AA}
      character*59  File1      (nr__1) ! Name of the spectra in subdirectory "sp"
*                                 in ASCII format; column added by CDS
      character*60  File2      (nr__1) ! Name of the spectra in subdirectory "sp"
*                                 in FITS format; column added by CDS

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

C  Loading file 'table1.dat'	! Nebular-phase magnitudes of SN 2018aoz

C  Format for file interpretation

    1 format(F11.5,1X,A1,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,1177
        read(1,'(A26)')ar__
        read(ar__,1)MJD(i__),Band(i__),mag(i__),e_mag(i__)
c    ..............Just test output...........
        write(6,1)MJD(i__),Band(i__),mag(i__),e_mag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Nebular-phase spectroscopy of SN 2018aoz

C  Format for file interpretation

    2 format(
     +  I4,1X,A3,1X,F5.2,1X,F6.1,1X,A13,1X,A6,1X,I4,1X,I4,1X,I5,1X,
     +  A59,1X,A60)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,4
        read(1,'(A179)')ar__1
        read(ar__1,2)
     +  Date_Y(i__),Date_M(i__),Date_D(i__),Phase(i__),Tel(i__),
     +  Inst(i__),R(i__),lam1(i__),lam2(i__),File1(i__),File2(i__)
c    ..............Just test output...........
        write(6,2)
     +  Date_Y(i__),Date_M(i__),Date_D(i__),Phase(i__),Tel(i__),
     +  Inst(i__),R(i__),lam1(i__),lam2(i__),File1(i__),File2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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