Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/131/2478 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-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 (nr__) ! (deg) Right Ascension J2000
real*8 DEdeg (nr__) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*19 LGGS (nr__) ! LGGS designation, JHHMMSS.ss+DDMMSS.s
integer*4 RAh (nr__) ! (h) Right ascension (J2000)
integer*4 RAm (nr__) ! (min) Right ascension (J2000)
real*4 RAs (nr__) ! (s) [0/60] Right ascension (J2000)
character*1 DE_ (nr__) ! Declination sign (J2000)
integer*4 DEd (nr__) ! (deg) Declination (J2000)
integer*4 DEm (nr__) ! (arcmin) Declination (J2000)
real*4 DEs (nr__) ! (arcsec) [0/60] Declination (J2000)
real*4 Vmag (nr__) ! (mag) Johnson V magnitude
real*4 e_Vmag (nr__) ! (mag) V error
real*4 B_V (nr__) ! (mag) Johnson B-V magnitude
real*4 e_B_V (nr__) ! (mag) B-V error
real*4 U_B (nr__) ! (mag) ?=99.999 Johnson U-B colour index
real*4 e_U_B (nr__) ! (mag) ?=99.999 U-B error
real*4 V_R (nr__) ! (mag) Kron-Cousins V-R colour index
real*4 e_V_R (nr__) ! (mag) V-R error
real*4 R_I (nr__) ! (mag) ?=99.999 Kron-Cousins R-I colour index
real*4 e_R_I (nr__) ! (mag) ?=99.999 R-I error
integer*4 nV (nr__) ! Number of V measurements
integer*4 nB (nr__) ! Number of B measurements
integer*4 nU (nr__) ! Number of U measurements
integer*4 nR (nr__) ! Number of R measurements
integer*4 nI (nr__) ! Number of I measurements
character*10 SpType (nr__) ! MK Spectral Type (if available)
character*5 r_SpType (nr__) ! 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 (nr__1) ! (deg) Right Ascension J2000
real*8 DEdeg_1 (nr__1) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*19 LGGS_1 (nr__1) ! LGGS designation, JHHMMSS.ss+DDMMSS.s
integer*4 RAh_1 (nr__1) ! (h) Right ascension (J2000)
integer*4 RAm_1 (nr__1) ! (min) Right ascension (J2000)
real*4 RAs_1 (nr__1) ! (s) [0/60] Right ascension (J2000)
character*1 DE__1 (nr__1) ! Declination sign (J2000)
integer*4 DEd_1 (nr__1) ! (deg) Declination (J2000)
integer*4 DEm_1 (nr__1) ! (arcmin) Declination (J2000)
real*4 DEs_1 (nr__1) ! (arcsec) [0/60] Declination (J2000)
real*4 Vmag_1 (nr__1) ! (mag) Johnson V magnitude
real*4 e_Vmag_1 (nr__1) ! (mag) V error
real*4 B_V_1 (nr__1) ! (mag) Johnson B-V magnitude
real*4 e_B_V_1 (nr__1) ! (mag) B-V error
real*4 U_B_1 (nr__1) ! (mag) ?=99.999 Johnson U-B colour index
real*4 e_U_B_1 (nr__1) ! (mag) ?=99.999 U-B error
real*4 V_R_1 (nr__1) ! (mag) Kron-Cousins V-R colour index
real*4 e_V_R_1 (nr__1) ! (mag) V-R error
real*4 R_I_1 (nr__1) ! (mag) ?=99.999 Kron-Cousins R-I colour index
real*4 e_R_I_1 (nr__1) ! (mag) ?=99.999 R-I error
integer*4 nV_1 (nr__1) ! Number of V measurements
integer*4 nB_1 (nr__1) ! Number of B measurements
integer*4 nU_1 (nr__1) ! Number of U measurements
integer*4 nR_1 (nr__1) ! Number of R measurements
integer*4 nI_1 (nr__1) ! Number of I measurements
character*10 SpType_1 (nr__1) ! MK Spectral Type (if available)
character*5 r_SpType_1 (nr__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 (nr__2) ! (deg) Right Ascension J2000
real*8 DEdeg_2 (nr__2) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*15 MType (nr__2) ! Spectral Classification (1)
character*19 LGGS_2 (nr__2) ! LGGS designation, JHHMMSS.ss+DDMMSS.s
integer*4 RAh_2 (nr__2) ! (h) Right ascension (J2000)
integer*4 RAm_2 (nr__2) ! (min) Right ascension (J2000)
real*4 RAs_2 (nr__2) ! (s) Right ascension (J2000)
character*1 DE__2 (nr__2) ! Declination (J2000)
integer*4 DEd_2 (nr__2) ! (deg) Declination (J2000)
integer*4 DEm_2 (nr__2) ! (arcmin) Declination (J2000)
real*4 DEs_2 (nr__2) ! (arcsec) Declination (J2000)
real*4 Vmag_2 (nr__2) ! (mag) Johnson V magnitude
real*4 B_V_2 (nr__2) ! (mag) Johnson B-V colour index
real*4 U_B_2 (nr__2) ! (mag) ?=99.99 Johnson U-B colour index
real*4 V_R_2 (nr__2) ! (mag) Kron-Cousins V-R magnitude
real*4 R_I_2 (nr__2) ! (mag) ?=99.99 Kron-Cousins R-I colour index
character*10 SpType_2 (nr__2) ! MK Spectral Type
character*1 Key (nr__2) ! [UM] Note (2)
character*16 CrossID (nr__2) ! Cross-identification (3)
character*5 r_SpType_2 (nr__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 (nr__3) ! (deg) Right Ascension J2000
real*8 DEdeg_3 (nr__3) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*15 MType_1 (nr__3) ! Spectral Classification (1)
character*19 LGGS_3 (nr__3) ! LGGS designation, JHHMMSS.ss+DDMMSS.s
integer*4 RAh_3 (nr__3) ! (h) Right ascension (J2000)
integer*4 RAm_3 (nr__3) ! (min) Right ascension (J2000)
real*4 RAs_3 (nr__3) ! (s) Right ascension (J2000)
character*1 DE__3 (nr__3) ! Declination (J2000)
integer*4 DEd_3 (nr__3) ! (deg) Declination (J2000)
integer*4 DEm_3 (nr__3) ! (arcmin) Declination (J2000)
real*4 DEs_3 (nr__3) ! (arcsec) Declination (J2000)
real*4 Vmag_3 (nr__3) ! (mag) Johnson V magnitude
real*4 B_V_3 (nr__3) ! (mag) Johnson B-V colour index
real*4 U_B_3 (nr__3) ! (mag) ?=99.99 Johnson U-B colour index
real*4 V_R_3 (nr__3) ! (mag) Kron-Cousins V-R magnitude
real*4 R_I_3 (nr__3) ! (mag) ?=99.99 Kron-Cousins R-I colour index
character*10 SpType_3 (nr__3) ! MK Spectral Type
character*1 Key_1 (nr__3) ! [UM] Note (2)
character*16 CrossID_1 (nr__3) ! Cross-identification (3)
character*5 r_SpType_3 (nr__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 (nr__4) ! Reference number
character*19 BibCode (nr__4) ! BibCode
character*21 Aut (nr__4) ! Author's name
character*43 Com (nr__4) ! 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(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),Vmag(i__),e_Vmag(i__),B_V(i__),e_B_V(i__),
+ U_B(i__),e_U_B(i__),V_R(i__),e_V_R(i__),R_I(i__),e_R_I(i__),
+ nV(i__),nB(i__),nU(i__),nR(i__),nI(i__),SpType(i__),
+ r_SpType(i__)
RAdeg(i__) = rNULL__
DEdeg(i__) = rNULL__
c Derive coordinates RAdeg and DEdeg from input data
c (RAdeg and DEdeg are set to rNULL__ when unknown)
if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c ..............Just test output...........
write(6,1)
+ LGGS(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),Vmag(i__),e_Vmag(i__),B_V(i__),e_B_V(i__),
+ U_B(i__),e_U_B(i__),V_R(i__),e_V_R(i__),R_I(i__),e_R_I(i__),
+ nV(i__),nB(i__),nU(i__),nR(i__),nI(i__),SpType(i__),
+ r_SpType(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
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(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
+ DEd_1(i__),DEm_1(i__),DEs_1(i__),Vmag_1(i__),e_Vmag_1(i__),
+ B_V_1(i__),e_B_V_1(i__),U_B_1(i__),e_U_B_1(i__),V_R_1(i__),
+ e_V_R_1(i__),R_I_1(i__),e_R_I_1(i__),nV_1(i__),nB_1(i__),
+ nU_1(i__),nR_1(i__),nI_1(i__),SpType_1(i__),r_SpType_1(i__)
RAdeg_1(i__) = rNULL__
DEdeg_1(i__) = 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(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c ..............Just test output...........
write(6,2)
+ LGGS_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
+ DEd_1(i__),DEm_1(i__),DEs_1(i__),Vmag_1(i__),e_Vmag_1(i__),
+ B_V_1(i__),e_B_V_1(i__),U_B_1(i__),e_U_B_1(i__),V_R_1(i__),
+ e_V_R_1(i__),R_I_1(i__),e_R_I_1(i__),nV_1(i__),nB_1(i__),
+ nU_1(i__),nR_1(i__),nI_1(i__),SpType_1(i__),r_SpType_1(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
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(i__),LGGS_2(i__),RAh_2(i__),RAm_2(i__),RAs_2(i__),
+ DE__2(i__),DEd_2(i__),DEm_2(i__),DEs_2(i__),Vmag_2(i__),
+ B_V_2(i__),U_B_2(i__),V_R_2(i__),R_I_2(i__),SpType_2(i__),
+ Key(i__),CrossID(i__),r_SpType_2(i__)
RAdeg_2(i__) = rNULL__
DEdeg_2(i__) = 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(i__) .GT. -180) RAdeg_2(i__)=RAh_2(i__)*15.
if(RAm_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAm_2(i__)/4.
if(RAs_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAs_2(i__)/240.
if(DEd_2(i__) .GE. 0) DEdeg_2(i__)=DEd_2(i__)
if(DEm_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEm_2(i__)/60.
if(DEs_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEs_2(i__)/3600.
if(DE__2(i__).EQ.'-'.AND.DEdeg_2(i__).GE.0) DEdeg_2(i__)=-DEdeg_2(i__)
c ..............Just test output...........
write(6,3)
+ MType(i__),LGGS_2(i__),RAh_2(i__),RAm_2(i__),RAs_2(i__),
+ DE__2(i__),DEd_2(i__),DEm_2(i__),DEs_2(i__),Vmag_2(i__),
+ B_V_2(i__),U_B_2(i__),V_R_2(i__),R_I_2(i__),SpType_2(i__),
+ Key(i__),CrossID(i__),r_SpType_2(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg_2(i__),DEdeg_2(i__)
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(i__),LGGS_3(i__),RAh_3(i__),RAm_3(i__),RAs_3(i__),
+ DE__3(i__),DEd_3(i__),DEm_3(i__),DEs_3(i__),Vmag_3(i__),
+ B_V_3(i__),U_B_3(i__),V_R_3(i__),R_I_3(i__),SpType_3(i__),
+ Key_1(i__),CrossID_1(i__),r_SpType_3(i__)
RAdeg_3(i__) = rNULL__
DEdeg_3(i__) = 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(i__) .GT. -180) RAdeg_3(i__)=RAh_3(i__)*15.
if(RAm_3(i__) .GT. -180) RAdeg_3(i__)=RAdeg_3(i__)+RAm_3(i__)/4.
if(RAs_3(i__) .GT. -180) RAdeg_3(i__)=RAdeg_3(i__)+RAs_3(i__)/240.
if(DEd_3(i__) .GE. 0) DEdeg_3(i__)=DEd_3(i__)
if(DEm_3(i__) .GE. 0) DEdeg_3(i__)=DEdeg_3(i__)+DEm_3(i__)/60.
if(DEs_3(i__) .GE. 0) DEdeg_3(i__)=DEdeg_3(i__)+DEs_3(i__)/3600.
if(DE__3(i__).EQ.'-'.AND.DEdeg_3(i__).GE.0) DEdeg_3(i__)=-DEdeg_3(i__)
c ..............Just test output...........
write(6,4)
+ MType_1(i__),LGGS_3(i__),RAh_3(i__),RAm_3(i__),RAs_3(i__),
+ DE__3(i__),DEd_3(i__),DEm_3(i__),DEs_3(i__),Vmag_3(i__),
+ B_V_3(i__),U_B_3(i__),V_R_3(i__),R_I_3(i__),SpType_3(i__),
+ Key_1(i__),CrossID_1(i__),r_SpType_3(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg_3(i__),DEdeg_3(i__)
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(i__),BibCode(i__),Aut(i__),Com(i__)
c ..............Just test output...........
write(6,5)Ref(i__),BibCode(i__),Aut(i__),Com(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end