FORTRAN Generation
(/./ftp/cats/J/AJ/151/79)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/151/79 into FORTRAN code for loading all data files into arrays.

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-Jun-10
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/AJ/151/79   Radio fluxes of 195 ICRF2-Gaia transfer sources   (Le Bail+, 2016)
*================================================================================
*IVS observation of ICRF2-Gaia transfer sources.
*    Le Bail K., Gipson J.M., Gordon D., MacMillan D.S., Behrend D.,
*    Thomas C.C., Bolotin S., Himwich W.E., Baver K.D., Corey B.E., Titus M.,
*    Bourda G., Charlot P., Collioud A.
*   <Astron. J., 151, 79 (2016)>
*   =2016AJ....151...79L    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! *Candidate ICRF2-Gaia transfer sources to align
                                 the radio catalog and the Gaia catalog

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

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

      character*8   IVS        (nr__) ! International Very Long Baseline
*                                    Interferometry (VLBI) Service (IVS)
*                                    identifier (HHMM+DDd, B1950)
      character*10  IAU        (nr__) ! IAU identifier (JHHMM+DDMM format)
      integer*4     RAh        (nr__) ! (h) Hour of Right Ascension (J2000) (1)
      integer*4     RAm        (nr__) ! (min) Minute of Right Ascension (J2000) (1)
      real*8        RAs        (nr__) ! (s) Second of Right Ascension (J2000) (1)
      character*1   DE_        (nr__) ! Sign of the Declination (J2000) (1)
      integer*4     DEd        (nr__) ! (deg) Degree of Declination (J2000) (1)
      integer*4     DEm        (nr__) ! (arcmin) Arcminute of Declination (J2000) (1)
      real*8        DEs        (nr__) ! (arcsec) Arcsecond of Declination (J2000) (1)
      integer*4     e_RAs      (nr__) ! (uarcsec) [2/1015] Formal error in RAs (2)
      integer*4     e_DEs      (nr__) ! (uarcsec) [2/1473] Formal error in DEs (2)
      integer*4     Nexp       (nr__) ! [10/4592] Number of VLBI sessions
      integer*4     Nobs       (nr__) ! [126/401647] Number of VLBI observations
      real*4        X_GSFC     (nr__) ! (Jy) [0.03/10] Goddard Space Flight Center (GSFC)
*                                    IVS Analysis Center X-band flux density (3)
      real*4        S_GSFC     (nr__) ! (Jy) [0.03/10] Goddard Space Flight Center (GSFC)
*                                    IVS Analysis Center S-band flux density (3)
      real*4        X_BVID     (nr__) ! (Jy) [0.07/13.4]? Bordeaux VLBI Image Database
*                                    (BVID) X-band flux density (3)
      real*4        S_BVID     (nr__) ! (Jy) [0.04/10.73]? Bordeaux VLBI Image Database
*                                    (BVID) S-band flux density (3)
      integer*4     Cat        (nr__) ! [1/4] Initial Gaia category (4)
*Note (1): The coordinates are from the latest version of the Goddard Space
*     Flight Center (GSFC) solution 2015a in International Earth Rotation and
*     Reference Systems Service (IERS) format (status: 01 September 1 2015).
*Note (2): The uncertainties for e_RAs are not corrected from cos(DE). The formal
*     errors in the table come directly from the GSFC solution and are likely to
*     optimistic. A more realistic estimate would be obtained by applying a scale
*     factor of 1.5 to the formal uncertainties followed by a root-sum-square
*     increase of 40 micro-arcseconds of error in quadrature to the quoted
*     values. This was the procedure adopted for ICRF2 (Fey et al. 2009,
*     http://www.iers.org/TN35; Fey et al. 2015, cat. J/AJ/150/58).
*Note (3): The flux values are from sked flux catalog
*     (ftp://gemini.gsfc.nasa.gov/pub/sked/catalogs/flux.cat;
*     status: 28 August 2015) and from the Bordeaux Very Long Baseline
*     Interferometry (VLBI) Image Database (BVID; Collioud & Charlot 2009 Proc.
*     19th EVGA Working Meeting, European VLBI for Geodesy and Astrometry ed
*     G. Bourda, P. Charlot and A. Collioud 19;  status: 11 September 2015).
*     The fluxes are computed from data available through 2015 August 27 for the
*     sked catalog and through 2013 July 24 for BVID (see Section 4.3).
*Note (4): The categories are defined as below:
*     1 = One of 89 sources in the IVS source monitoring program that were
*         sufficiently observed;
*     2 = One of 66 sources in the IVS source monitoring program that were not
*         sufficiently observed;
*     3 = One of 16 sources not in the IVS source monitoring program but with a
*         sufficient position accuracy;
*     4 = One of 24 sources not in the IVS source monitoring program and with
*         poor position accuracy.

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

C  Loading file 'table1.dat'	! *Candidate ICRF2-Gaia transfer sources to align
*                                 the radio catalog and the Gaia catalog

C  Format for file interpretation

    1 format(
     +  A8,1X,A10,1X,I2,1X,I2,1X,F10.7,1X,A1,I2,1X,I2,1X,F10.7,1X,I4,
     +  1X,I4,1X,I4,1X,I6,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,195
        read(1,'(A102)')ar__
        read(ar__,1)
     +  IVS(i__),IAU(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),e_RAs(i__),e_DEs(i__),Nexp(i__),
     +  Nobs(i__),X_GSFC(i__),S_GSFC(i__),X_BVID(i__),S_BVID(i__),
     +  Cat(i__)
        if(ar__(90:94) .EQ. '') X_BVID(i__) = rNULL__
        if(ar__(96:100) .EQ. '') S_BVID(i__) = rNULL__
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  IVS(i__),IAU(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),e_RAs(i__),e_DEs(i__),Nexp(i__),
     +  Nobs(i__),X_GSFC(i__),S_GSFC(i__),X_BVID(i__),S_BVID(i__),
     +  Cat(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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