Conversion of standardized ReadMe file for
file /./home/cats/J/AJ/152/62 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-May-10
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/152/62 Revised LGGS UBVRI photometry of M31 and M33 stars (Massey+, 2016)
*================================================================================
*A spectroscopic survey of massive stars in M31 and M33.
* Massey P., Neugent K.F., Smart B.M.
* <Astron. J., 152, 62 (2016)>
* =2016AJ....152...62M (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! M31 candidate luminous blue variables (cLBVs)
integer*4 nr__
parameter (nr__=25) ! Number of records
character*88 ar__ ! Full-size record
character*19 LGGS ! Star designation in the Local Group Galaxy
* Survey (LGGS) (JHHMMSS.ss+DDMMSS.s format)
real*4 Vmag ! (mag) [14.8/20.4] The V-band magnitude
real*4 B_V ! (mag) [-0.13/0.99] The B-V color index
real*4 U_B ! (mag) [-1.24/-0.08] The U-B color index
real*4 V_R ! (mag) [-0.06/1.19] The V-R color index
real*4 R_I ! (mag) [-0.51/0.77]?=99.999 The R-I color index
character*1 Cwd ! Index indicating the degree of crowding
* (I<5%, C=20-80%, or X>80%) (G1)
character*4 r_Class ! References for spectral classification (1)
character*12 Class ! Spectral type classification (mostly cLBV)
character*1 pRSG ! [1] 1=Considered as a "post Red SuperGiant (RSG)
* warm hypergiant" by Humphreys et al.
* 2015PASP..127..347H
character*11 XID ! Cross-identification
*Note (1): References for classification defined as follows:
* 1 = Current paper;
* 2 = Massey et al. 2006 (Cat. J/AJ/131/2478);
* 3 = Neugent et al. 2012 (Cat. J/ApJ/759/11);
* 4 = Massey et al. 2007a (Cat. J/AJ/134/2474);
* 5 = Hubble & Sandage 1953ApJ...118..353H, Humphreys 1975ApJ...200..426H;
* 6 = King et al. 1998ApJ...507..210K;
* 7 = Sandage & Tammann 1974ApJ...191..603S, Humphreys 1975ApJ...200..426H;
* 8 = Massey 2006ApJ...638L..93M;
* 9 = Monteverde et al. 1996A&A...312...24M;
* 10 = Massey et al. 1996 (Cat. J/ApJ/469/629);
* 11 = Clark et al. 2012A&A...541A.146C;
* 12 = Neugent & Massey 2011 (Cat. J/ApJ/733/123);
* 13 = Valeev et al. 2009MNRAS.396L..21V;
* 14 = Humphreys 1978ApJ...219..445H;
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! M33 candidate luminous blue variables (cLBVs)
integer*4 nr__1
parameter (nr__1=32) ! Number of records
character*88 ar__1 ! Full-size record
character*19 LGGS_1 ! Star designation in the Local Group Galaxy
* Survey (LGGS) (JHHMMSS.ss+DDMMSS.s format)
real*4 Vmag_1 ! (mag) [14.8/20.4] The V-band magnitude
real*4 B_V_1 ! (mag) [-0.13/0.99] The B-V color index
real*4 U_B_1 ! (mag) [-1.24/-0.08] The U-B color index
real*4 V_R_1 ! (mag) [-0.06/1.19] The V-R color index
real*4 R_I_1 ! (mag) [-0.51/0.77]?=99.999 The R-I color index
character*1 Cwd_1 ! Index indicating the degree of crowding
* (I<5%, C=20-80%, or X>80%) (G1)
character*4 r_Class_1 ! References for spectral classification (1)
character*12 Class_1 ! Spectral type classification (mostly cLBV)
character*1 pRSG_1 ! [1] 1=Considered as a "post Red SuperGiant (RSG)
* warm hypergiant" by Humphreys et al.
* 2015PASP..127..347H
character*11 XID_1 ! Cross-identification
*Note (1): References for classification defined as follows:
* 1 = Current paper;
* 2 = Massey et al. 2006 (Cat. J/AJ/131/2478);
* 3 = Neugent et al. 2012 (Cat. J/ApJ/759/11);
* 4 = Massey et al. 2007a (Cat. J/AJ/134/2474);
* 5 = Hubble & Sandage 1953ApJ...118..353H, Humphreys 1975ApJ...200..426H;
* 6 = King et al. 1998ApJ...507..210K;
* 7 = Sandage & Tammann 1974ApJ...191..603S, Humphreys 1975ApJ...200..426H;
* 8 = Massey 2006ApJ...638L..93M;
* 9 = Monteverde et al. 1996A&A...312...24M;
* 10 = Massey et al. 1996 (Cat. J/ApJ/469/629);
* 11 = Clark et al. 2012A&A...541A.146C;
* 12 = Neugent & Massey 2011 (Cat. J/ApJ/733/123);
* 13 = Valeev et al. 2009MNRAS.396L..21V;
* 14 = Humphreys 1978ApJ...219..445H;
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table5.dat' ! Updated M31 Local Group Galaxy Survey (LGGS) catalog
integer*4 nr__2
parameter (nr__2=371781) ! Number of records
character*160 ar__2 ! 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*20 LGGS_2 ! Star designation in the Local Group Galaxy Survey
* (LGGS) (JHHMMSS.ss+DDMMSS.sA format)
real*4 Rgc ! [0/1.81] Galactocentric distance (Holmberg radii;
* {rho}) (1)
integer*4 RAh ! (h) Hour of Right Ascension (J2000) (2)
integer*4 RAm ! (min) Minute of Right Ascension (J2000) (2)
real*4 RAs ! (s) Second of Right Accension (J2000) (2)
character*1 DE_ ! Sign of the Declination (J2000) (2)
integer*4 DEd ! (deg) Degree of Declination (J2000) (2)
integer*4 DEm ! (arcmin) Minute of Declination (J2000) (2)
real*4 DEs ! (arcsec) Second of Declination (J2000) (2)
real*4 Vmag_2 ! (mag) [12.5/24.5] The V-band magnitude
real*4 e_Vmag ! (mag) [0.003/0.55] The 1{sigma} error in Vmag
real*4 B_V_2 ! (mag) [-6.9/6.9] The B-V color index
real*4 e_B_V ! (mag) [0.003/0.78] The 1{sigma} error in B-V
real*4 U_B_2 ! (mag) [-7.1/7.7]?=99.999 The U-B color index
real*4 e_U_B ! (mag) [0.003/0.8]?=99.999 The 1{sigma} error in U-B
real*4 V_R_2 ! (mag) [-4.3/6.7] The V-R color index
real*4 e_V_R ! (mag) [0.003/0.77] The 1{sigma} error in V-R
real*4 R_I_2 ! (mag) [-5.2/5.8]?=99.999 The R-I color index
real*4 e_R_I ! (mag) [0.003/0.62]?=99.999 The 1{sigma} error in R-I
integer*4 NV ! [1/16] Number of V band measurements
integer*4 NB ! [1/20] Number of B band measurements
integer*4 NU ! [0/16] Number of U band measurements
integer*4 NR ! [1/16] Number of R band measurements
integer*4 NI ! [0/20] Number of I band measurements
character*1 Cwd_2 ! [CIKSX] Index for the degree of crowding
* (I<5%, S=5-20%, C=20-80%, X>80%, or K) (G1)
integer*4 Mm ! [0/3]? Membership criterion based utpn spectroscopy
* (1=member, 0=non-member, 2=possible member, or
* 3=unknown)
character*15 SpT ! Spectral type
character*5 r_SpT ! References for SpT; in refs.dat file
*Note (1): Deprojected distance within the plane of M31 in units of the Holmberg
* radius. Assumes Holmberg radius of 95.3', inclination 77.0{deg}, and a
* position angle of the major axis of 35.0{deg}. At a distance of 760kpc, a
* Rgc value of 1.00 corresponds to 21.07kpc.
*Note (2): We have slightly modified the coordinates to place them essentially on
* the UCAC3/4 system (Zacharias et al. 2013, Cat. I/322); the original Local
* Group Galaxy Survey (LGGS) coordinates were tied to the USNO-B1.0 catalog
* (Monet et al. 2003, Cat. I/284 ), requiring small (~0.3'') corrections to
* place the stars on the same system as guide stars suitable for observing
* with Hectospec. The result of these corrections is that the LGGS
* designations no longer exactly correspond to the listed coordinates.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table6.dat' ! Updated M33 Local Group Galaxy Survey (LGGS) catalog
integer*4 nr__3
parameter (nr__3=146620) ! Number of records
character*160 ar__3 ! 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*20 LGGS_3 ! Star designation in the Local Group Galaxy Survey
* (LGGS) (JHHMMSS.ss+DDMMSS.sA format)
real*4 Rgc_1 ! [0/1.81] Galactocentric distance (Holmberg radii;
* {rho}) (1)
integer*4 RAh_1 ! (h) Hour of Right Ascension (J2000) (2)
integer*4 RAm_1 ! (min) Minute of Right Ascension (J2000) (2)
real*4 RAs_1 ! (s) Second of Right Accension (J2000) (2)
character*1 DE__1 ! Sign of the Declination (J2000) (2)
integer*4 DEd_1 ! (deg) Degree of Declination (J2000) (2)
integer*4 DEm_1 ! (arcmin) Minute of Declination (J2000) (2)
real*4 DEs_1 ! (arcsec) Second of Declination (J2000) (2)
real*4 Vmag_3 ! (mag) [12.5/24.5] The V-band magnitude
real*4 e_Vmag_1 ! (mag) [0.003/0.55] The 1{sigma} error in Vmag
real*4 B_V_3 ! (mag) [-6.9/6.9] The B-V color index
real*4 e_B_V_1 ! (mag) [0.003/0.78] The 1{sigma} error in B-V
real*4 U_B_3 ! (mag) [-7.1/7.7]?=99.999 The U-B color index
real*4 e_U_B_1 ! (mag) [0.003/0.8]?=99.999 The 1{sigma} error in U-B
real*4 V_R_3 ! (mag) [-4.3/6.7] The V-R color index
real*4 e_V_R_1 ! (mag) [0.003/0.77] The 1{sigma} error in V-R
real*4 R_I_3 ! (mag) [-5.2/5.8]?=99.999 The R-I color index
real*4 e_R_I_1 ! (mag) [0.003/0.62]?=99.999 The 1{sigma} error in R-I
integer*4 NV_1 ! [1/16] Number of V band measurements
integer*4 NB_1 ! [1/20] Number of B band measurements
integer*4 NU_1 ! [0/16] Number of U band measurements
integer*4 NR_1 ! [1/16] Number of R band measurements
integer*4 NI_1 ! [0/20] Number of I band measurements
character*1 Cwd_3 ! [CIKSX] Index for the degree of crowding
* (I<5%, S=5-20%, C=20-80%, X>80%, or K) (G1)
integer*4 Mm_1 ! [0/3]? Membership criterion based utpn spectroscopy
* (1=member, 0=non-member, 2=possible member, or
* 3=unknown)
character*15 SpT_1 ! Spectral type
character*5 r_SpT_1 ! References for SpT; in refs.dat file
*Note (1): Deprojected distance within the plane of M31 in units of the Holmberg
* radius. Assumes Holmberg radius of 95.3', inclination 77.0{deg}, and a
* position angle of the major axis of 35.0{deg}. At a distance of 760kpc, a
* Rgc value of 1.00 corresponds to 21.07kpc.
*Note (2): We have slightly modified the coordinates to place them essentially on
* the UCAC3/4 system (Zacharias et al. 2013, Cat. I/322); the original Local
* Group Galaxy Survey (LGGS) coordinates were tied to the USNO-B1.0 catalog
* (Monet et al. 2003, Cat. I/284 ), requiring small (~0.3'') corrections to
* place the stars on the same system as guide stars suitable for observing
* with Hectospec. The result of these corrections is that the LGGS
* designations no longer exactly correspond to the listed coordinates.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'refs.dat' ! References
integer*4 nr__4
parameter (nr__4=37) ! Number of records
character*69 ar__4 ! Full-size record
integer*4 Ref ! Reference code
character*19 BibCode ! Bibliographic code
character*25 Aut ! Authors names
character*20 Com ! Comment(s)
C=============================================================================
C Loading file 'table3.dat' ! M31 candidate luminous blue variables (cLBVs)
C Format for file interpretation
1 format(
+ A19,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,A1,1X,A4,1X,
+ A12,1X,A1,1X,A11)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,25
read(1,'(A88)')ar__
read(ar__,1)
+ LGGS,Vmag,B_V,U_B,V_R,R_I,Cwd,r_Class,Class,pRSG,XID
c ..............Just test output...........
write(6,1)
+ LGGS,Vmag,B_V,U_B,V_R,R_I,Cwd,r_Class,Class,pRSG,XID
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table4.dat' ! M33 candidate luminous blue variables (cLBVs)
C Format for file interpretation
2 format(
+ A19,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,A1,1X,A4,1X,
+ A12,1X,A1,1X,A11)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,32
read(1,'(A88)')ar__1
read(ar__1,2)
+ LGGS_1,Vmag_1,B_V_1,U_B_1,V_R_1,R_I_1,Cwd_1,r_Class_1,Class_1,
+ pRSG_1,XID_1
c ..............Just test output...........
write(6,2)
+ LGGS_1,Vmag_1,B_V_1,U_B_1,V_R_1,R_I_1,Cwd_1,r_Class_1,Class_1,
+ pRSG_1,XID_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table5.dat' ! Updated M31 Local Group Galaxy Survey (LGGS) catalog
C Format for file interpretation
3 format(
+ A20,1X,F4.2,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,A1,1X,I1,1X,
+ A15,1X,A5)
C Effective file loading
open(unit=1,status='old',file=
+'table5.dat')
write(6,*) '....Loading file: table5.dat'
do i__=1,371781
read(1,'(A160)')ar__2
read(ar__2,3)
+ LGGS_2,Rgc,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag_2,e_Vmag,B_V_2,
+ e_B_V,U_B_2,e_U_B,V_R_2,e_V_R,R_I_2,e_R_I,NV,NB,NU,NR,NI,
+ Cwd_2,Mm,SpT,r_SpT
if(ar__2(138:138) .EQ. '') Mm = iNULL__
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,3)
+ LGGS_2,Rgc,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag_2,e_Vmag,B_V_2,
+ e_B_V,U_B_2,e_U_B,V_R_2,e_V_R,R_I_2,e_R_I,NV,NB,NU,NR,NI,
+ Cwd_2,Mm,SpT,r_SpT
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table6.dat' ! Updated M33 Local Group Galaxy Survey (LGGS) catalog
C Format for file interpretation
4 format(
+ A20,1X,F4.2,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,A1,1X,I1,1X,
+ A15,1X,A5)
C Effective file loading
open(unit=1,status='old',file=
+'table6.dat')
write(6,*) '....Loading file: table6.dat'
do i__=1,146620
read(1,'(A160)')ar__3
read(ar__3,4)
+ LGGS_3,Rgc_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Vmag_3,
+ e_Vmag_1,B_V_3,e_B_V_1,U_B_3,e_U_B_1,V_R_3,e_V_R_1,R_I_3,
+ e_R_I_1,NV_1,NB_1,NU_1,NR_1,NI_1,Cwd_3,Mm_1,SpT_1,r_SpT_1
if(ar__3(138:138) .EQ. '') Mm_1 = iNULL__
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,4)
+ LGGS_3,Rgc_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Vmag_3,
+ e_Vmag_1,B_V_3,e_B_V_1,U_B_3,e_U_B_1,V_R_3,e_V_R_1,R_I_3,
+ e_R_I_1,NV_1,NB_1,NU_1,NR_1,NI_1,Cwd_3,Mm_1,SpT_1,r_SpT_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 'refs.dat' ! References
C Format for file interpretation
5 format(I2,1X,A19,1X,A25,1X,A20)
C Effective file loading
open(unit=1,status='old',file=
+'refs.dat')
write(6,*) '....Loading file: refs.dat'
do i__=1,37
read(1,'(A69)')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