FORTRAN Generation
(/./ftp/cats/J/A_A/433/117)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/433/117 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.5, on 2013-May-21
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__=-1.e37)     	! NULL real number
      parameter  (iNULL__=-2147483647)	! NULL int  number

C=============================================================================
Cat. J/A+A/433/117     L- & M-band imaging of the Galactic Center   (Viehmann+, 2005)
*================================================================================
*L- and M-band imaging observations of the Galactic Center region
*   Viehmann T., Eckart A., Schoedel R., Moultaka J., Straubmeier C., Pott J.-U.
*  <Astron. Astrophys. 433, 117 (2005)>
*  =2005A&A...433..117V
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Photometry of sources detected in the NAOS/CONICA
                             images (18"x18" field of view) and at least one
                             ISAAC image.

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

      integer*4     ID          ! ID number
      character*9   Name        ! Name of source (if known)
      real*4        dRA         ! (arcsec) Right ascension offset from IRS 16NE (G1)
      real*4        dDE         ! (arcsec) Declination offset from IRS 16NE (G1)
      character*1   l_Hmag      ! Limit flag due to nondetection
      real*4        Hmag        ! (mag) H-band (1.6um) observed magnitude
      character*1   l_Kmag      ! Limit flag due to nondetection
      real*4        Kmag        ! (mag) K-band (2.1um) observed magnitude
      character*1   l_Lmag      ! Limit flag due to nondetection
      real*4        Lmag        ! (mag) L-band (3.8um) observed magnitude
      character*1   l_Mmag      ! Limit flag due to nondetection
      real*4        Mmag        ! (mag) M-band (4.7um) observation magnitude
      real*4        H_K         ! (mag) Observed H-K color
      real*4        K_L         ! (mag) Observed K-L color
      real*4        L_M         ! (mag) Observed L-M color
      character*9   Type        ! Classification (1)
*Note (1): The classifications are from Blum et al. (1996,
*    Cat. <J/ApJ/470/864>), with "cool" referring to red giants/
*    supergiants and "red" signifying objects with featureless K-band
*    spectra and strong IR excess.

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

C  Declarations for 'table2.dat'	! Photometry of sources outside the NAOS/CONICA
                             field of view.

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

      integer*4     ID_1        ! ID number
      real*4        dRA_1       ! (arcsec) Right ascension offset from IRS 16NE (G1)
      real*4        dDE_1       ! (arcsec) Declination offset from IRS 16NE (G1)
      real*4        Lmag_1      ! (mag) L-band (3.8um) observed magnitude
      real*4        Mmag_1      ! (mag) M-band (4.7um) observed magnitude
      real*4        L_M_1       ! (mag) Observed L-M color

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

C  Loading file 'table1.dat'	! Photometry of sources detected in the NAOS/CONICA
*                             images (18"x18" field of view) and at least one
*                             ISAAC image.

C  Format for file interpretation

    1 format(
     +  I3,1X,A9,1X,F6.2,1X,F6.2,2X,A1,F5.2,1X,A1,F5.2,1X,A1,F5.2,1X,
     +  A1,F5.2,2X,F5.2,1X,F5.2,1X,F5.2,2X,A9)

C  Effective file loading

      open(unit=1,file='table1.dat', status='old')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,198
        read(1,'(A86)')ar__
        read(ar__,1)
     +  ID,Name,dRA,dDE,l_Hmag,Hmag,l_Kmag,Kmag,l_Lmag,Lmag,l_Mmag,
     +  Mmag,H_K,K_L,L_M,Type
c    ..............Just test output...........
        write(6,1)
     +  ID,Name,dRA,dDE,l_Hmag,Hmag,l_Kmag,Kmag,l_Lmag,Lmag,l_Mmag,
     +  Mmag,H_K,K_L,L_M,Type
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Photometry of sources outside the NAOS/CONICA
*                             field of view.

C  Format for file interpretation

    2 format(I3,1X,F6.2,1X,F6.2,2X,F5.2,1X,F5.2,2X,F5.2)

C  Effective file loading

      open(unit=1,file='table2.dat', status='old')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,427
        read(1,'(A37)')ar__1
        read(ar__1,2)ID_1,dRA_1,dDE_1,Lmag_1,Mmag_1,L_M_1
c    ..............Just test output...........
        write(6,2)ID_1,dRA_1,dDE_1,Lmag_1,Mmag_1,L_M_1
c    .......End.of.Just test output...........
      end do
      close(1)

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