FORTRAN Generation
(/./home/cats/II/374)

Conversion of standardized ReadMe file for file /./home/cats/II/374 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. II/374   RGB photometric calibration of 213 million Gaia stars (Carrasco+, 2023)
*================================================================================
*Photometric Catalogue for Space and Ground Night-Time Remote-Sensing
*Calibration: RGB Synthetic Photometry from Gaia DR3 Spectrophotometry.
*     Carrasco J.M., Cardiel N., Masana E., Zamorano J., Pascual S.,
*     Sqnchez de Miguel A., Gonzalez R., Izquierdo J.
*    <Remote Sensing 15, 1767 (2023)>
*   =2023yCat.2374....0C
*   =https://doi.org/10.3390/rs15071767
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Catalogue with RGB magnitudes for Gaia DR3 objects

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

C  Position composed of: RAdeg DEdeg (Epoch=2016.0)
      integer*8     GaiaDR3     ! Source identifier in Gaia DR3
      real*8        RAdeg       ! (deg) Right Ascension (ICRS) at Ep=2016.0
      real*8        DEdeg       ! (deg) Declination (ICRS) at Ep=2016.0
      real*8        Brgb        ! (mag) ?=-99 Blue RGB estimate (1)
      real*8        Grgb        ! (mag) ?=-99 Green RGB estimate (1)
      real*8        Rrgb        ! (mag) ?=-99 Red RGB estimate (1)
      real*8        e_Brgb      ! (mag) ?=-99 Uncertainty in Brgb (1)
      real*8        e_Grgb      ! (mag) ?=-99 Uncertainty in Grgb (1)
      real*8        e_Rrgb      ! (mag) ?=-99 Uncertainty in Rrgb (1)
      integer*4     objtype     ! [0/3] Object type (2)
      integer*4     qlflag      ! [0/1] Quality flag (3)
*Note (1): The flag -99.0 is employed in this table to indicate missing values
*          in any of the RGB magnitudes or in their associated uncertainties.
*Note (2): Object type as follows:
*  1 = source flagged as non_single_star in Gaia
*  2 = object in in_qso_candidates in Gaia
*  3 = object in in_galaxy_candidates in Gaia
*  0 = none of the above
*Note (3): Quality flag as follows:
*  0 = reliable source
*  1 = potential problem (blending, contamination or non-stellar identification)

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

C  Loading file 'table2.dat'	! Catalogue with RGB magnitudes for Gaia DR3 objects

C  Format for file interpretation

    1 format(
     +  I19,1X,F15.11,1X,F15.11,1X,F7.3,1X,F7.3,1X,F7.3,1X,F7.3,1X,
     +  F7.3,1X,F7.3,1X,I1,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,213064002
        read(1,'(A103)')ar__
        read(ar__,1)
     +  GaiaDR3,RAdeg,DEdeg,Brgb,Grgb,Rrgb,e_Brgb,e_Grgb,e_Rrgb,
     +  objtype,qlflag
c    ..............Just test output...........
        write(6,1)
     +  GaiaDR3,RAdeg,DEdeg,Brgb,Grgb,Rrgb,e_Brgb,e_Grgb,e_Rrgb,
     +  objtype,qlflag
c    .......End.of.Just test output...........
      end do
      close(1)

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