FORTRAN Generation
(/./ftp/cats/J/ApJ/669/714)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/669/714 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-19
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/ApJ/669/714       Subaru weak-lensing survey. I.           (Miyazaki+, 2007)
*================================================================================
*A Subaru weak-lensing survey.
*I. Cluster candidates and spectroscopic verification.
*    Miyazaki S., Hamana T., Ellis R.S., Kashikawa N., Massey R.J., Taylor J.,
*    Refregier A.
*   <Astrophys. J., 669, 714-728 (2007)>
*   =2007ApJ...669..714M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Suprime-Cam weak-lensing survey fields

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

      real*8        RA_         ! (deg) Right Ascension J2000
      real*8        Dec         ! (deg)     Declination J2000
      character*12  Field       ! Field name
      integer*4     RAh         ! (h) Right ascension (J2000)
      integer*4     RAm         ! (min) Right ascension (J2000)
      character*1   DE_         ! Declination sign (J2000)
      integer*4     DEd         ! (deg) Declination (J2000)
      real*4        Area        ! (deg+2) Field area covered by the several
*                                     Suprime-Cam pointings
      real*4        SArea       ! (deg+2) Area used for the halo sample
      real*4        Seeing      ! (arcsec) Seeing (FWHM) (refers to average values of
*                                      the constituent pointings)
      real*4        e_Seeing    ! (arcsec) rms uncertainty on Seeing
      real*4        rhoGal      ! (arcmin-2) Galaxy density (refers to average values of
*                                      the constituent pointings) (1)
      real*4        e_rhoGal    ! (arcmin-2) rms uncertainty on rhoGal (1)
      integer*4     TexpR       ! (ks) ?=- ROSAT exposure time
      integer*4     TexpC       ! (ks) ?=- Chandra exposure time
      integer*4     TexpN       ! (ks) ?=- XMM-Newton exposure time
*Note (1): the published paper indicates a unit of arcmin^2^

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

C  Declarations for 'table2.dat'	! Shear-selected Halos

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

      character*12  Field_1     ! Field name
      integer*4     Seq         ! Sequential number within the field (1)
      character*15  v_MHE2007_  ! Name (SL JHHMM.m+DDMM)
      real*4        RAdeg       ! (deg) Right ascension in decimal degrees (J2000)
      real*4        DEdeg       ! (deg) Declination in decimal degrees (J2000)
      real*4        S_N         ! Signal-to-noise ratio  of the kappa-map
      real*4        kappa       ! {kappa} value (dimensionless surface mass
*                                   density)
      integer*4     Ng          ! Number of moderately bright (R_C_<22)
*                                   galaxies around the halo within 2'
      real*4        zF1         ! ?=- Spectroscopic redshift obtained by FOCAS
      real*4        zF2         ! ?=- Spectroscopic redshift obtained by FOCAS
      real*4        zF3         ! ?=- Spectroscopic redshift obtained by FOCAS
      real*4        z           ! ?=- Cluster redshift found in the literature
*                                      (mainly from NED)
      character*1   n_z         ! [P] P stands for a photometric redshift
      real*4        zNEDG       ! ?=- Redshift estimated from grouping of
*                                      galaxies whose redshifts are listed in NED
      character*45  Notes       ! Notes
*Note (1): Sources identified as [MHE2007] Field NN in Simbad.

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

C  Loading file 'table1.dat'	! Suprime-Cam weak-lensing survey fields

C  Format for file interpretation

    1 format(
     +  A12,2X,I2,1X,I2,1X,A1,I2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,
     +  F4.1,1X,F4.1,1X,I3,1X,I3,1X,I3)

C  Effective file loading

      open(unit=1,file='table1.dat', status='old')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,13
        read(1,'(A65)')ar__
        read(ar__,1)
     +  Field,RAh,RAm,DE_,DEd,Area,SArea,Seeing,e_Seeing,rhoGal,
     +  e_rhoGal,TexpR,TexpC,TexpN
        if (TexpR .EQ. 45) TexpR =  iNULL__
        if (TexpC .EQ. 45) TexpC =  iNULL__
        if (TexpN .EQ. 45) TexpN =  iNULL__
c       Derive coordinates RA_ and Dec from input data
c       (RA_ and Dec are set to rNULL_ when unknown)
        RA_ = RAh
        if(RAh .GE. 0) RA_=RAh*15.
        if(RAm .GE. 0) RA_=RA_+RAm/4.
        Dec = DEd
        if(DE_.EQ.'-'.AND.Dec.GE.0) Dec=-Dec
c    ..............Just test output...........
        write(6,1)
     +  Field,RAh,RAm,DE_,DEd,Area,SArea,Seeing,e_Seeing,rhoGal,
     +  e_rhoGal,TexpR,TexpC,TexpN
        write(6,'(6H Pos: 2F8.4)') RA_,Dec
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Shear-selected Halos

C  Format for file interpretation

    2 format(
     +  A12,1X,I2,1X,A15,1X,F6.2,1X,F5.2,1X,F4.2,1X,F5.3,1X,I2,1X,
     +  F4.2,1X,F4.2,1X,F4.2,1X,F4.2,A1,1X,F4.2,1X,A45)

C  Effective file loading

      open(unit=1,file='table2.dat', status='old')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,101
        read(1,'(A130)')ar__1
        read(ar__1,2)
     +  Field_1,Seq,v_MHE2007_,RAdeg,DEdeg,S_N,kappa,Ng,zF1,zF2,zF3,z,
     +  n_z,zNEDG,Notes
        if (zF1 .EQ. 2.2233e-322) zF1 =  rNULL__
        if (zF2 .EQ. 2.2233e-322) zF2 =  rNULL__
        if (zF3 .EQ. 2.2233e-322) zF3 =  rNULL__
        if (z .EQ. 2.2233e-322) z =  rNULL__
        if (zNEDG .EQ. 2.2233e-322) zNEDG =  rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Field_1,Seq,v_MHE2007_,RAdeg,DEdeg,S_N,kappa,Ng,zF1,zF2,zF3,z,
     +  n_z,zNEDG,Notes
c    .......End.of.Just test output...........
      end do
      close(1)

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