FORTRAN Generation
(/./ftp/cats/J/ApJ/694/222)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/694/222 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-18
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/ApJ/694/222     Extragalactic point sources in WMAP 5-yr maps   (Chen+, 2009)
*================================================================================
*Extragalactic point source search in five-year WMAP 41, 61, and 94 Ghz maps.
*    Chen X., Wright E.L.
*   <Astrophys. J., 694, 222-234 (2009)>
*   =2009ApJ...694..222C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Identified point sources from five-year Q-, V-,
                            and W-band ILC (internal linear combination) map

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm
      real*8        RAdeg       ! (deg) Right Ascension J2000
      real*8        DEdeg       ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     RAh         ! (h) Hour of right ascension (J2000)
      integer*4     RAm         ! (min) Minute of right ascension (J2000)
      integer*4     RAs         ! (s) Second of right ascension (J2000)
      character*1   DE_         ! Declination sign (J2000)
      integer*4     DEd         ! (deg) Degree of declination (J2000)
      integer*4     DEm         ! (arcmin) Arcminute of declination (J2000)
      character*10  WMAP        ! WMAP 5-yr name (JHHMM-DDMM) if available (Wright
*                                et al., Cat. J/ApJS/180/283)
      character*6   OType       ! Object type (G, GPair, GTripl, RadioS or QSO)
      real*4        S_Q         ! (Jy) WMAP Q channel (41GHz) flux density
      real*4        e_S_Q       ! (Jy) 1{sigma} error in S(Q)
      real*4        S_V         ! (Jy) WMAP V channel (61GHz) flux density
      real*4        e_S_V       ! (Jy) 1{sigma} error in S(V)
      real*4        S_W         ! (Jy) WMAP W channel (94GHz) flux density
      real*4        e_S_W       ! (Jy) 1{sigma} error in S(W)
      character*14  v5GHzID     ! 5GHz identification (1)
      real*4        Dist        ! (arcmin) Angular distance to the 5GHz counterpart
      character*5   Note        ! [a-e ] Note(s) (2)
*Note (1): As given in the following catalogs:
*   GB6 = Gregory et al. 1996, Cat. VIII/40
*   PMN = Griffith et al. 1994, 1995, Wright et al. 1994, 1996: Cat. VIII/38
*   S5  = Kuehr et al. 1981AJ.....86..854K or 1981, Cat. VIII/5
*Note (2): Notes as follows:
*   a = The source position is fitted to the local maximum of a 5x5 pixel grid as
*       there are two bright pixels within the Q-band beam, both of which are the
*       brightest in their 3x3 pixel neighborhood.
*   b = Indicates this source is included in the CRATES catalog (8.4GHz; Healey
*       et al. 2007, Cat. J/ApJS/171/61).
*   c = Indicates this source is included in the AT20G BSS catalog (Australia
*       Telescope 20GHz Survey; Massardi et al. 2008, Cat. J/MNRAS/384/775).
*   d = Indicates the source is in the three-year WMAP point source catalog
*       (Cat. J/A+A/508/107), but not in the five-year catalog.
*   e = Based on the SEDs of the 5GHz sources, this source has a different 5GHz
*       identification than noted in the WMAP five-year point source catalog.

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

C  Declarations for 'table2.dat'	! Unidentified point sources from five-year Q-, V-,
                            and W-band ILC (internal linear combination) map

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm
      real*8        RAdeg_1     ! (deg) Right Ascension J2000
      real*8        DEdeg_1     ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     RAh_1       ! (h) Hour of right ascension (J2000)
      integer*4     RAm_1       ! (min) Minute of right ascension (J2000)
      integer*4     RAs_1       ! (s) Second of right ascension (J2000)
      character*1   DE__1       ! Declination sign (J2000)
      integer*4     DEd_1       ! (deg) Degree of declination (J2000)
      integer*4     DEm_1       ! (arcmin) Arcminute of declination (J2000)
      real*4        S_Q_1       ! (Jy) WMAP Q channel (41GHz) radio flux density
      real*4        e_S_Q_1     ! (Jy) 1{sigma} error in S(Q)
      real*4        S_V_1       ! (Jy) WMAP V channel (61GHz) radio flux density
      real*4        e_S_V_1     ! (Jy) 1{sigma} error in S(V)
      real*4        S_W_1       ! (Jy) WMAP W channel (94GHz) radio flux density
      real*4        e_S_W_1     ! (Jy) 1{sigma} error in S(W)
      character*20  ID_         ! Possible radio companion (1)
      real*4        Dist_1      ! (arcmin) Angular distance to the radio source
      real*4        Flux        ! (Jy) Flux density of the possible companion (2)
      character*1   Note_1      ! [cd] Note (3)
*Note (1): The 5GHz radio source within 15' of our source position is given.
*     When a 5GHz ID is not available, the closest source from NVSS and
*     SUMSS survey is given.
*Note (2): The corresponding flux density of the possible radio companion at
*     4.85GHz for PMN and GB6 sources, 1.4GHz for NVSS sources, and 0.843GHz
*     for SUMSS sources.
*Note (3): Note as follows:
*   c = This source is in the CRATES catalog (Healey et al. 2007,
*       Cat. J/ApJS/171/61), with an 8.4GHz flux measured at 0.074Jy.
*   d = There are two pixels within one Q-band beam, both of which are the
*       brightest in their 3x3 pixel neighborhood. The location showing here is
*       fitted to the local maximum of a 5x5 pixel neighborhood including both
*       bright sources.

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

C  Loading file 'table1.dat'	! Identified point sources from five-year Q-, V-,
*                            and W-band ILC (internal linear combination) map

C  Format for file interpretation

    1 format(
     +  I2,1X,I2,1X,I2,1X,A1,I2,1X,I2,1X,A10,1X,A6,1X,F4.1,1X,F3.1,1X,
     +  F4.1,1X,F3.1,1X,F4.1,1X,F3.1,1X,A14,1X,F4.1,1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,367
        read(1,'(A86)')ar__
        read(ar__,1)
     +  RAh,RAm,RAs,DE_,DEd,DEm,WMAP,OType,S_Q,e_S_Q,S_V,e_S_V,S_W,
     +  e_S_W,v5GHzID,Dist,Note
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  RAh,RAm,RAs,DE_,DEd,DEm,WMAP,OType,S_Q,e_S_Q,S_V,e_S_V,S_W,
     +  e_S_W,v5GHzID,Dist,Note
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Unidentified point sources from five-year Q-, V-,
*                            and W-band ILC (internal linear combination) map

C  Format for file interpretation

    2 format(
     +  I2,1X,I2,1X,I2,1X,A1,I2,1X,I2,1X,F4.1,1X,F3.1,1X,F4.1,1X,F3.1,
     +  1X,F4.1,1X,F3.1,1X,A20,1X,F4.1,1X,F5.3,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,14
        read(1,'(A76)')ar__1
        read(ar__1,2)
     +  RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,S_Q_1,e_S_Q_1,S_V_1,
     +  e_S_V_1,S_W_1,e_S_W_1,ID_,Dist_1,Flux,Note_1
        RAdeg_1 = rNULL__
        DEdeg_1 = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
        if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
        if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
        if(DEd_1 .GE. 0) DEdeg_1=DEd_1
        if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
        if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,2)
     +  RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,S_Q_1,e_S_Q_1,S_V_1,
     +  e_S_V_1,S_W_1,e_S_W_1,ID_,Dist_1,Flux,Note_1
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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