Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/884/84 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-Oct-12
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/884/84 Infrared photometry of YSOs in AFGL 5157 (Dewangan+, 2019)
*================================================================================
*The cluster-forming site AFGL 5157: colliding filamentary clouds and star
*formation.
* Dewangan L.K.
* <Astrophys. J., 884, 84-84 (2019)>
* =2019ApJ...884...84D (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Near-infrared and Spitzer IRAC/GLIMPSE photometric
magnitudes of selected YSOs
integer*4 nr__
parameter (nr__=167) ! Number of records
character*62 ar__ ! Full-size record
C Position composed of: GLON GLAT
integer*4 Seq (nr__) ! [1/167] Running sequence number
* (<[D2019b] YSO NNN> in Simbad)
real*8 GLON (nr__) ! (deg) [176.26/176.7] Galactic longitude
real*4 GLAT (nr__) ! (deg) [0.02/0.5] Galactic latitude
real*4 Jmag (nr__) ! (mag) [10.88/20.41]? J-band magnitude
real*4 Hmag (nr__) ! (mag) [8.7/18.7]? H-band magnitude
real*4 Kmag (nr__) ! (mag) [7.27/17.6]? K band magnitude
real*4 v3_6mag (nr__) ! (mag) [8.86/17]? Spitzer/IRAC 3.6um band magnitude
real*4 v4_5mag (nr__) ! (mag) [8.36/15.3]? Spitzer/IRAC 4.5um band magnitude
real*4 v5_8mag (nr__) ! (mag) [9/14.8]? Spitzer/IRAC 5.8um band magnitude
real*4 v8_0mag (nr__) ! (mag) [8.3/14.1]? Spitzer/IRAC 8um band magnitude
character*2 Class (nr__) ! YSO class ("II", 156 occurrences or
* "I", 11 occurrences)
C=============================================================================
C Loading file 'table3.dat' ! Near-infrared and Spitzer IRAC/GLIMPSE photometric
* magnitudes of selected YSOs
C Format for file interpretation
1 format(
+ I3,1X,F7.3,1X,F5.3,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,
+ F5.2,1X,F5.2,1X,A2)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,167
read(1,'(A62)')ar__
read(ar__,1)
+ Seq(i__),GLON(i__),GLAT(i__),Jmag(i__),Hmag(i__),Kmag(i__),
+ v3_6mag(i__),v4_5mag(i__),v5_8mag(i__),v8_0mag(i__),Class(i__)
if(ar__(19:23) .EQ. '') Jmag(i__) = rNULL__
if(ar__(25:29) .EQ. '') Hmag(i__) = rNULL__
if(ar__(31:35) .EQ. '') Kmag(i__) = rNULL__
if(ar__(37:41) .EQ. '') v3_6mag(i__) = rNULL__
if(ar__(43:47) .EQ. '') v4_5mag(i__) = rNULL__
if(ar__(49:53) .EQ. '') v5_8mag(i__) = rNULL__
if(ar__(55:59) .EQ. '') v8_0mag(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ Seq(i__),GLON(i__),GLAT(i__),Jmag(i__),Hmag(i__),Kmag(i__),
+ v3_6mag(i__),v4_5mag(i__),v5_8mag(i__),v8_0mag(i__),Class(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end