FORTRAN Generation
(/./ftp/cats/J/ApJ/659/599)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/659/599 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 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/659/599   IRAC and JHKs photometry of h and chi Persei (Currie+, 2007)
*================================================================================
*Spitzer IRAC and JHK_s_ observations of h and chi Persei: constraints on
*protoplanetary disk and massive cluster evolution at ~10^7^ years.
*    Currie T., Balog Z., Kenyon S.J., Rieke G., Prato L., Young E.T.,
*    Muzerolle J., Clemens D.P., Buie M., Sarcia D., Grabu A., Tollestrup E.V.,
*    Taylor B., Dunham E., Mace G.
*   <Astrophys. J., 659, 599-615 (2007)>
*   =2007ApJ...659..599C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! h & chi Persei data

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg       ! (deg) Right Ascension in decimal degrees (J2000) (1)
      real*8        DEdeg       ! (deg) Declination in decimal degrees (J2000) (1)
      real*4        Jmag        ! (mag) The J band magnitude
      real*4        Hmag        ! (mag) The H band magnitude
      real*4        Ksmag       ! (mag) The Ks band magnitude
      real*4        v3_6m       ! (mag) ?=99.000 Spitzer/IRAC 3.6micron magnitude (2)
      real*4        v4_5m       ! (mag) ?=99.000 Spitzer/IRAC 4.5micron magnitude (2)
      real*4        v5_8m       ! (mag) ?=99.000 Spitzer/IRAC 5.8micron magnitude (2)
      real*4        v8_0m       ! (mag) ?=99.000 Spitzer/IRAC 8.0micron magnitude (2)
      real*4        e_Jmag      ! (mag) The 1{sigma} error in Jmag
      real*4        e_Hmag      ! (mag) The 1{sigma} error in Hmag
      real*4        e_Ksmag     ! (mag) The 1{sigma} error in Ksmag
      real*4        e_3_6m      ! (mag) ?=99.000 The 1{sigma} error in 3.6m (2)
      real*4        e_4_5m      ! (mag) ?=99.000 The 1{sigma} error in 4.5m (2)
      real*4        e_5_8m      ! (mag) ?=99.000 The 1{sigma} error in 5.8m (2)
      real*4        e_8_0m      ! (mag) ?=99.000 The 1{sigma} error in 8.0m (2)
*Note (1): Objects identified as [CBK2007b] DD.dddd+DD.dddd in Simbad.
*Note (2): 99.000 = unknown value.

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

C  Loading file 'table2.dat'	! h & chi Persei data

C  Format for file interpretation

    1 format(
     +  F7.4,F8.4,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,
     +  F6.3,2X,F5.3,2X,F5.3,2X,F5.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,31265
        read(1,'(A113)')ar__
        read(ar__,1)
     +  RAdeg,DEdeg,Jmag,Hmag,Ksmag,v3_6m,v4_5m,v5_8m,v8_0m,e_Jmag,
     +  e_Hmag,e_Ksmag,e_3_6m,e_4_5m,e_5_8m,e_8_0m
c    ..............Just test output...........
        write(6,1)
     +  RAdeg,DEdeg,Jmag,Hmag,Ksmag,v3_6m,v4_5m,v5_8m,v8_0m,e_Jmag,
     +  e_Hmag,e_Ksmag,e_3_6m,e_4_5m,e_5_8m,e_8_0m
c    .......End.of.Just test output...........
      end do
      close(1)

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