Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/438/1163 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-15
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/438/1163 Catalogue of Open Cluster Data (COCD) (Kharchenko+, 2005)
*================================================================================
*Astrophysical parameters of Galactic open clusters.
* Kharchenko N.V., Piskunov A.E., Roeser S., Schilbach E., Scholz R.-D.
* <Astron. Astrophys. 438, 1163 (2005)>
* =2005A&A...438.1163K
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'cocd.dat' ! The Catalogue
integer*4 nr__
parameter (nr__=520) ! Number of records
character*205 ar__ ! Full-size record
C J2000.0 position composed of: RAhour DEdeg
integer*4 Seq (nr__) ! [1-520] Cluster sequential number
character*17 Name (nr__) ! NGC, IC or other common designation
character*17 OName (nr__) ! Other designation of the cluster
real*4 RAhour (nr__) ! (h) Adopted cluster center in RA J2000.0
real*4 DEdeg (nr__) ! (deg) Adopted cluster center in Dec J2000.0
real*4 GLON (nr__) ! (deg) Galactic longitude
real*4 GLAT (nr__) ! (deg) Galactic latitude
real*4 Rco (nr__) ! (deg) Angular radius of the core
real*4 Rcl (nr__) ! (deg) Angular radius of the cluster
real*4 RV (nr__) ! (km/s) ?=999.99 Average radial velocity
real*4 e_RV (nr__) ! (km/s) ?=0.00 Standard error in RV
integer*4 n_RV (nr__) ! ?=0 Number of stars used for RV calculation
real*4 pmRA (nr__) ! (mas/yr) Average proper motion in RA*cos(DE)
real*4 e_pmRA (nr__) ! (mas/yr) Standard error in pmRA
real*4 pmDE (nr__) ! (mas/yr) Average proper motion in DE
real*4 e_pmDE (nr__) ! (mas/yr) Standard error in pmDE
real*4 pmGLON (nr__) ! (mas/yr) Average proper motion in l*cos(b)
real*4 pmGLAT (nr__) ! (mas/yr) Average proper motion in b
integer*4 N1s (nr__) ! Number of the most probable (1 sigma) members
integer*4 Dist (nr__) ! (pc) Distance
real*4 E_B_V (nr__) ! (mag) Colour-excess
real*4 V_Mv (nr__) ! (mag) Apparent distance modulus
integer*4 r_Dist (nr__) ! *Source of distance and E(B-V)
real*4 logt (nr__) ! ([yr]) Logarithm of average age
integer*4 o_logt (nr__) ! *[-3,50] Number of stars used for logt
* calculation
real*4 RVref (nr__) ! (km/s) ?=999.99 RV from literature
real*4 e_RVref (nr__) ! (km/s) ?=0.00 Standard error in RVref
integer*4 r_RVref (nr__) ! *?=0 Source of RVref
real*4 logtref (nr__) ! ([yr]) ?=0.00 Average age from literature
integer*4 r_logtref (nr__) ! *?=0 Source of logtref
integer*4 n_Seq (nr__) ! [0,1] 1 indicates a note detailed in notes.dat
*Note on r_Dist, r_RVref, r_logtref:
* These flags have the following meaning:
* 1 = Dias et al., 2004, Open clusters and Galactic structure,
* Version 2.0", http://www.astro.iag.usp.br/~wilton
* 2 = Kharchenko et al., 2005
* 3 = Loktin, 2004, Private communication
* 4 = Lynga, 1987 "Catalogue of open clusters data. Fifth edition"
* 5 = Robichon et al., 1999, Cat. <J/A+A/345/471>
* 6 = Ruprecht et al., 1981, Cat <VII/31>
* 7 = de Zeeuw et al., 1999, Cat. <J/AJ/117/354>
*Note on o_logt:
* The negative numbers have the following meaning:
* -1 = when logt is found with help of a star located to the left of the blue
* limit of the evolved MS,
* -2 = when logt is found with help of a star located to the right of the red
* limit of the evolved MS,
* -3 = if logt has been set manually
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'cluster.dat' ! Cluster list
integer*4 nr__1
parameter (nr__1=520) ! Number of records
character*53 ar__1 ! Full-size record
C J2000.0 position composed of: RAhour DEdeg
integer*4 Seq_1 (nr__1) ! [1-520] Cluster sequential number
character*33 Name_1 (nr__1) ! NGC, IC or other common designation
real*8 RAhour_1 (nr__1) ! (h) Right Ascension J2000.0
real*8 DEdeg_1 (nr__1) ! (deg) Declination J2000.0
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'notes.dat' ! Individual notes
integer*4 nr__2
parameter (nr__2=488) ! Number of records
character*80 ar__2 ! Full-size record
integer*4 Seq_2 (nr__2) ! Cluster number
character*76 Note (nr__2) ! Text of the note
C=============================================================================
C Loading file 'cocd.dat' ! The Catalogue
C Format for file interpretation
1 format(
+ 1X,I3,1X,A17,1X,A17,2X,F6.3,1X,F6.2,1X,F6.2,1X,F6.2,2X,F4.2,
+ 2X,F4.2,2X,F6.2,2X,F5.2,2X,I2,2X,F6.2,2X,F4.2,2X,F6.2,2X,F4.2,
+ 2X,F6.2,2X,F6.2,1X,I3,2X,I4,2X,F4.2,1X,F5.2,1X,I1,2X,F4.2,2X,
+ I2,2X,F6.2,2X,F5.2,1X,I1,2X,F4.2,1X,I1,1X,I1)
C Effective file loading
open(unit=1,status='old',file=
+'cocd.dat')
write(6,*) '....Loading file: cocd.dat'
do i__=1,520
read(1,'(A205)')ar__
read(ar__,1)
+ Seq(i__),Name(i__),OName(i__),RAhour(i__),DEdeg(i__),
+ GLON(i__),GLAT(i__),Rco(i__),Rcl(i__),RV(i__),e_RV(i__),
+ n_RV(i__),pmRA(i__),e_pmRA(i__),pmDE(i__),e_pmDE(i__),
+ pmGLON(i__),pmGLAT(i__),N1s(i__),Dist(i__),E_B_V(i__),
+ V_Mv(i__),r_Dist(i__),logt(i__),o_logt(i__),RVref(i__),
+ e_RVref(i__),r_RVref(i__),logtref(i__),r_logtref(i__),
+ n_Seq(i__)
c ..............Just test output...........
write(6,1)
+ Seq(i__),Name(i__),OName(i__),RAhour(i__),DEdeg(i__),
+ GLON(i__),GLAT(i__),Rco(i__),Rcl(i__),RV(i__),e_RV(i__),
+ n_RV(i__),pmRA(i__),e_pmRA(i__),pmDE(i__),e_pmDE(i__),
+ pmGLON(i__),pmGLAT(i__),N1s(i__),Dist(i__),E_B_V(i__),
+ V_Mv(i__),r_Dist(i__),logt(i__),o_logt(i__),RVref(i__),
+ e_RVref(i__),r_RVref(i__),logtref(i__),r_logtref(i__),
+ n_Seq(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'cluster.dat' ! Cluster list
C Format for file interpretation
2 format(1X,I3,1X,A33,1X,F7.3,F7.2)
C Effective file loading
open(unit=1,status='old',file=
+'cluster.dat')
write(6,*) '....Loading file: cluster.dat'
do i__=1,520
read(1,'(A53)')ar__1
read(ar__1,2)Seq_1(i__),Name_1(i__),RAhour_1(i__),DEdeg_1(i__)
c ..............Just test output...........
write(6,2)Seq_1(i__),Name_1(i__),RAhour_1(i__),DEdeg_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'notes.dat' ! Individual notes
C Format for file interpretation
3 format(I3,1X,A76)
C Effective file loading
open(unit=1,status='old',file=
+'notes.dat')
write(6,*) '....Loading file: notes.dat'
do i__=1,488
read(1,'(A80)')ar__2
read(ar__2,3)Seq_2(i__),Note(i__)
c ..............Just test output...........
write(6,3)Seq_2(i__),Note(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end