Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/602/A112 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-14
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/602/A112 M31 PHAT star clusters (de Meulenaer+, 2017)
*================================================================================
*Deriving physical parameters of unresolved star clusters.
*V. M31 PHAT star clusters.
* de Meulenaer P., Stonkute R., Vansevicius V.
* <Astron. Astrophys. 602, A112 (2017)>
* =2017A&A...602A.112D (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Sample
integer*4 nr__
parameter (nr__=1363) ! Number of records
character*73 ar__ ! Full-size record
C J2000 position composed of: RAdeg DEdeg
integer*4 APID (nr__) ! Cluster identification number in PHAT
* (Johnson et al., 2015, Cat. J/ApJ/802/127)
real*8 RAdeg (nr__) ! (deg) Right ascension (J2000)
real*8 DEdeg (nr__) ! (deg) Declination (J2000)
real*4 F475W (nr__) ! (mag) PHAT magnitude in the passband F475W
real*4 logTs (nr__) ! ([yr]) Age, log10(t/yr), solar metallicity
real*4 logMs (nr__) ! ([Msun]) Mass, log10(M/M_{sun}_), solar metallicity
real*4 E_B_V_s (nr__) ! (mag) Colour excess, E(B-V), solar metallicity
real*4 logT (nr__) ! ([yr]) ? Age, log10(t/yr), free metallicity
real*4 logM (nr__) ! ([Msun]) ? Mass, log10(M/M_{sun}_), free metallicity
real*4 E_B_V (nr__) ! (mag) ? Colour excess, E(B-V), free metallicity
real*4 v_M_H_ (nr__) ! ? Metallicity, [M/H]
C=============================================================================
C Loading file 'table1.dat' ! Sample
C Format for file interpretation
1 format(I5,F10.6,F10.6,F6.2,F6.2,F6.2,F6.2,F6.2,F6.2,F6.2,F6.1)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,1363
read(1,'(A73)')ar__
read(ar__,1)
+ APID(i__),RAdeg(i__),DEdeg(i__),F475W(i__),logTs(i__),
+ logMs(i__),E_B_V_s(i__),logT(i__),logM(i__),E_B_V(i__),
+ v_M_H_(i__)
if(ar__(50:55) .EQ. '') logT(i__) = rNULL__
if(ar__(56:61) .EQ. '') logM(i__) = rNULL__
if(ar__(62:67) .EQ. '') E_B_V(i__) = rNULL__
if(ar__(68:73) .EQ. '') v_M_H_(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ APID(i__),RAdeg(i__),DEdeg(i__),F475W(i__),logTs(i__),
+ logMs(i__),E_B_V_s(i__),logT(i__),logM(i__),E_B_V(i__),
+ v_M_H_(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end