FORTRAN Generation
(/./ftp/cats/J/A_A/706/A271)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/706/A271 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-May-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/706/A271          SN 2022ngb light curves                    (Zhao+, 2026)
*================================================================================
*SN 2022ngb: A faint, slow-evolving Type IIb supernova with a low-mass envelope.
*    Zhao J.-W., Benetti S., Cai Y.-Z., Pastorello A., Elias-Rosa N.,
*    Reguitti A., Valerin G., Wang Z.-Y., Cappellaro E., Feng G.-F., Fiore A.,
*    Fitzpatrick B., Fraser M., Isern J., Kankare E., Kravtsov T., Kumar B.,
*    Lundqvist P., Matilainen K., Mattila S., Mazzali P.A., Moran S., Ochner P.,
*    Peng Z.-H., Reynolds T.M., Salmaso I., Srivastav S., Stritzinger M.D.,
*    Taubenberger S., Tomasella L., Vinko J., Wheeler J.C., Williams S.,
*    Pei S.-P., Yang Y.-J., Liu X.-K., Liu X.-W., Yang Y.-P.
*    <Astron. Astrophys. 706, A271 (2026)>
*    =2026A&A...706A.271Z        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for '22ngb.dat'	! Multi-band photometric data for SN 2022ngb

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

      character*10  Date       (nr__) ! ("date") Observation date
      real*8        MJD        (nr__) ! (d) MJD of the observation
      real*4        mag        (nr__) ! (mag) Observed apparent magnitude
      real*4        e_mag      (nr__) ! (mag) ?=0 Uncertainty of the magnitude
      character*6   Band       (nr__) ! Photometric filter/band name (1)
      character*4   System     (nr__) ! Photometric system (e.g. Vega, AB)
      character*1   Type       (nr__) ! [P/U] Type of observation 
*                                   (U for upper limit magnitude)
      character*10  Inst       (nr__) ! Name of the instrument for the observation
      character*9   Tel        (nr__) ! Name of the telescope for the observation
*Note (1): Filters are BV JHK griz cyan orange.

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

C  Loading file '22ngb.dat'	! Multi-band photometric data for SN 2022ngb

C  Format for file interpretation

    1 format(
     +  A10,1X,F8.2,1X,F6.3,1X,F5.3,1X,A6,1X,A4,1X,A1,1X,A10,1X,A9)

C  Effective file loading

      open(unit=1,status='old',file=
     +'22ngb.dat')
      write(6,*) '....Loading file: 22ngb.dat'
      do i__=1,1342
        read(1,'(A67)')ar__
        read(ar__,1)
     +  Date(i__),MJD(i__),mag(i__),e_mag(i__),Band(i__),System(i__),
     +  Type(i__),Inst(i__),Tel(i__)
c    ..............Just test output...........
        write(6,1)
     +  Date(i__),MJD(i__),mag(i__),e_mag(i__),Band(i__),System(i__),
     +  Type(i__),Inst(i__),Tel(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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