Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/131/2478 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-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/AJ/131/2478 M31 and M33 UBVRI photometry (Massey+, 2006)
*================================================================================
*A survey of Local Group galaxies currently forming stars.
*I. UBVRI photometry of stars in M31 and M33.
* Massey P., Olsen K.A.G., Hodge P.W., Strong S.B., Jacoby G.H.,
* Schlingman W., Smith R.C.
* <Astron. J., 131, 2478-2496 (2006)>
* =2006AJ....131.2478M
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! M31 Catalog
integer*4 nr__
parameter (nr__=371781) ! Number of records
character*145 ar__ ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg ! (deg) Right Ascension J2000
real*8 DEdeg ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*19 LGGS ! LGGS designation, JHHMMSS.ss+DDMMSS.s
integer*4 RAh ! (h) Right ascension (J2000)
integer*4 RAm ! (min) Right ascension (J2000)
real*4 RAs ! (s) [0/60] Right ascension (J2000)
character*1 DE_ ! Declination sign (J2000)
integer*4 DEd ! (deg) Declination (J2000)
integer*4 DEm ! (arcmin) Declination (J2000)
real*4 DEs ! (arcsec) [0/60] Declination (J2000)
real*4 Vmag ! (mag) Johnson V magnitude
real*4 e_Vmag ! (mag) V error
real*4 B_V ! (mag) Johnson B-V magnitude
real*4 e_B_V ! (mag) B-V error
real*4 U_B ! (mag) ?=99.999 Johnson U-B colour index
real*4 e_U_B ! (mag) ?=99.999 U-B error
real*4 V_R ! (mag) Kron-Cousins V-R colour index
real*4 e_V_R ! (mag) V-R error
real*4 R_I ! (mag) ?=99.999 Kron-Cousins R-I colour index
real*4 e_R_I ! (mag) ?=99.999 R-I error
integer*4 nV ! Number of V measurements
integer*4 nB ! Number of B measurements
integer*4 nU ! Number of U measurements
integer*4 nR ! Number of R measurements
integer*4 nI ! Number of I measurements
character*10 SpType ! MK Spectral Type (if available)
character*5 r_SpType ! References for spectal type, in refs.dat file
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table5.dat' ! M33 Catalog
integer*4 nr__1
parameter (nr__1=146622) ! Number of records
character*145 ar__1 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_1 ! (deg) Right Ascension J2000
real*8 DEdeg_1 ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*19 LGGS_1 ! LGGS designation, JHHMMSS.ss+DDMMSS.s
integer*4 RAh_1 ! (h) Right ascension (J2000)
integer*4 RAm_1 ! (min) Right ascension (J2000)
real*4 RAs_1 ! (s) [0/60] Right ascension (J2000)
character*1 DE__1 ! Declination sign (J2000)
integer*4 DEd_1 ! (deg) Declination (J2000)
integer*4 DEm_1 ! (arcmin) Declination (J2000)
real*4 DEs_1 ! (arcsec) [0/60] Declination (J2000)
real*4 Vmag_1 ! (mag) Johnson V magnitude
real*4 e_Vmag_1 ! (mag) V error
real*4 B_V_1 ! (mag) Johnson B-V magnitude
real*4 e_B_V_1 ! (mag) B-V error
real*4 U_B_1 ! (mag) ?=99.999 Johnson U-B colour index
real*4 e_U_B_1 ! (mag) ?=99.999 U-B error
real*4 V_R_1 ! (mag) Kron-Cousins V-R colour index
real*4 e_V_R_1 ! (mag) V-R error
real*4 R_I_1 ! (mag) ?=99.999 Kron-Cousins R-I colour index
real*4 e_R_I_1 ! (mag) ?=99.999 R-I error
integer*4 nV_1 ! Number of V measurements
integer*4 nB_1 ! Number of B measurements
integer*4 nU_1 ! Number of U measurements
integer*4 nR_1 ! Number of R measurements
integer*4 nI_1 ! Number of I measurements
character*10 SpType_1 ! MK Spectral Type (if available)
character*5 r_SpType_1 ! References for spectal type, in refs.dat file
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table8.dat' ! M31 members confirmed by spectroscopy
integer*4 nr__2
parameter (nr__2=172) ! Number of records
character*127 ar__2 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_2 ! (deg) Right Ascension J2000
real*8 DEdeg_2 ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*15 MType ! Spectral Classification (1)
character*19 LGGS_2 ! LGGS designation, JHHMMSS.ss+DDMMSS.s
integer*4 RAh_2 ! (h) Right ascension (J2000)
integer*4 RAm_2 ! (min) Right ascension (J2000)
real*4 RAs_2 ! (s) Right ascension (J2000)
character*1 DE__2 ! Declination (J2000)
integer*4 DEd_2 ! (deg) Declination (J2000)
integer*4 DEm_2 ! (arcmin) Declination (J2000)
real*4 DEs_2 ! (arcsec) Declination (J2000)
real*4 Vmag_2 ! (mag) Johnson V magnitude
real*4 B_V_2 ! (mag) Johnson B-V colour index
real*4 U_B_2 ! (mag) ?=99.99 Johnson U-B colour index
real*4 V_R_2 ! (mag) Kron-Cousins V-R magnitude
real*4 R_I_2 ! (mag) ?=99.99 Kron-Cousins R-I colour index
character*10 SpType_2 ! MK Spectral Type
character*1 Key ! [UM] Note (2)
character*16 CrossID ! Cross-identification (3)
character*5 r_SpType_2 ! References for spectral type, in refs.dat file
*Note (1): The membership of the "RSG Candidates" is uncertain.
*Note (2): Note as follows:
* U = Uncertain identification
* M = Multiple on a 1" spatial scale
*Note (3): Coordinates substantially improved for M33WR14, M33WR15,
* M33WR112, M33WR113, M33WR116, and M33WR117.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table9.dat' ! M33 members confirmed by spectroscopy
integer*4 nr__3
parameter (nr__3=361) ! Number of records
character*127 ar__3 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_3 ! (deg) Right Ascension J2000
real*8 DEdeg_3 ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*15 MType_1 ! Spectral Classification (1)
character*19 LGGS_3 ! LGGS designation, JHHMMSS.ss+DDMMSS.s
integer*4 RAh_3 ! (h) Right ascension (J2000)
integer*4 RAm_3 ! (min) Right ascension (J2000)
real*4 RAs_3 ! (s) Right ascension (J2000)
character*1 DE__3 ! Declination (J2000)
integer*4 DEd_3 ! (deg) Declination (J2000)
integer*4 DEm_3 ! (arcmin) Declination (J2000)
real*4 DEs_3 ! (arcsec) Declination (J2000)
real*4 Vmag_3 ! (mag) Johnson V magnitude
real*4 B_V_3 ! (mag) Johnson B-V colour index
real*4 U_B_3 ! (mag) ?=99.99 Johnson U-B colour index
real*4 V_R_3 ! (mag) Kron-Cousins V-R magnitude
real*4 R_I_3 ! (mag) ?=99.99 Kron-Cousins R-I colour index
character*10 SpType_3 ! MK Spectral Type
character*1 Key_1 ! [UM] Note (2)
character*16 CrossID_1 ! Cross-identification (3)
character*5 r_SpType_3 ! References for spectral type, in refs.dat file
*Note (1): The membership of the "RSG Candidates" is uncertain.
*Note (2): Note as follows:
* U = Uncertain identification
* M = Multiple on a 1" spatial scale
*Note (3): Coordinates substantially improved for M33WR14, M33WR15,
* M33WR112, M33WR113, M33WR116, and M33WR117.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'refs.dat' ! References
integer*4 nr__4
parameter (nr__4=22) ! Number of records
character*87 ar__4 ! Full-size record
integer*4 Ref ! Reference number
character*19 BibCode ! BibCode
character*21 Aut ! Author's name
character*43 Com ! Comments
C=============================================================================
C Loading file 'table4.dat' ! M31 Catalog
C Format for file interpretation
1 format(
+ A19,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F6.3,1X,
+ F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,
+ 1X,F6.3,1X,I2,1X,I2,1X,I2,1X,I2,1X,I2,1X,A10,1X,A5)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,371781
read(1,'(A145)')ar__
read(ar__,1)
+ LGGS,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,e_Vmag,B_V,e_B_V,U_B,
+ e_U_B,V_R,e_V_R,R_I,e_R_I,nV,nB,nU,nR,nI,SpType,r_SpType
RAdeg = rNULL__
DEdeg = rNULL__
c Derive coordinates RAdeg and DEdeg from input data
c (RAdeg and DEdeg are set to rNULL__ when unknown)
if(RAh .GT. -180) RAdeg=RAh*15.
if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
if(DEd .GE. 0) DEdeg=DEd
if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c ..............Just test output...........
write(6,1)
+ LGGS,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,e_Vmag,B_V,e_B_V,U_B,
+ e_U_B,V_R,e_V_R,R_I,e_R_I,nV,nB,nU,nR,nI,SpType,r_SpType
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table5.dat' ! M33 Catalog
C Format for file interpretation
2 format(
+ A19,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F6.3,1X,
+ F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,
+ 1X,F6.3,1X,I2,1X,I2,1X,I2,1X,I2,1X,I2,1X,A10,1X,A5)
C Effective file loading
open(unit=1,status='old',file=
+'table5.dat')
write(6,*) '....Loading file: table5.dat'
do i__=1,146622
read(1,'(A145)')ar__1
read(ar__1,2)
+ LGGS_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Vmag_1,
+ e_Vmag_1,B_V_1,e_B_V_1,U_B_1,e_U_B_1,V_R_1,e_V_R_1,R_I_1,
+ e_R_I_1,nV_1,nB_1,nU_1,nR_1,nI_1,SpType_1,r_SpType_1
RAdeg_1 = rNULL__
DEdeg_1 = rNULL__
c Derive coordinates RAdeg_1 and DEdeg_1 from input data
c (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
if(DEd_1 .GE. 0) DEdeg_1=DEd_1
if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c ..............Just test output...........
write(6,2)
+ LGGS_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Vmag_1,
+ e_Vmag_1,B_V_1,e_B_V_1,U_B_1,e_U_B_1,V_R_1,e_V_R_1,R_I_1,
+ e_R_I_1,nV_1,nB_1,nU_1,nR_1,nI_1,SpType_1,r_SpType_1
write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table8.dat' ! M31 members confirmed by spectroscopy
C Format for file interpretation
3 format(
+ A15,1X,A19,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,2X,F5.2,
+ 1X,F5.2,1X,F5.2,1X,F6.3,1X,F5.2,1X,A10,1X,A1,1X,A16,1X,A5)
C Effective file loading
open(unit=1,status='old',file=
+'table8.dat')
write(6,*) '....Loading file: table8.dat'
do i__=1,172
read(1,'(A127)')ar__2
read(ar__2,3)
+ MType,LGGS_2,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,Vmag_2,
+ B_V_2,U_B_2,V_R_2,R_I_2,SpType_2,Key,CrossID,r_SpType_2
RAdeg_2 = rNULL__
DEdeg_2 = rNULL__
c Derive coordinates RAdeg_2 and DEdeg_2 from input data
c (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown)
if(RAh_2 .GT. -180) RAdeg_2=RAh_2*15.
if(RAm_2 .GT. -180) RAdeg_2=RAdeg_2+RAm_2/4.
if(RAs_2 .GT. -180) RAdeg_2=RAdeg_2+RAs_2/240.
if(DEd_2 .GE. 0) DEdeg_2=DEd_2
if(DEm_2 .GE. 0) DEdeg_2=DEdeg_2+DEm_2/60.
if(DEs_2 .GE. 0) DEdeg_2=DEdeg_2+DEs_2/3600.
if(DE__2.EQ.'-'.AND.DEdeg_2.GE.0) DEdeg_2=-DEdeg_2
c ..............Just test output...........
write(6,3)
+ MType,LGGS_2,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,Vmag_2,
+ B_V_2,U_B_2,V_R_2,R_I_2,SpType_2,Key,CrossID,r_SpType_2
write(6,'(6H Pos: 2F8.4)') RAdeg_2,DEdeg_2
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table9.dat' ! M33 members confirmed by spectroscopy
C Format for file interpretation
4 format(
+ A15,1X,A19,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,2X,F5.2,
+ 1X,F5.2,1X,F5.2,1X,F6.3,1X,F5.2,1X,A10,1X,A1,1X,A16,1X,A5)
C Effective file loading
open(unit=1,status='old',file=
+'table9.dat')
write(6,*) '....Loading file: table9.dat'
do i__=1,361
read(1,'(A127)')ar__3
read(ar__3,4)
+ MType_1,LGGS_3,RAh_3,RAm_3,RAs_3,DE__3,DEd_3,DEm_3,DEs_3,
+ Vmag_3,B_V_3,U_B_3,V_R_3,R_I_3,SpType_3,Key_1,CrossID_1,
+ r_SpType_3
RAdeg_3 = rNULL__
DEdeg_3 = rNULL__
c Derive coordinates RAdeg_3 and DEdeg_3 from input data
c (RAdeg_3 and DEdeg_3 are set to rNULL__ when unknown)
if(RAh_3 .GT. -180) RAdeg_3=RAh_3*15.
if(RAm_3 .GT. -180) RAdeg_3=RAdeg_3+RAm_3/4.
if(RAs_3 .GT. -180) RAdeg_3=RAdeg_3+RAs_3/240.
if(DEd_3 .GE. 0) DEdeg_3=DEd_3
if(DEm_3 .GE. 0) DEdeg_3=DEdeg_3+DEm_3/60.
if(DEs_3 .GE. 0) DEdeg_3=DEdeg_3+DEs_3/3600.
if(DE__3.EQ.'-'.AND.DEdeg_3.GE.0) DEdeg_3=-DEdeg_3
c ..............Just test output...........
write(6,4)
+ MType_1,LGGS_3,RAh_3,RAm_3,RAs_3,DE__3,DEd_3,DEm_3,DEs_3,
+ Vmag_3,B_V_3,U_B_3,V_R_3,R_I_3,SpType_3,Key_1,CrossID_1,
+ r_SpType_3
write(6,'(6H Pos: 2F8.4)') RAdeg_3,DEdeg_3
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'refs.dat' ! References
C Format for file interpretation
5 format(I2,1X,A19,1X,A21,A43)
C Effective file loading
open(unit=1,status='old',file=
+'refs.dat')
write(6,*) '....Loading file: refs.dat'
do i__=1,22
read(1,'(A87)')ar__4
read(ar__4,5)Ref,BibCode,Aut,Com
c ..............Just test output...........
write(6,5)Ref,BibCode,Aut,Com
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end