Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/419/139 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-Oct-11
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/419/139 JK photometry on 5 Galactic globular clusters (Valenti+, 2004)
*================================================================================
*Near-infrared photometry of five Galactic globular clusters.
* Valenti E., Ferraro F.R., Perina S., Origlia L.
* <Astron. Astrophys. 419, 139 (2004)>
* =2004A&A...419..139V
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'm3.dat' ! M3 IR catalog
integer*4 nr__
parameter (nr__=1414) ! Number of records
character*66 ar__ ! Full-size record
C J2000 position composed of: RAdeg DEdeg (Epoch=1989.0)
character*3 Cluster ! Cluster name (MNN)
integer*4 Seq ! Star sequential number in the cluster
real*4 Jmag ! (mag) J magnitude
real*4 Kmag ! (mag) K magnitude
real*4 e_Jmag ! (mag) Mean error on J magnitude
real*4 e_Kmag ! (mag) Mean error on K magnitude
real*8 RAdeg ! (deg) Right Ascension J2000, Epoch 1989.0 (degrees)
real*8 DEdeg ! (deg) Declination J2000, Epoch 1989.0 (degrees)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'm5.dat' ! M5 IR catalog
integer*4 nr__1
parameter (nr__1=882) ! Number of records
character*66 ar__1 ! Full-size record
C J2000 position composed of: RAdeg DEdeg (Epoch=1989.0)
character*3 Cluster_1 ! Cluster name (MNN)
integer*4 Seq_1 ! Star sequential number in the cluster
real*4 Jmag_1 ! (mag) J magnitude
real*4 Kmag_1 ! (mag) K magnitude
real*4 e_Jmag_1 ! (mag) Mean error on J magnitude
real*4 e_Kmag_1 ! (mag) Mean error on K magnitude
real*8 RAdeg_1 ! (deg) Right Ascension J2000, Epoch 1989.0 (degrees)
real*8 DEdeg_1 ! (deg) Declination J2000, Epoch 1989.0 (degrees)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'm10.dat' ! M10 IR catalog
integer*4 nr__2
parameter (nr__2=495) ! Number of records
character*66 ar__2 ! Full-size record
C J2000 position composed of: RAdeg DEdeg (Epoch=1989.0)
character*3 Cluster_2 ! Cluster name (MNN)
integer*4 Seq_2 ! Star sequential number in the cluster
real*4 Jmag_2 ! (mag) J magnitude
real*4 Kmag_2 ! (mag) K magnitude
real*4 e_Jmag_2 ! (mag) Mean error on J magnitude
real*4 e_Kmag_2 ! (mag) Mean error on K magnitude
real*8 RAdeg_2 ! (deg) Right Ascension J2000, Epoch 1989.0 (degrees)
real*8 DEdeg_2 ! (deg) Declination J2000, Epoch 1989.0 (degrees)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'm13.dat' ! M13 IR catalog
integer*4 nr__3
parameter (nr__3=818) ! Number of records
character*66 ar__3 ! Full-size record
C J2000 position composed of: RAdeg DEdeg (Epoch=1989.0)
character*3 Cluster_3 ! Cluster name (MNN)
integer*4 Seq_3 ! Star sequential number in the cluster
real*4 Jmag_3 ! (mag) J magnitude
real*4 Kmag_3 ! (mag) K magnitude
real*4 e_Jmag_3 ! (mag) Mean error on J magnitude
real*4 e_Kmag_3 ! (mag) Mean error on K magnitude
real*8 RAdeg_3 ! (deg) Right Ascension J2000, Epoch 1989.0 (degrees)
real*8 DEdeg_3 ! (deg) Declination J2000, Epoch 1989.0 (degrees)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'm92.dat' ! M92 IR catalog
integer*4 nr__4
parameter (nr__4=1250) ! Number of records
character*66 ar__4 ! Full-size record
C J2000 position composed of: RAdeg DEdeg (Epoch=1989.0)
character*3 Cluster_4 ! Cluster name (MNN)
integer*4 Seq_4 ! Star sequential number in the cluster
real*4 Jmag_4 ! (mag) J magnitude
real*4 Kmag_4 ! (mag) K magnitude
real*4 e_Jmag_4 ! (mag) Mean error on J magnitude
real*4 e_Kmag_4 ! (mag) Mean error on K magnitude
real*8 RAdeg_4 ! (deg) Right Ascension J2000, Epoch 1989.0 (degrees)
real*8 DEdeg_4 ! (deg) Declination J2000, Epoch 1989.0 (degrees)
C=============================================================================
C Loading file 'm3.dat' ! M3 IR catalog
C Format for file interpretation
1 format(
+ A3,1X,I4,1X,F6.3,1X,F6.3,2X,F5.3,2X,F5.3,2X,F13.9,3X,F12.9)
C Effective file loading
open(unit=1,status='old',file=
+'m3.dat')
write(6,*) '....Loading file: m3.dat'
do i__=1,1414
read(1,'(A66)')ar__
read(ar__,1)Cluster,Seq,Jmag,Kmag,e_Jmag,e_Kmag,RAdeg,DEdeg
c ..............Just test output...........
write(6,1)Cluster,Seq,Jmag,Kmag,e_Jmag,e_Kmag,RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'm5.dat' ! M5 IR catalog
C Format for file interpretation
2 format(
+ A3,1X,I4,1X,F6.3,1X,F6.3,2X,F5.3,2X,F5.3,2X,F13.9,3X,F12.9)
C Effective file loading
open(unit=1,status='old',file=
+'m5.dat')
write(6,*) '....Loading file: m5.dat'
do i__=1,882
read(1,'(A66)')ar__1
read(ar__1,2)
+ Cluster_1,Seq_1,Jmag_1,Kmag_1,e_Jmag_1,e_Kmag_1,RAdeg_1,
+ DEdeg_1
c ..............Just test output...........
write(6,2)
+ Cluster_1,Seq_1,Jmag_1,Kmag_1,e_Jmag_1,e_Kmag_1,RAdeg_1,
+ DEdeg_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'm10.dat' ! M10 IR catalog
C Format for file interpretation
3 format(
+ A3,1X,I4,1X,F6.3,1X,F6.3,2X,F5.3,2X,F5.3,2X,F13.9,3X,F12.9)
C Effective file loading
open(unit=1,status='old',file=
+'m10.dat')
write(6,*) '....Loading file: m10.dat'
do i__=1,495
read(1,'(A66)')ar__2
read(ar__2,3)
+ Cluster_2,Seq_2,Jmag_2,Kmag_2,e_Jmag_2,e_Kmag_2,RAdeg_2,
+ DEdeg_2
c ..............Just test output...........
write(6,3)
+ Cluster_2,Seq_2,Jmag_2,Kmag_2,e_Jmag_2,e_Kmag_2,RAdeg_2,
+ DEdeg_2
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'm13.dat' ! M13 IR catalog
C Format for file interpretation
4 format(
+ A3,1X,I4,1X,F6.3,1X,F6.3,2X,F5.3,2X,F5.3,2X,F13.9,3X,F12.9)
C Effective file loading
open(unit=1,status='old',file=
+'m13.dat')
write(6,*) '....Loading file: m13.dat'
do i__=1,818
read(1,'(A66)')ar__3
read(ar__3,4)
+ Cluster_3,Seq_3,Jmag_3,Kmag_3,e_Jmag_3,e_Kmag_3,RAdeg_3,
+ DEdeg_3
c ..............Just test output...........
write(6,4)
+ Cluster_3,Seq_3,Jmag_3,Kmag_3,e_Jmag_3,e_Kmag_3,RAdeg_3,
+ DEdeg_3
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'm92.dat' ! M92 IR catalog
C Format for file interpretation
5 format(
+ A3,1X,I4,1X,F6.3,1X,F6.3,2X,F5.3,2X,F5.3,2X,F13.9,3X,F12.9)
C Effective file loading
open(unit=1,status='old',file=
+'m92.dat')
write(6,*) '....Loading file: m92.dat'
do i__=1,1250
read(1,'(A66)')ar__4
read(ar__4,5)
+ Cluster_4,Seq_4,Jmag_4,Kmag_4,e_Jmag_4,e_Kmag_4,RAdeg_4,
+ DEdeg_4
c ..............Just test output...........
write(6,5)
+ Cluster_4,Seq_4,Jmag_4,Kmag_4,e_Jmag_4,e_Kmag_4,RAdeg_4,
+ DEdeg_4
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end