FORTRAN Generation
(/./ftp/cats/J/A_A/499/483)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/499/483 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-11
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/499/483   NIR observations of sources in galactic center (Buchholz+, 2009)
*================================================================================
*Composition of the galactic center star cluster: Population analysis from
*adaptive optics narrow band spectral energy distributions.
*    Buchholz R.M., Schoedel R., Eckart A.
*   <Astron. Astrophys. 499, 483 (2009)>
*   =2009A&A...499..483B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'typelist.dat'	! Positions, magnitudes, types and extinctions
                              for sources in the Galactic center

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

      integer*4     Seq        (nr__) ! Source identification number
      real*4        xpos       (nr__) ! (arcsec) Relative position towards Sgr A* (1)
      real*4        ypos       (nr__) ! (arcsec) Relative position towards Sgr A* (1)
      real*4        Rp         (nr__) ! (arcsec) Projected distance to Sgr A*
      real*4        Kmag       (nr__) ! Apparent magnitude in the K band at 2.18um
      real*4        AK         (nr__) ! Extinction at 2.18um
      character*2   Type       (nr__) ! Type (2)
*Note (1): SgrA* J2000 position: 17:45:40.0409-29:00:28.118
*Note (2): Type as follows:
*     E1 = Early type candidate quality 1
*     E2 = Early type candidate quality 2
*     E3 = Early type candidate quality 3
*     L1 = Late type candidate quality 1
*     L2 = Late type candidate quality 2
*     N  = Noisy SED
*     FG = Foreground source
*     R  = Strongly reddened source
*     FT = Source too faint for classification

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

C  Loading file 'typelist.dat'	! Positions, magnitudes, types and extinctions
*                              for sources in the Galactic center

C  Format for file interpretation

    1 format(I4,2X,F6.2,1X,F6.2,1X,F5.2,1X,F4.1,1X,F3.1,1X,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'typelist.dat')
      write(6,*) '....Loading file: typelist.dat'
      do i__=1,5914
        read(1,'(A37)')ar__
        read(ar__,1)
     +  Seq(i__),xpos(i__),ypos(i__),Rp(i__),Kmag(i__),AK(i__),
     +  Type(i__)
c    ..............Just test output...........
        write(6,1)
     +  Seq(i__),xpos(i__),ypos(i__),Rp(i__),Kmag(i__),AK(i__),
     +  Type(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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