FORTRAN Generation
(/./ftp/cats/J/ApJ/654/338)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/654/338 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 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/ApJ/654/338       Spitzer photometry in W3 molecular cloud  (Ruch+, 2007)
*================================================================================
*Spitzer observations of the giant molecular cloud W3.
*    Ruch G.T., Jones T.J., Woodward C.E., Polomski E.F., Gehrz R.D.,
*    Megeath S.T.
*   <Astrophys. J., 654, 338-346 (2007)>
*   =2007ApJ...654..338R
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! IRAC magnitudes of sources detected in all 4 bands

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     v_RJW2007_  ! The IRAC identification number
      character*16  v2MASS      ! The 2MASS identification number
*                                   (HHMMSSss+DDMMSSs)
      real*8        RAdeg       ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg       ! (deg) Declination  in decimal degrees (J2000)
      real*4        v3_6mag     ! (mag) The IRAC 3.6 micron magnitude
      real*4        e_3_6mag    ! (mag) Uncertainty in 3.6mag
      real*4        v4_5mag     ! (mag) The IRAC 4.5 micron magnitude
      real*4        e_4_5mag    ! (mag) Uncertainty in 4.5mag
      real*4        v5_8mag     ! (mag) The IRAC 5.8 micron magnitude
      real*4        e_5_8mag    ! (mag) Uncertainty in 5.8mag
      real*4        v8_0mag     ! (mag) The IRAC 8.0 micron magnitude
      real*4        e_8_0mag    ! (mag) Uncertainty in 8.0mag
      real*4        v24mag      ! (mag) ? The MIPS 24.0 micron magnitude
      real*4        e_24mag     ! (mag) ? Uncertainty in 24.0mag

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

C  Loading file 'table3.dat'	! IRAC magnitudes of sources detected in all 4 bands

C  Format for file interpretation

    1 format(
     +  I3,1X,A16,1X,F9.6,1X,F9.6,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,F4.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,295
        read(1,'(A94)')ar__
        read(ar__,1)
     +  v_RJW2007_,v2MASS,RAdeg,DEdeg,v3_6mag,e_3_6mag,v4_5mag,
     +  e_4_5mag,v5_8mag,e_5_8mag,v8_0mag,e_8_0mag,v24mag,e_24mag
        if(ar__(86:89) .EQ. '') v24mag = rNULL__
        if(ar__(91:94) .EQ. '') e_24mag = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  v_RJW2007_,v2MASS,RAdeg,DEdeg,v3_6mag,e_3_6mag,v4_5mag,
     +  e_4_5mag,v5_8mag,e_5_8mag,v8_0mag,e_8_0mag,v24mag,e_24mag
c    .......End.of.Just test output...........
      end do
      close(1)

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