FORTRAN Generation
(/./ftp/cats/J/A_A/465/375)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/465/375 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 2024-Apr-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/465/375       X-ray monitoring of optical novae in M31  (Pietsch+, 2007)
*================================================================================
*X-ray monitoring of optical novae in M 31 from July 2004 to February 2005.
*    Pietsch W., Haberl F., Sala G., Stiele H., Hornoch K., Riffeser A.,
*    Fliri J., Bender R., Buhler S., Burwitz V., Greiner J., Seitz S.
*   <Astron. Astrophys. 465, 375 (2007)>
*   =2007A&A...465..375P
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablea1.dat'	! Catalogue of optical novae in M 31

      integer*4 nr__
      parameter (nr__=719)	! Number of records
      character*265 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*8   M31N       (nr__) ! Nova "CBAT" name (G1)
      integer*4     RAh        (nr__) ! (h) Right Ascension J2000 (hours)
      integer*4     RAm        (nr__) ! (min) Right Ascension J2000 (minutes)
      real*4        RAs        (nr__) ! (s) Right Ascension J2000 (seconds)
      character*1   DE_        (nr__) ! Declination J2000 (sign)
      integer*4     DEd        (nr__) ! (deg) Declination J2000 (degrees)
      integer*4     DEm        (nr__) ! (arcmin) Declination J2000 (minutes)
      real*4        DEs        (nr__) ! (arcsec) Declination J2000 (seconds)
      real*4        e_RAs      (nr__) ! (arcsec) Error on Right Ascension
      real*4        e_DEs      (nr__) ! (arcsec) Error on Declination
      integer*4     r_Pos      (nr__) ! Position reference (1)
      real*8        JD         (nr__) ! (d) Julian date of start of outburst
      integer*4     r_JD       (nr__) ! Outburst reference (1)
      character*1   IDout      (nr__) ! [a<] Outburst ID (2)
      integer*4     r_IDout    (nr__) ! ? Outburst ID reference (1)
      real*4        mag        (nr__) ! (mag) ? Observed magnitude of outburst maximum
      character*2   n_mag      (nr__) ! ? Filter of mag (3)
      integer*4     r_mag      (nr__) ! ? Magnitude and filter reference (1)
      integer*4     T2         (nr__) ! (d) ? Time from Maximum to 2 magnitudes below
      integer*4     T2u        (nr__) ! (d) ? Time from Maximum to 2 magnitudes below
*                                      (if range possible)
      integer*4     r_T2       (nr__) ! ? T2 reference (1)
      character*1   n_Onames   (nr__) ! [*] CDS remarks on alternatives names (4)
      character*40  Onames     (nr__) ! ? Alternative names
      character*24  r_Onames   (nr__) ! ? Additional references (1)
      character*14  r_Sp       (nr__) ! ? Spectral confirmation references (1)
      character*14  r_Xray     (nr__) ! ? X-ray references (1)
      character*65  Rem        (nr__) ! ? Remarks
*Note (1): See refs.dat file
*Note (2): Outburst ID takes the values:
*      a = well defined start of outburst
*      < = outburst start before
*      else badly defined
*Note (3): Filters used as follows:
*     pg = photographic
*      w = white light
*     Ha = broad Halpha
*   r,R,U,V,B = broad band colour
*Note (4): Notes form CDS:
*     M31N 1968-10b: ShAl  3 =  00 43 49.4 +40 43 07 (from 1991Ap&SS.180..273S),
*       ==> cross-identification to ShAl 3 (= M31 V1092) should be erroneous
*     M31N 1982-08a: [CFN87] 4 = 00 42 51.6 +41 19 05 (in 1987ApJ...318..520C),
*       ==> cross-identification to [CFN87] 4 should be erroneous
*     M31N 1986-09b: [CFN87] 29 = 00 43 14.1 +41 18 39 (in 1987ApJ...318..520C),
*       ==> cross-identification to [CFN87] 29 should be erroneous

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

C  Declarations for 'refs.dat'	! References (tablea2 of the paper)

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

      integer*4     Ref        (nr__1) ! Reference number
      character*19  BibCode    (nr__1) ! BibCode
      character*21  Aut        (nr__1) ! Author's name
      character*60  Com        (nr__1) ! Comments
      character*8   SRef       (nr__1) ! reference short code

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

C  Declarations for 'tableb2.dat'	! Photometry of novae by Kamil Hornoch

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

      integer*4     No         (nr__2) ! [1/41] Hornoch nova number
      character*8   M31N_1     (nr__2) ! M31 nova name following CBAT nomenclature (G1)
      real*8        JD_1       (nr__2) ! (d) Julian Date of measurement
      character*1   l_mag      (nr__2) ! Limit flag on mag
      real*4        mag_1      (nr__2) ! (mag) Magnitude of measurement
      character*1   u_mag      (nr__2) ! Uncertainty flag on mag
      character*2   n_mag_1    (nr__2) ! Filter used for mag determination
      character*35  Observ     (nr__2) ! Observer
      character*14  Obs        (nr__2) ! Observatory
      character*12  Tel        (nr__2) ! Telescope

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

C  Loading file 'tablea1.dat'	! Catalogue of optical novae in M 31

C  Format for file interpretation

    1 format(
     +  5X,A8,5X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F3.1,1X,
     +  F3.1,1X,I4,1X,F10.2,1X,I4,1X,A1,1X,I4,1X,F4.1,1X,A2,1X,I4,1X,
     +  I3,1X,I3,1X,I4,A1,A40,1X,A24,1X,A14,1X,A14,1X,A65)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea1.dat')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,719
        read(1,'(A265)')ar__
        read(ar__,1)
     +  M31N(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),e_RAs(i__),e_DEs(i__),r_Pos(i__),JD(i__),
     +  r_JD(i__),IDout(i__),r_IDout(i__),mag(i__),n_mag(i__),
     +  r_mag(i__),T2(i__),T2u(i__),r_T2(i__),n_Onames(i__),
     +  Onames(i__),r_Onames(i__),r_Sp(i__),r_Xray(i__),Rem(i__)
        if(ar__(74:77) .EQ. '') r_IDout(i__) = iNULL__
        if(ar__(79:82) .EQ. '') mag(i__) = rNULL__
        if(ar__(87:90) .EQ. '') r_mag(i__) = iNULL__
        if(ar__(92:94) .EQ. '') T2(i__) = iNULL__
        if(ar__(96:98) .EQ. '') T2u(i__) = iNULL__
        if(ar__(100:103) .EQ. '') r_T2(i__) = iNULL__
        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)
     +  M31N(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),e_RAs(i__),e_DEs(i__),r_Pos(i__),JD(i__),
     +  r_JD(i__),IDout(i__),r_IDout(i__),mag(i__),n_mag(i__),
     +  r_mag(i__),T2(i__),T2u(i__),r_T2(i__),n_Onames(i__),
     +  Onames(i__),r_Onames(i__),r_Sp(i__),r_Xray(i__),Rem(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References (tablea2 of the paper)

C  Format for file interpretation

    2 format(I3,1X,A19,1X,A21,1X,A60,A8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,157
        read(1,'(A114)')ar__1
        read(ar__1,2)Ref(i__),BibCode(i__),Aut(i__),Com(i__),SRef(i__)
c    ..............Just test output...........
        write(6,2)Ref(i__),BibCode(i__),Aut(i__),Com(i__),SRef(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tableb2.dat'	! Photometry of novae by Kamil Hornoch

C  Format for file interpretation

    3 format(
     +  I2,6X,A8,1X,F11.3,1X,A1,1X,F5.2,1X,A1,1X,A2,1X,A35,1X,A14,1X,
     +  A12)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tableb2.dat')
      write(6,*) '....Loading file: tableb2.dat'
      do i__=1,654
        read(1,'(A105)')ar__2
        read(ar__2,3)
     +  No(i__),M31N_1(i__),JD_1(i__),l_mag(i__),mag_1(i__),
     +  u_mag(i__),n_mag_1(i__),Observ(i__),Obs(i__),Tel(i__)
c    ..............Just test output...........
        write(6,3)
     +  No(i__),M31N_1(i__),JD_1(i__),l_mag(i__),mag_1(i__),
     +  u_mag(i__),n_mag_1(i__),Observ(i__),Obs(i__),Tel(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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