FORTRAN Generation
(/./ftp/cats/J/A_A/515/A51)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/515/A51 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-20
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/515/A51       Extended red(dened) regions in 2MASS      (Frieswijk+, 2010)
*================================================================================
*Searching for dark clouds in the outer galactic plane.
*I. A statistical approach for identifying extended red(dened) regions in 2MASS.
*    Frieswijk W.W.F., Shipman R.F.
*   <Astron. Astrophys. 515, A51 (2010)>
*   =2010A&A...515A..51F
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Basic parameters of extended red regions in the
                              outer Galaxy

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

C  Position composed of: GLON GLAT
      character*5   FrSh       (nr__) ! Extended red region number, HNNNN or LNNNN (1)
      real*4        GLON       (nr__) ! (deg) Galactic longitude of red region center
      real*4        GLAT       (nr__) ! (deg) Galactic latitude of red region center
      integer*4     Ncell      (nr__) ! Total number of red cells (2)
      integer*4     dLon       (nr__) ! (pix) Extent in Galactic longitude (3)
      integer*4     dLat       (nr__) ! (pix) Extent in Galactic latitude (3)
      integer*4     v2M        (nr__) ! Number of 2MASS sources (4)
*Note (1): Lines 1 to 1320 are regions H1 to H1320 extracted at 60"
*     resolution and are preceded by 'H' for high resolution;
*     lines 1321 to 2909 are regions L1 to L1589 extracted at 90" resolution
*     and are preceded by 'L' for low resolution.
*Note (2): The number of cells that an extended red region consists of. By
*     definition this number is larger than 3.
*Note (3): For high resolution regions 1 pixel corresponds to 60". For low
*     resolution regions 1 pixel corresponds to 90".
*Note (4): The total number of 2MASS sources that are present in the cells
*     that make up an extended red region (see Note 2).

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

C  Loading file 'table1.dat'	! Basic parameters of extended red regions in the
*                              outer Galaxy

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,2909
        read(1,'(A36)')ar__
        read(ar__,1)
     +  FrSh(i__),GLON(i__),GLAT(i__),Ncell(i__),dLon(i__),dLat(i__),
     +  v2M(i__)
c    ..............Just test output...........
        write(6,1)
     +  FrSh(i__),GLON(i__),GLAT(i__),Ncell(i__),dLon(i__),dLat(i__),
     +  v2M(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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