FORTRAN Generation
(/./ftp/cats/J/A_A/602/A99)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/602/A99 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-Oct-09
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/602/A99     Photometry of EXors from Asiago plates  (Jurdana-Sepic+, 2017)
*================================================================================
*Investigating the past history of EXors: the cases of V1118 Orionis,
*V1143 Orionis, and NY Orionis.
*    Jurdana-Sepic R., Munari U., Antoniucci S., Giannini T., Li Causi G.,
*    Lorenzetti D.
*    <Astron. Astrophys. 602, A99 (2017)>
*    =2017A&A...602A..99J        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'stars.dat'	! List of studied stars

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

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

      character*9   Name       (nr__) ! Name
      integer*4     RAh        (nr__) ! (h) Simbad Right ascension (J2000.0)
      integer*4     RAm        (nr__) ! (min) Simbad Right ascension (J2000.0)
      real*4        RAs        (nr__) ! (s) Simbad Right ascension (J2000.0)
      character*1   DE_        (nr__) ! Simbad Declination sign (J2000.0)
      integer*4     DEd        (nr__) ! (deg) Simbad Declination (J2000.0)
      integer*4     DEm        (nr__) ! (arcmin) Simbad Declination (J2000.0)
      real*4        DEs        (nr__) ! (arcsec) Simbad Declination (J2000.0)
      real*4        Bmag       (nr__) ! (mag) Simbad B band magnitude
      real*4        Vmag       (nr__) ! (mag) Simbad V band magnitude
      character*7   SpType     (nr__) ! Simbad MK spectral type

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

C  Declarations for 'table1.dat'	! BVRI Asiago plate photometry of NY Ori,
                                 V1143 Ori, and V1118 Ori

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

      real*8        HJD        (nr__1) ! (d) Heliocentric Julian Date
      character*10  Obs_date   (nr__1) ! ("YYYY-MM-DD") Date of observation (yyyy-mm-dd)
      character*5   Obs_time   (nr__1) ! ("h:m") Central UT of the exposure (hh:mm)
      character*7   Emuls      (nr__1) ! Emulsion
      character*5   Filt       (nr__1) ! Filter
      character*2   Tel        (nr__1) ! Telescope (1)
      integer*4     Plate      (nr__1) ! Plate number
      character*1   Band1      (nr__1) ! [BVRI] NY Ori observed band
      real*4        mag1       (nr__1) ! (mag) ? NY Ori magnitude in Band Band1
      real*4        e_mag1     (nr__1) ! (mag) ? NY Ori rms uncertainty on mag1
      character*1   Band2      (nr__1) ! [BVRI] V1143 Ori observed band
      character*1   l_mag2     (nr__1) ! [<] V1143 Ori magnitude lower limit flag
      real*4        mag2       (nr__1) ! (mag) ? V1143 Ori magnitude in Band Band2
      real*4        e_mag2     (nr__1) ! (mag) ? V1143 Ori rms uncertainty on mag2
      character*1   Band3      (nr__1) ! [BVRI] V1118 Ori observed band
      character*1   n_mag3     (nr__1) ! [*] V1118 Ori limit flag (2)
      character*1   l_mag3     (nr__1) ! [<] V1118 Ori magnitude lower limit flag
      real*4        mag3       (nr__1) ! (mag) ? V1118 Ori magnitude in Band Band3
      real*4        e_mag3     (nr__1) ! (mag) ? V1118 Ori rms uncertainty on mag3
*Note (1): the following Asiago telescopes were used:
*      SP = (Schmidt Piccolo): 40/50cm diameter, 100cm focal length
*      SG = (Schmidt Grande): 67/92cm diameter, 208cm focal length
*Note (2): Flag as follows:
*       * = indicates that it was only possible to rule out that the source was
*           going through a bright outburst at the moment of the plate exposure.

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

C  Loading file 'stars.dat'	! List of studied stars

C  Format for file interpretation

    1 format(
     +  A9,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.2,1X,F5.2,
     +  1X,A7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'stars.dat')
      write(6,*) '....Loading file: stars.dat'
      do i__=1,3
        read(1,'(A53)')ar__
        read(ar__,1)
     +  Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Bmag(i__),Vmag(i__),SpType(i__)
        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)
     +  Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Bmag(i__),Vmag(i__),SpType(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 'table1.dat'	! BVRI Asiago plate photometry of NY Ori,
*                                 V1143 Ori, and V1118 Ori

C  Format for file interpretation

    2 format(
     +  F13.5,1X,A10,1X,A5,1X,A7,1X,A5,1X,A2,1X,I5,1X,A1,1X,F5.2,1X,
     +  F4.2,1X,A1,1X,A1,F5.2,1X,F4.2,1X,A1,1X,A1,A1,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,447
        read(1,'(A95)')ar__1
        read(ar__1,2)
     +  HJD(i__),Obs_date(i__),Obs_time(i__),Emuls(i__),Filt(i__),
     +  Tel(i__),Plate(i__),Band1(i__),mag1(i__),e_mag1(i__),
     +  Band2(i__),l_mag2(i__),mag2(i__),e_mag2(i__),Band3(i__),
     +  n_mag3(i__),l_mag3(i__),mag3(i__),e_mag3(i__)
        if(ar__1(57:61) .EQ. '') mag1(i__) = rNULL__
        if(ar__1(63:66) .EQ. '') e_mag1(i__) = rNULL__
        if(ar__1(71:75) .EQ. '') mag2(i__) = rNULL__
        if(ar__1(77:80) .EQ. '') e_mag2(i__) = rNULL__
        if(ar__1(86:90) .EQ. '') mag3(i__) = rNULL__
        if(ar__1(92:95) .EQ. '') e_mag3(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  HJD(i__),Obs_date(i__),Obs_time(i__),Emuls(i__),Filt(i__),
     +  Tel(i__),Plate(i__),Band1(i__),mag1(i__),e_mag1(i__),
     +  Band2(i__),l_mag2(i__),mag2(i__),e_mag2(i__),Band3(i__),
     +  n_mag3(i__),l_mag3(i__),mag3(i__),e_mag3(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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