FORTRAN Generation
(/./ftp/cats/J/A_A/666/A79)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/666/A79 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 2026-Jun-08
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/666/A79       SN 2019zrk photometry and spectroscopy     (Fransson+, 2022)
*================================================================================
*SN 2019zrk, a bright SN 2009ip analogue with a precursor.
*    Fransson C., Sollerman J., Strotjohann N.L., Yang S., Schulze S.,
*    Barbarino C., Kool E.C., Ofek E.O., Crellin-Quick A., De K., Drake A.J.,
*    Fremling C., Gal-Yam A., Ho A.Y.Q., Kasliwal M.M.
*    <Astron. Astrophys. 666, A79 (2022)>
*    =2022A&A...666A..79F        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'photom.dat'	! Photometry of SN 2019zrk (table 1)

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

      real*8        JD          ! (d) Julian Date
      character*1   Filter      ! [ugriz] Filter name
      real*8        Phase       ! (d) [-96.49/377.28] Rest Frame Phase
      real*4        mag         ! (mag) ?=99 Apparent magnitude in Filter
      real*4        e_mag       ! (mag) ?=99 Error of magnitude in Filter
      real*4        limmag      ! (mag) ?=99 Limiting magnitude in Filter
      real*4        MAG_1       ! (mag) Absolute magnitude in Filter
      character*8   Inst        ! Instrument name

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

C  Declarations for 'listsp.dat'	! List of spectra

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

      character*18  FileName    ! Name of the spectrum file in subdirectory sp
      character*5   Inst_1      ! Instrument
      character*10  Obs_date    ! ("date") Observation date
      real*8        blambda     ! (0.1nm) Lower value of wavelength interval
      real*8        Blambda_1   ! (0.1nm) Upper value of wavelength interval

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

C  Declarations for 'sp/*'	! Individual spectra

      integer*4 nr__2
      parameter (nr__2=14)	! Number of records
      character*30 ar__2  	! Full-size record

      real*8        lambda      ! (0.1nm) Wavelength
      real*4        Flux        ! (10mW/m2/nm) [0.0/0.01] Normalised flux (erg/cm^2^/s/{AA})

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

C  Loading file 'photom.dat'	! Photometry of SN 2019zrk (table 1)

C  Format for file interpretation

    1 format(
     +  F10.2,1X,A1,1X,F7.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F6.2,1X,A8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'photom.dat')
      write(6,*) '....Loading file: photom.dat'
      do i__=1,255
        read(1,'(A54)')ar__
        read(ar__,1)JD,Filter,Phase,mag,e_mag,limmag,MAG_1,Inst
c    ..............Just test output...........
        write(6,1)JD,Filter,Phase,mag,e_mag,limmag,MAG_1,Inst
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'listsp.dat'	! List of spectra

C  Format for file interpretation

    2 format(A18,1X,A5,1X,A10,1X,F7.2,1X,F8.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'listsp.dat')
      write(6,*) '....Loading file: listsp.dat'
      do i__=1,14
        read(1,'(A52)')ar__1
        read(ar__1,2)FileName,Inst_1,Obs_date,blambda,Blambda_1
c    ..............Just test output...........
        write(6,2)FileName,Inst_1,Obs_date,blambda,Blambda_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'sp/*'	! Individual spectra

C  Format for file interpretation

    3 format(F7.1,1X,E22.17)

C  Effective file loading

      open(unit=1,status='old',file=
     +'sp/*')
      write(6,*) '....Loading file: sp/*'
      do i__=1,14
        read(1,'(A30)')ar__2
        read(ar__2,3)lambda,Flux
c    ..............Just test output...........
        write(6,3)lambda,Flux
c    .......End.of.Just test output...........
      end do
      close(1)

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