FORTRAN Generation
(/./ftp/cats/J/A_A/535/A65)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/535/A65 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-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/535/A65     Galaxy clusters in the 4 CFHTLS Wide fields    (Durret+, 2011)
*================================================================================
*Galaxy cluster searches based on photometric redshifts in the four CFHTLS
*Wide fields.
*    Durret F., Adami C., Cappi A., Maurogordato S., Marquez I., Ilbert O.,
*    Coupon J., Arnouts S., Benoist C., Blaizot J., Edorh T.M., Garilli B.,
*    Guennou L., Le Brun V., Le Fevre O., Mazure A., McCracken H.J., Mellier Y.,
*    Mezrag C., Slezak E., Tresse L., Ulmer M.P.
*   <Astron. Astrophys. 535, A65 (2011)>
*   =2011A&A...535A..65D
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'wide1.dat'	! Cluster positions and magnitudes in Wide 1

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

C  J2000.0 position composed of: RAdeg DEdeg
      character*2   Field       ! [W1234] Field name (W1-W4)
      integer*4     Seq         ! Running  number within the field
      real*8        RAdeg       ! (deg) Right ascension in decimal degrees (J2000.0)
      real*8        DEdeg       ! (deg) Declination in decimal degrees (J2000.0)
      real*4        zphot       ! Photometric redshift
      integer*4     S_N         ! Signal to noise or significance level

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

C  Declarations for 'wide2.dat'	! Cluster positions and magnitudes in Wide 2

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

C  J2000.0 position composed of: RAdeg DEdeg
      character*2   Field_1     ! [W1234] Field name (W1-W4)
      integer*4     Seq_1       ! Running  number within the field
      real*8        RAdeg_1     ! (deg) Right ascension in decimal degrees (J2000.0)
      real*8        DEdeg_1     ! (deg) Declination in decimal degrees (J2000.0)
      real*4        zphot_1     ! Photometric redshift
      integer*4     S_N_1       ! Signal to noise or significance level

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

C  Declarations for 'wide3.dat'	! Cluster positions and magnitudes in Wide 3

      integer*4 nr__2
      parameter (nr__2=1819)	! Number of records
      character*32 ar__2  	! Full-size record

C  J2000.0 position composed of: RAdeg DEdeg
      character*2   Field_2     ! [W1234] Field name (W1-W4)
      integer*4     Seq_2       ! Running  number within the field
      real*8        RAdeg_2     ! (deg) Right ascension in decimal degrees (J2000.0)
      real*8        DEdeg_2     ! (deg) Declination in decimal degrees (J2000.0)
      real*4        zphot_2     ! Photometric redshift
      integer*4     S_N_2       ! Signal to noise or significance level

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

C  Declarations for 'wide4.dat'	! Cluster positions and magnitudes in Wide 4

      integer*4 nr__3
      parameter (nr__3=817)	! Number of records
      character*32 ar__3  	! Full-size record

C  J2000.0 position composed of: RAdeg DEdeg
      character*2   Field_3     ! [W1234] Field name (W1-W4)
      integer*4     Seq_3       ! Running  number within the field
      real*8        RAdeg_3     ! (deg) Right ascension in decimal degrees (J2000.0)
      real*8        DEdeg_3     ! (deg) Declination in decimal degrees (J2000.0)
      real*4        zphot_3     ! Photometric redshift
      integer*4     S_N_3       ! Signal to noise or significance level

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

C  Loading file 'wide1.dat'	! Cluster positions and magnitudes in Wide 1

C  Format for file interpretation

    1 format(A2,1X,I4,1X,F8.4,1X,F8.4,1X,F4.2,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'wide1.dat')
      write(6,*) '....Loading file: wide1.dat'
      do i__=1,3247
        read(1,'(A32)')ar__
        read(ar__,1)Field,Seq,RAdeg,DEdeg,zphot,S_N
c    ..............Just test output...........
        write(6,1)Field,Seq,RAdeg,DEdeg,zphot,S_N
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'wide2.dat'	! Cluster positions and magnitudes in Wide 2

C  Format for file interpretation

    2 format(A2,1X,I4,1X,F8.4,1X,F8.4,1X,F4.2,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'wide2.dat')
      write(6,*) '....Loading file: wide2.dat'
      do i__=1,919
        read(1,'(A32)')ar__1
        read(ar__1,2)Field_1,Seq_1,RAdeg_1,DEdeg_1,zphot_1,S_N_1
c    ..............Just test output...........
        write(6,2)Field_1,Seq_1,RAdeg_1,DEdeg_1,zphot_1,S_N_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'wide3.dat'	! Cluster positions and magnitudes in Wide 3

C  Format for file interpretation

    3 format(A2,1X,I4,1X,F8.4,1X,F8.4,1X,F4.2,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'wide3.dat')
      write(6,*) '....Loading file: wide3.dat'
      do i__=1,1819
        read(1,'(A32)')ar__2
        read(ar__2,3)Field_2,Seq_2,RAdeg_2,DEdeg_2,zphot_2,S_N_2
c    ..............Just test output...........
        write(6,3)Field_2,Seq_2,RAdeg_2,DEdeg_2,zphot_2,S_N_2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'wide4.dat'	! Cluster positions and magnitudes in Wide 4

C  Format for file interpretation

    4 format(A2,1X,I4,1X,F8.4,1X,F8.4,1X,F4.2,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'wide4.dat')
      write(6,*) '....Loading file: wide4.dat'
      do i__=1,817
        read(1,'(A32)')ar__3
        read(ar__3,4)Field_3,Seq_3,RAdeg_3,DEdeg_3,zphot_3,S_N_3
c    ..............Just test output...........
        write(6,4)Field_3,Seq_3,RAdeg_3,DEdeg_3,zphot_3,S_N_3
c    .......End.of.Just test output...........
      end do
      close(1)

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