FORTRAN Generation
(/./home/cats/J/A_A/618/A144)

Conversion of standardized ReadMe file for file /./home/cats/J/A_A/618/A144 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 2026-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__=--2147483648.)  	! NULL real number
      parameter  (iNULL__=(-2147483647-1))	! NULL int  number
      integer    idig			! testing NULL number

C=============================================================================
Cat. J/A+A/618/A144     QSO candidates catalog with APOP & ALLWISE (QCC) (Guo+, 2018)
*================================================================================
*Identifying quasars with astrometric and photometric methods from
*APOP and ALLWISE.
*    Guo S., Qi Z., Liao S., Cao Z., Lattanzi M.G., Bucciarelli B., Tang Z.,
*    Yan Q.-Z.
*    <Astron. Astrophys. 618, A144 (2018)>
*    =2018A&A...618A.144G        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'qcc.dat'	! Quasar candidates

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

C  J2000.0 position composed of: RAdeg DEdeg
      integer*4     ID1         ! ID1 of the unique union id (ID1,ID2) (1)
      integer*4     ID2         ! ID2 of the unique union id (ID1,ID2) (1)
      real*8        RAdeg       ! (deg) Right ascension (J2000.0) (2)
      real*8        DEdeg       ! (deg) Declination (J2000.0) (2)
      integer*4     e_RAdeg     ! (mas) Error of right ascension
      integer*4     e_DEdeg     ! (mas) Error of declination
      real*4        pmRA        ! (mas/yr) Proper motion in RA direction
      real*4        pmDE        ! (mas/yr) Proper motion in DEcdirection
      real*4        e_pmRA      ! (mas/yr) Error of proper motion in ra direction
      real*4        e_pmDE      ! (mas/yr) Error of proper motion in dec direction
      real*8        Rmag        ! (mag) ?=-32.768 R photographic magnitude (3)
      real*8        Bmag        ! (mag) ?=-32.768 B photographic magnitude (3)
      real*8        Vmag        ! (mag) ?=-32.768 V photographic magnitude (3)
      real*8        Imag        ! (mag) ?=-32.768 I photographic magnitude (3)
      real*8        Jmag        ! (mag) ?=-32.768 J photographic magnitude (3)
      real*8        Hmag        ! (mag) ?=-32.768 H photographic magnitude (3)
      real*8        Kmag        ! (mag) ?=-32.768 K photographic magnitude (3)
      real*8        W1mag       ! (mag) ?=-32.768 W1 photographic magnitude (3)
      real*8        W2mag       ! (mag) ?=-32.768 W2 photographic magnitude (3)
      real*8        W3mag       ! (mag) ?=-32.768 W3 photographic magnitude (3)
      real*8        W4mag       ! (mag) ?=-32.768 W4 photographic magnitude (3)
      character*1   QSOflag     ! [sgo] QSO in SDSS (s) or in LAMOST (g) (4)
      real*8        z           ! ?=-9.9 Redshift from SDSS and LAMOST,
      character*1   zflag       ! [sgo] Original of redshift:
*                                    SDSS (s) or LAMOST (g) (4)
      character*1   Morflag     ! [pe] The classification codes are
*                                     'p' = point-like or 'e' = extend source (5)
*Note (1): The combination of ID1 and ID2 is the source unique identifier for
*  object in the QCC.
*  Here the ID1 is MasterID and the ID2 is Running_Number in HEALPix
*  (the Hierarchical, Equal Area, and iso-Latitude Pixelisation of the sphere)
*  system.
*Note (2): The positions and proper motions are extracted directly from the
*  catalog of absolute proper motions outside The galactic plane (APOP),
*  (APOP; Qi et al. 2012, J/AJ/150/A137).
*Note (3): The photographic magnitudes (R, B, V, I, J, H, K) are taken from APOP.
* The W1, W2, W3, W4 magnitudes are extracted from ALLWISE (AllWISE Data
*  Release, Cutri R.M., et al., IPAC/Caltech (2013, Cat. II/328).
*  Default values for other cases(null) = -32.726.
*Note (4): Codes as follows:
*  s = SDSS
*  g = LAMOST
*  o = default values for other cases
*Note (5): The Morflag in APOP is extracted from GSC2.3, as follows:
*  p = stellar objects in GSC2.3
*  e = nonstellar objects in GSC2.3
*
*  There are many faint point-like sources in nonstellar classification.
*  This flag should be used carefully.

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

C  Loading file 'qcc.dat'	! Quasar candidates

C  Format for file interpretation

    1 format(
     +  I6,1X,I6,1X,F14.10,1X,F14.10,1X,I3,1X,I3,1X,F6.2,1X,F6.2,2X,
     +  F5.2,2X,F5.2,1X,F7.3,1X,F7.3,1X,F7.3,1X,F7.3,1X,F7.3,1X,F7.3,
     +  1X,F7.3,1X,F7.3,1X,F7.3,1X,F7.3,1X,F7.3,1X,A1,2X,F7.4,1X,A1,
     +  1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'qcc.dat')
      write(6,*) '....Loading file: qcc.dat'
      do i__=1,662753
        read(1,'(A182)')ar__
        read(ar__,1)
     +  ID1,ID2,RAdeg,DEdeg,e_RAdeg,e_DEdeg,pmRA,pmDE,e_pmRA,e_pmDE,
     +  Rmag,Bmag,Vmag,Imag,Jmag,Hmag,Kmag,W1mag,W2mag,W3mag,W4mag,
     +  QSOflag,z,zflag,Morflag
c    ..............Just test output...........
        write(6,1)
     +  ID1,ID2,RAdeg,DEdeg,e_RAdeg,e_DEdeg,pmRA,pmDE,e_pmRA,e_pmDE,
     +  Rmag,Bmag,Vmag,Imag,Jmag,Hmag,Kmag,W1mag,W2mag,W3mag,W4mag,
     +  QSOflag,z,zflag,Morflag
c    .......End.of.Just test output...........
      end do
      close(1)

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