FORTRAN Generation
(/./ftp/cats/J/ApJ/704/652)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/704/652 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/704/652   Radio transients in a 1.4GHz drift-scan survey  (Niinuma+, 2009)
*================================================================================
*Discovery of two radio transients at a high galactic latitude in a 1.4 GHz
*drift-scan survey.
*    Niinuma K., Daishido T., Matsumura N., Takefuji K., Kuniyoshi M., Asuma K.,
*    Kida S., Tanaka T., Aoki T., Ishikawa S., Hirano K., Uehara H., Nakagawa S.
*   <Astrophys. J., 704, 652-660 (2009)>
*   =2009ApJ...704..652N
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! List of galaxy/quasar counterparts to the WJN
                              radio transients

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

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

      character*10  WJN         ! WJN object name (JHHMM+DDMM) (8 sources) (1)
      character*24  Name        ! Counterpart name
      integer*4     RAh         ! (h) Counterpart hour of right ascension (J2000)
      integer*4     RAm         ! (min) Counterpart minute of right ascension (J2000)
      real*4        RAs         ! (s) Counterpart second of right ascension (J2000)
      character*1   DE_         ! Sign of declination (J2000)
      integer*4     DEd         ! (deg) Counterpart degree of declination (J2000)
      integer*4     DEm         ! (arcmin) Counterpart arcminute of declination (J2000)
      integer*4     DEs         ! (arcsec) Counterpart arcsecond of declination (J2000)
      character*3   Type        ! Object type (G or QSO)
      character*1   f_Type      ! [cd] Questionable type (2)
      real*8        z           ! ? Redshift
*Note (1): WJN J0445+4130 and J1043+4130 are reported by Matsumura et al.
*     2007AJ....133.1441M; WJN J0645+3200 and J1039+3200 are reported by
*     Kida et al. 2008NewA...13..519K; WJN J1443+3439 is reported by Niinuma
*     et al. 2007ApJ...657L..37N and WJN J1737+3808 by Kuniyoshi et al.
*     2007PASP..119..122K.
*     WJN J0951+3300 and J1039+3300 are from this paper.
*Note (2): Flag as follows:
*    c = Unclassified source (75%: G, 20%: QSO) in Flesch & Hardcastle (2004,
*        Cat. J/A+A/427/387; obsoleted by Cat. V/134).
*    d = This source is classified as a QSO with the probability of 95% in Flesch
*        & Hardcastle (2004, Cat. J/A+A/427/387; obsoleted by Cat. V/134).

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

C  Loading file 'table3.dat'	! List of galaxy/quasar counterparts to the WJN
*                              radio transients

C  Format for file interpretation

    1 format(
     +  4X,A10,1X,A24,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,A3,
     +  A1,1X,F8.6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,66
        read(1,'(A74)')ar__
        read(ar__,1)
     +  WJN,Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Type,f_Type,z
        if(ar__(67:74) .EQ. '') z = rNULL__
        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(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  WJN,Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Type,f_Type,z
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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