FORTRAN Generation
(/./ftp/cats/J/ApJ/844/46)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/844/46 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/ApJ/844/46  Photometry of the transient event iPTF16fnl  (Blagorodnova+, 2017)
*================================================================================
*iPTF16fnl: a faint and fast tidal disruption event in an E+A galaxy.
*    Blagorodnova N., Gezari S., Hung T., Kulkarni S.R., Cenko S.B., Pasham D.R.,
*    Yan L., Arcavi I., Ben-Ami S., Bue B.D., Cantwell T., Cao Y.,
*    Castro-Tirado A.J., Fender R., Fremling C., Gal-Yam A., Ho A.Y.Q.,
*    Horesh A., Hosseinzadeh G., Kasliwal M.M., Kong A.K.H., Laher R.R.,
*    Leloudas G., Lunnan R., Masci F.J., Mooley K., Neill J.D., Nugent P.,
*    Powell M., Valeev A.F., Vreeswijk P.M., Walters R., Wozniak P.
*   <Astrophys. J., 844, 46 (2017)>
*   =2017ApJ...844...46B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Optical and UV photometry of iPTF16fnl
                               in AB magnitude system

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

      real*8        MJD        (nr__) ! (d) [57626.4/57724.7] Modified Julian Date,
*                                 JD-240000.5
      character*10  Tel        (nr__) ! Telescope+Instrument Used (Swift+UVOT,
*                                 P48+CFH12k or P60+SEDM)
      real*4        UVW1mag    (nr__) ! (mag) [16.8/18.9]? Swift/UVOT UVW1 passband AB
*                                 magnitude
      real*4        e_UVW1mag  (nr__) ! (mag) [0.04/0.08]? Uncertainty in UVW1mag
      real*4        UVM2mag    (nr__) ! (mag) [16.9/19.4]? Swift/UVOT UVM2 passband AB
*                                 magnitude
      real*4        e_UVM2mag  (nr__) ! (mag) [0.04/0.2]? Uncertainty in UVM2mag
      real*4        UVW2mag    (nr__) ! (mag) [16.6/19.5]? Swift/UVOT UVW2 passband AB
*                                 magnitude
      real*4        e_UVW2mag  (nr__) ! (mag) [0.04/0.08]? Uncertainty in UVW2mag
      real*4        Umag       (nr__) ! (mag) [16.3/17.5]? Swift/UVOT U passband AB
*                                 magnitude
      real*4        e_Umag     (nr__) ! (mag) [0.04/0.07]? Uncertainty in Umag
      real*4        Bmag       (nr__) ! (mag) [15.6/16.1]? Swift/UVOT B passband AB
*                                 magnitude
      real*4        e_Bmag     (nr__) ! (mag) [0.03/0.05]? Uncertainty in Bmag
      real*4        Vmag       (nr__) ! (mag) [15.1/15.7]? Swift/UVOT V passband AB
*                                 magnitude
      real*4        e_Vmag     (nr__) ! (mag) [0.04/0.07]? Uncertainty in Vmag
      real*4        umag_1     (nr__) ! (mag) [17.1/19.8]? Palomar u' passband AB magnitude
*                                 in SDSS system
      real*4        e_umag_1   (nr__) ! (mag) [0.07/0.3]? Uncertainty in umag
      real*4        gmag       (nr__) ! (mag) [17.1/20.8]? Palomar g' passband AB magnitude
*                                 in SDSS system (1)
      real*4        e_gmag     (nr__) ! (mag) [0.06/0.4]? Uncertainty in gmag
      real*4        rmag       (nr__) ! (mag) [17.3/20.9]? Palomar r' passband AB magnitude
*                                 in SDSS system (1)
      real*4        e_rmag     (nr__) ! (mag) [0.06/0.4]? Uncertainty in rmag
      real*4        imag       (nr__) ! (mag) [17.2/19]? Palomar i' passband AB magnitude,
*                                 in SDSS system
      real*4        e_imag     (nr__) ! (mag) [0.07/0.4]? Uncertainty in image
*Note (1): If the uncertainty in a measured magnitude is null (blank) then
*          the magnitude value should be considered an upper limit.

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

C  Loading file 'table3.dat'	! Optical and UV photometry of iPTF16fnl
*                               in AB magnitude system

C  Format for file interpretation

    1 format(
     +  F7.1,1X,A10,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,
     +  1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,
     +  F4.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,69
        read(1,'(A130)')ar__
        read(ar__,1)
     +  MJD(i__),Tel(i__),UVW1mag(i__),e_UVW1mag(i__),UVM2mag(i__),
     +  e_UVM2mag(i__),UVW2mag(i__),e_UVW2mag(i__),Umag(i__),
     +  e_Umag(i__),Bmag(i__),e_Bmag(i__),Vmag(i__),e_Vmag(i__),
     +  umag_1(i__),e_umag_1(i__),gmag(i__),e_gmag(i__),rmag(i__),
     +  e_rmag(i__),imag(i__),e_imag(i__)
        if(ar__(20:24) .EQ. '') UVW1mag(i__) = rNULL__
        if(ar__(26:29) .EQ. '') e_UVW1mag(i__) = rNULL__
        if(ar__(31:35) .EQ. '') UVM2mag(i__) = rNULL__
        if(ar__(37:40) .EQ. '') e_UVM2mag(i__) = rNULL__
        if(ar__(42:46) .EQ. '') UVW2mag(i__) = rNULL__
        if(ar__(48:51) .EQ. '') e_UVW2mag(i__) = rNULL__
        if(ar__(53:57) .EQ. '') Umag(i__) = rNULL__
        if(ar__(59:62) .EQ. '') e_Umag(i__) = rNULL__
        if(ar__(64:68) .EQ. '') Bmag(i__) = rNULL__
        if(ar__(70:73) .EQ. '') e_Bmag(i__) = rNULL__
        if(ar__(75:79) .EQ. '') Vmag(i__) = rNULL__
        if(ar__(81:84) .EQ. '') e_Vmag(i__) = rNULL__
        if(ar__(86:90) .EQ. '') umag_1(i__) = rNULL__
        if(ar__(92:95) .EQ. '') e_umag_1(i__) = rNULL__
        if(ar__(97:101) .EQ. '') gmag(i__) = rNULL__
        if(ar__(103:107) .EQ. '') e_gmag(i__) = rNULL__
        if(ar__(109:113) .EQ. '') rmag(i__) = rNULL__
        if(ar__(115:119) .EQ. '') e_rmag(i__) = rNULL__
        if(ar__(121:125) .EQ. '') imag(i__) = rNULL__
        if(ar__(127:130) .EQ. '') e_imag(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  MJD(i__),Tel(i__),UVW1mag(i__),e_UVW1mag(i__),UVM2mag(i__),
     +  e_UVM2mag(i__),UVW2mag(i__),e_UVW2mag(i__),Umag(i__),
     +  e_Umag(i__),Bmag(i__),e_Bmag(i__),Vmag(i__),e_Vmag(i__),
     +  umag_1(i__),e_umag_1(i__),gmag(i__),e_gmag(i__),rmag(i__),
     +  e_rmag(i__),imag(i__),e_imag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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