Conversion of standardized ReadMe file for
file /./ftp/cats/B/sn 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-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 (nr__) ! (deg) Right Ascension J2000
real*8 DEdeg (nr__) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*1 n_SN (nr__) ! [*] Occurrence of multiple SN discoveries
* in the same galaxy
character*6 SN (nr__) ! Supernova designation
character*1 u_SN (nr__) ! [?] Unconfirmed SN
character*14 Galaxy (nr__) ! Parent galaxy identification
integer*4 RAGh (nr__) ! (h) Parent galaxy right ascension (J2000)
integer*4 RAGm (nr__) ! (min) Parent galaxy right ascension (J2000)
integer*4 RAGs (nr__) ! (s) ? Parent galaxy right ascension (J2000)
character*1 DEG_ (nr__) ! Parent galaxy declination sign (J2000)
integer*4 DEGd (nr__) ! (deg) Parent galaxy declination (J2000)
integer*4 DEGm (nr__) ! (arcmin) Parent galaxy declination (J2000)
integer*4 DEGs (nr__) ! (arcsec) ? Parent galaxy declination (J2000)
integer*4 RAh (nr__) ! (h) ? Supernova right ascension (J2000)
integer*4 RAm (nr__) ! (min) ? Supernova right ascension (J2000)
real*4 RAs (nr__) ! (s) ? Supernova right ascension (J2000)
character*1 DE_ (nr__) ! Supernova declination sign (J200)
integer*4 DEd (nr__) ! (deg) ? Supernova declination (J2000)
integer*4 DEm (nr__) ! (arcmin) ? Supernova declination (J2000)
real*4 DEs (nr__) ! (arcsec) [0,60]? Supernova declination (J2000)
character*9 MType (nr__) ! Parent galaxy morphological type
real*4 T (nr__) ! ? Parent galaxy morphological type code
integer*4 i (nr__) ! (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 (nr__) ! (deg) ? Position angle of the major axis of the
* parent galaxy (North Eastwards)
integer*4 HRV (nr__) ! (km/s) ? Parent galaxy heliocentric radial velocity
real*4 z (nr__) ! ? Parent galaxy redshift
character*1 u_z (nr__) ! Uncertainty flag on z (or HRV)
character*1 n_Bmag (nr__) ! [RVp] Prefix non-blue Bmag (p=photographic)
real*4 Bmag (nr__) ! (mag) ? Parent galaxy integrated B magnitude
* (or in another band, see n_Bmag)
real*4 logD25 (nr__) ! ([0.1arcmin]) ? Decimal logarithm of the apparent
* isophotal diameter
real*4 x (nr__) ! (arcsec) ? SN offset from the galaxy nucleus,
* in the E/W direction
character*2 n_x (nr__) ! [EW NS ?:] Orientation of x (1)
real*4 y (nr__) ! (arcsec) ? SN offset from the galaxy nucleus,
* in the N/S direction
character*1 u_y (nr__) ! Uncertainty flag (:) on y
character*1 n_y (nr__) ! [NS] Orientation of y
character*1 Band (nr__) ! [UBVRIJKgrizy#] SN magnitude band (2)
real*4 MaxMag (nr__) ! (mag) ? If available, supernova magnitude at
* maximum (photometric band indicated)
character*1 u_MaxMag (nr__) ! [:*] *: discovery magnitude
character*8 Type (nr__) ! Supernova type (3)
character*10 EpMax (nr__) ! Date of maximum or Discovery (see n_EpMax)
character*1 u_EpMax (nr__) ! [:*] when EpMax contains Date of discovery
character*41 Disc (nr__) ! 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(i__),SN(i__),u_SN(i__),Galaxy(i__),RAGh(i__),RAGm(i__),
+ RAGs(i__),DEG_(i__),DEGd(i__),DEGm(i__),DEGs(i__),RAh(i__),
+ RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),
+ MType(i__),T(i__),i(i__),PA(i__),HRV(i__),z(i__),u_z(i__),
+ n_Bmag(i__),Bmag(i__),logD25(i__),x(i__),n_x(i__),y(i__),
+ u_y(i__),n_y(i__),Band(i__),MaxMag(i__),u_MaxMag(i__),
+ Type(i__),EpMax(i__),u_EpMax(i__),Disc(i__)
if(ar__(31:32) .EQ. '') RAGs(i__) = iNULL__
if(ar__(38:39) .EQ. '') DEGs(i__) = iNULL__
if(ar__(41:42) .EQ. '') RAh(i__) = iNULL__
if(ar__(43:44) .EQ. '') RAm(i__) = iNULL__
if(ar__(45:50) .EQ. '') RAs(i__) = rNULL__
if(ar__(52:53) .EQ. '') DEd(i__) = iNULL__
if(ar__(54:55) .EQ. '') DEm(i__) = iNULL__
if(ar__(56:60) .EQ. '') DEs(i__) = rNULL__
if(ar__(71:74) .EQ. '') T(i__) = rNULL__
if(ar__(76:77) .EQ. '') i(i__) = iNULL__
if(ar__(79:81) .EQ. '') PA(i__) = iNULL__
if(ar__(83:88) .EQ. '') HRV(i__) = iNULL__
if(ar__(89:94) .EQ. '') z(i__) = rNULL__
if(ar__(98:102) .EQ. '') Bmag(i__) = rNULL__
if(ar__(105:108) .EQ. '') logD25(i__) = rNULL__
if(ar__(110:115) .EQ. '') x(i__) = rNULL__
if(ar__(119:124) .EQ. '') y(i__) = rNULL__
if(ar__(130:134) .EQ. '') MaxMag(i__) = rNULL__
RAdeg(i__) = rNULL__
DEdeg(i__) = rNULL__
c Derive coordinates RAdeg and DEdeg from input data
c (RAdeg and DEdeg are set to rNULL__ when unknown)
if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c ..............Just test output...........
write(6,1)
+ n_SN(i__),SN(i__),u_SN(i__),Galaxy(i__),RAGh(i__),RAGm(i__),
+ RAGs(i__),DEG_(i__),DEGd(i__),DEGm(i__),DEGs(i__),RAh(i__),
+ RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),
+ MType(i__),T(i__),i(i__),PA(i__),HRV(i__),z(i__),u_z(i__),
+ n_Bmag(i__),Bmag(i__),logD25(i__),x(i__),n_x(i__),y(i__),
+ u_y(i__),n_y(i__),Band(i__),MaxMag(i__),u_MaxMag(i__),
+ Type(i__),EpMax(i__),u_EpMax(i__),Disc(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end