Conversion of standardized ReadMe file for
file /./ftp/cats/J/BaltA/18/141 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-May-17
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/BaltA/18/141 North America/Pelican red clump giants ugriJHK (Straizys+, 2009)
*================================================================================
*Extinctions and distances of dark clouds from ugriJHK photometry of red clump
*giants: the North America and Pelican nebulae complex.
* Straizys V., Laugalys V.
* <Baltic Astron., 18, 141-159 (2009)>
* =2009BaltA..18..141S
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Stars in the NAP area with photometric
properties of red clump giants in the 2MASS,
IPHAS (r, i) and MegaCam (u, g) systems.
integer*4 nr__
parameter (nr__=104) ! Number of records
character*66 ar__ ! Full-size record
C J2000 position composed of: RAdeg DEdeg
integer*4 Seq (nr__) ! [1/104] Sequential number
character*1 n_Seq (nr__) ! [*] Note on [SL2009] (1)
real*8 RAdeg (nr__) ! (deg) Right ascension in decimal degrees (J2000)
real*4 DEdeg (nr__) ! (deg) Declination in decimal degrees (J2000)
real*4 Ksmag (nr__) ! (mag) 2MASS Ks magnitude
real*4 J_H (nr__) ! (mag) 2MASS J-H colour index
real*4 H_Ks (nr__) ! (mag) H-Ks colour index
real*4 u_g (nr__) ! (mag) MegaCam u-g colour index
real*4 g_r (nr__) ! (mag) MegaCam-IPHAS g-r colour index
real*4 r_i (nr__) ! (mag) IPHAS r-i colour index
real*4 AV (nr__) ! (mag) ? Absorption in V-band
real*4 Dist (nr__) ! (kpc) ? Distance
*Note (1): 17 stars with the numbers flagged with asterisks probably have
* luminosities lower than those of RCGs. For these stars the extinction
* and distance values are not given.
C=============================================================================
C Loading file 'table2.dat' ! Stars in the NAP area with photometric
* properties of red clump giants in the 2MASS,
* IPHAS (r, i) and MegaCam (u, g) systems.
C Format for file interpretation
1 format(
+ I3,A1,1X,F7.3,1X,F6.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,
+ 1X,F5.3,1X,F4.2,1X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,104
read(1,'(A66)')ar__
read(ar__,1)
+ Seq(i__),n_Seq(i__),RAdeg(i__),DEdeg(i__),Ksmag(i__),J_H(i__),
+ H_Ks(i__),u_g(i__),g_r(i__),r_i(i__),AV(i__),Dist(i__)
if(ar__(58:61) .EQ. '') AV(i__) = rNULL__
if(ar__(63:66) .EQ. '') Dist(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ Seq(i__),n_Seq(i__),RAdeg(i__),DEdeg(i__),Ksmag(i__),J_H(i__),
+ H_Ks(i__),u_g(i__),g_r(i__),r_i(i__),AV(i__),Dist(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end