FORTRAN Generation
(/./ftp/cats/B/sn)

Conversion of standardized ReadMe file for file /./ftp/cats/B/sn 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-Aug-12
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. B/sn                Asiago Supernova Catalogue           (Barbon et al., 1999-)
*================================================================================
*The Asiago Supernova Catalogue (Dynamic Version)
*     Barbon R., Buondi V., Cappellaro E., Turatto M.
*    <Astron. Astrophys. Suppl. Ser. 139, 531 (1999)>
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'sncat.dat'	! List of SNe in chronological order on 2017-10-01

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension J2000
      real*8        DEdeg       ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*1   n_SN        ! [*] Occurrence of multiple SN discoveries
*                                      in the same galaxy
      character*6   SN          ! Supernova designation
      character*1   u_SN        ! [?] Unconfirmed SN
      character*14  Galaxy      ! Parent galaxy identification
      integer*4     RAGh        ! (h) Parent galaxy right ascension (J2000)
      integer*4     RAGm        ! (min) Parent galaxy right ascension (J2000)
      integer*4     RAGs        ! (s) ? Parent galaxy right ascension (J2000)
      character*1   DEG_        ! Parent galaxy declination sign (J2000)
      integer*4     DEGd        ! (deg) Parent galaxy declination (J2000)
      integer*4     DEGm        ! (arcmin) Parent galaxy declination (J2000)
      integer*4     DEGs        ! (arcsec) ? Parent galaxy declination (J2000)
      integer*4     RAh         ! (h) ? Supernova right ascension (J2000)
      integer*4     RAm         ! (min) ? Supernova right ascension (J2000)
      real*4        RAs         ! (s) ? Supernova right ascension (J2000)
      character*1   DE_         ! Supernova declination sign (J200)
      integer*4     DEd         ! (deg) ? Supernova declination (J2000)
      integer*4     DEm         ! (arcmin) ? Supernova declination (J2000)
      real*4        DEs         ! (arcsec) [0,60]? Supernova declination (J2000)
      character*9   MType       ! Parent galaxy morphological type
      real*4        T           ! ? Parent galaxy morphological type code
      integer*4     i           ! (deg) ? Only for disk-like system, inclination of
*                                    the polar axis with respect to the line
*                                    of sight (0 for face-on systems)
      integer*4     PA          ! (deg) ? Position angle of the major axis of the
*                                    parent galaxy (North Eastwards)
      integer*4     HRV         ! (km/s) ? Parent galaxy heliocentric radial velocity
      real*4        z           ! ? Parent galaxy redshift
      character*1   u_z         ! Uncertainty flag on z (or HRV)
      character*1   n_Bmag      ! [RVp] Prefix non-blue Bmag (p=photographic)
      real*4        Bmag        ! (mag) ? Parent galaxy integrated B magnitude
*                                    (or in another band, see n_Bmag)
      real*4        logD25      ! ([0.1arcmin]) ? Decimal logarithm of the apparent
*                                    isophotal diameter
      real*4        x           ! (arcsec) ? SN offset from the galaxy nucleus,
*                                    in the E/W direction
      character*2   n_x         ! [EW NS ?:] Orientation of x (1)
      real*4        y           ! (arcsec) ? SN offset from the galaxy nucleus,
*                                       in the N/S direction
      character*1   u_y         ! Uncertainty flag (:) on y
      character*1   n_y         ! [NS] Orientation of y
      character*1   Band        ! [UBVRIJKgrizy#] SN magnitude band (2)
      real*4        MaxMag      ! (mag) ? If available, supernova magnitude at
*                                       maximum (photometric band indicated)
      character*1   u_MaxMag    ! [:*] *: discovery magnitude
      character*8   Type        ! Supernova type (3)
      character*10  EpMax       ! Date of maximum or Discovery (see n_EpMax)
      character*1   u_EpMax     ! [:*] when EpMax contains Date of discovery
      character*41  Disc        ! Name(s) of discoverer(s)
*Note (1): For 1992ak, in the original discovery report they forgot to give
*     the direction of the offset, so n_x and and n_y were set to ?.
*Note (2): lower-case bands stand for SDSS filters;
*     '#' indicates radio discoveries
*Note (3): The class 'IIn?' indicates the so-called 'impostors'
*     (super-outbursts from very massive luminous blue variables like {eta} Car)

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

C  Loading file 'sncat.dat'	! List of SNe in chronological order on 2017-10-01

C  Format for file interpretation

    1 format(
     +  A1,1X,A6,A1,2X,A14,1X,I2,I2,I2,A1,I2,I2,I2,1X,I2,I2,F6.3,A1,
     +  I2,I2,F5.2,1X,A9,F4.1,1X,I2,1X,I3,1X,I6,F6.4,A1,1X,A1,F5.2,2X,
     +  F4.2,1X,F6.2,A2,1X,F6.2,A1,A1,1X,A1,1X,F5.2,A1,1X,A8,1X,A10,
     +  A1,3X,A41)

C  Effective file loading

      open(unit=1,status='old',file=
     +'sncat.dat')
      write(6,*) '....Loading file: sncat.dat'
      do i__=1,6530
        read(1,'(A200)')ar__
        read(ar__,1)
     +  n_SN,SN,u_SN,Galaxy,RAGh,RAGm,RAGs,DEG_,DEGd,DEGm,DEGs,RAh,
     +  RAm,RAs,DE_,DEd,DEm,DEs,MType,T,i,PA,HRV,z,u_z,n_Bmag,Bmag,
     +  logD25,x,n_x,y,u_y,n_y,Band,MaxMag,u_MaxMag,Type,EpMax,
     +  u_EpMax,Disc
        if(ar__(31:32) .EQ. '') RAGs = iNULL__
        if(ar__(38:39) .EQ. '') DEGs = iNULL__
        if(ar__(41:42) .EQ. '') RAh = iNULL__
        if(ar__(43:44) .EQ. '') RAm = iNULL__
        if(ar__(45:50) .EQ. '') RAs = rNULL__
        if(ar__(52:53) .EQ. '') DEd = iNULL__
        if(ar__(54:55) .EQ. '') DEm = iNULL__
        if(ar__(56:60) .EQ. '') DEs = rNULL__
        if(ar__(71:74) .EQ. '') T = rNULL__
        if(ar__(76:77) .EQ. '') i = iNULL__
        if(ar__(79:81) .EQ. '') PA = iNULL__
        if(ar__(83:88) .EQ. '') HRV = iNULL__
        if(ar__(89:94) .EQ. '') z = rNULL__
        if(ar__(98:102) .EQ. '') Bmag = rNULL__
        if(ar__(105:108) .EQ. '') logD25 = rNULL__
        if(ar__(110:115) .EQ. '') x = rNULL__
        if(ar__(119:124) .EQ. '') y = rNULL__
        if(ar__(130:134) .EQ. '') MaxMag = rNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  n_SN,SN,u_SN,Galaxy,RAGh,RAGm,RAGs,DEG_,DEGd,DEGm,DEGs,RAh,
     +  RAm,RAs,DE_,DEd,DEm,DEs,MType,T,i,PA,HRV,z,u_z,n_Bmag,Bmag,
     +  logD25,x,n_x,y,u_y,n_y,Band,MaxMag,u_MaxMag,Type,EpMax,
     +  u_EpMax,Disc
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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