CDS.headStuff2 FORTRAN Generation
()

Conversion of standardized ReadMe file for catalog 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-May-01
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/MNRAS/348/866   2dFGRS Percolation-Inferred Galaxy Group (2PIGG)  (Eke+, 2004)
*================================================================================
*Galaxy groups in the 2dFGRS: the group-finding algorithm and the
*2PIGG catalogue.
*    Eke V.R., Baugh C.M., Cole S., Frenk C.S., Norberg P., Peacock J.A.,
*    Baldry I.K., Bland-Hawthorn J., Bridges T., Cannon R., Colless M.,
*    Collins C., Couch W., Dalton G., De Propris R., Driver S.P., Efstathiou G.,
*    Ellis R.S., Glazebrook K., Jackson C., Lahav O., Lewis I., Lumsden S.,
*    Maddox S., Madgwick D., Peterson B.A., Sutherland W., Taylor K.
*   <Mon. Not. R. Astron. Soc., 348, 866-878 (2004)>
*   =2004MNRAS.348..866E
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'mocngpga.dat'	! Mock galaxies in the NGP

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

C  1950 position composed of: RArad DErad
      real*8        RArad       ! (rad) Right ascension in radians (1950 coordinates)
      real*8        DErad       ! (rad) Declination in radians (1950 coordinates)
      real*4        z           ! Redshift
      real*4        bJmag       ! (mag) b_J_ magnitude
      real*4        bJmagl      ! (mag) limiting b_J magnitude of the survey at the
*                                   position of this galaxy
      real*8        n           ! Mean number density of galaxies in the survey
*                                   at the position of this galaxy
      real*4        Weight      ! [1/4.4] Weight associated with this galaxy
      integer*4     Ngroup      ! [0/16957] Group number to which this galaxy
*                                   has been assigned (0 is ungrouped) (1)
*Note (1): k refers to the kth entry in the corresponding group list,
*          i.e. "recno" of the Vizir groups files.

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

C  Loading file 'mocngpga.dat'	! Mock galaxies in the NGP

C  Format for file interpretation

    1 format(
     +  2X,F8.5,2X,F8.5,3X,F6.4,2X,F6.3,2X,F6.3,2X,F8.6,3X,F4.2,2X,I5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'J/MNRAS/348/866/mocngpga.dat')
      write(6,*) '....Loading file: mocngpga.dat'
      do i__=1,73195
        read(1,'(A69)')ar__
        read(ar__,1)RArad,DErad,z,bJmag,bJmagl,n,Weight,Ngroup
c    ..............Just test output...........
        write(6,1)RArad,DErad,z,bJmag,bJmagl,n,Weight,Ngroup
c    .......End.of.Just test output...........
      end do
      close(1)

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