Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_AS/128/309 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-19
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+AS/128/309 ubvy-beta photometry of CarOB1 and CarOB2 stars (Kaltcheva 1998)
*================================================================================
*Stroemgren and H{beta} photometry of OB stars in the region of the
*Carina Spiral Feature
* Kaltcheva N.T.
* <Astron. Astrophys. Suppl. Ser. 128, 309 (1998)>
* =1998A&AS..128..309K (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1a.dat' ! Stromgren and H{beta} data for 50 stars in
Carina OB1 field.
integer*4 nr__
parameter (nr__=50) ! Number of records
character*42 ar__ ! Full-size record
integer*4 HD ! HD (Cat. <III/135>) number
character*2 m_HD ! Multiplicity index on HD
real*4 Vmag ! (mag) V magnitude
real*4 b_y ! (mag) b-y colour index
real*4 m1 ! (mag) m1 colour index
real*4 c1 ! (mag) c1 colour index
real*4 beta ! (mag) H{beta} colour index
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1b.dat' ! Stromgren and H{beta} data for 80 stars in
Carina OB2 field.
integer*4 nr__1
parameter (nr__1=80) ! Number of records
character*42 ar__1 ! Full-size record
integer*4 HD_1 ! HD (Cat. <III/135>) number
character*2 m_HD_1 ! Multiplicity index on HD
real*4 Vmag_1 ! (mag) V magnitude
real*4 b_y_1 ! (mag) b-y colour index
real*4 m1_1 ! (mag) m1 colour index
real*4 c1_1 ! (mag) c1 colour index
real*4 beta_1 ! (mag) H{beta} colour index
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2a.dat' ! Car OB1 - derived quantities
integer*4 nr__2
parameter (nr__2=50) ! Number of records
character*79 ar__2 ! Full-size record
integer*4 HD_2 ! HD number
character*2 m_HD_2 ! Multiplicity index on HD
character*12 SpType ! MK type, remark
real*4 v_b_y_0 ! (mag) Derredened b-y colour
real*4 m0 ! (mag) Derredened m0 colour index
real*4 c0 ! (mag) Derredened c0 colour index
real*4 E_b_y ! (mag) Interstellar extinction
real*4 V0 ! (mag) Derredened V magnitude
real*4 Mv ! (mag) ? Absolute V magnitude
character*1 u_Mv ! Uncertainty flag on Mv
real*4 V0_Mv ! (mag) ? Distance modulus
character*1 u_V0_Mv ! Uncertainty flag on V0-Mv
integer*4 r ! (pc) ? Distance
character*1 u_r ! Uncertainty flag on r
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2b.dat' ! Car OB2 field - derived quantities
integer*4 nr__3
parameter (nr__3=80) ! Number of records
character*79 ar__3 ! Full-size record
integer*4 HD_3 ! HD number
character*2 m_HD_3 ! Multiplicity index on HD
character*12 SpType_1 ! MK type, remark
real*4 v_b_y_0_1 ! (mag) Derredened b-y colour
real*4 m0_1 ! (mag) Derredened m0 colour index
real*4 c0_1 ! (mag) Derredened c0 colour index
real*4 E_b_y_1 ! (mag) Interstellar extinction
real*4 V0_1 ! (mag) Derredened V magnitude
real*4 Mv_1 ! (mag) ? Absolute V magnitude
character*1 u_Mv_1 ! Uncertainty flag on Mv
real*4 V0_Mv_1 ! (mag) ? Distance modulus
character*1 u_V0_Mv_1 ! Uncertainty flag on V0-Mv
integer*4 r_1 ! (pc) ? Distance
character*1 u_r_1 ! Uncertainty flag on r
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! Other stars with Stromgren and H{beta} photometry
in the same fields.
integer*4 nr__4
parameter (nr__4=14) ! Number of records
character*78 ar__4 ! Full-size record
integer*4 HD_4 ! Hd number
character*6 Field ! Field (CarOB1 or Car OB2)
character*8 SpType_2 ! MK type
character*3 Ref ! Reference (1)
real*4 v_b_y_0_2 ! (mag) Deredenned b-y colour
real*4 m0_2 ! (mag) Deredenned m1 colour
real*4 c0_2 ! (mag) Deredenned c1 colour
real*4 E_b_y_1 ! (mag) Interstellar extinction
real*4 V0_2 ! (mag) Deredenned V magnitude
real*4 Mv_2 ! (mag) Absolute V magnitude
real*4 V0_Mv_2 ! (mag) Distance modulus
integer*4 r_2 ! (pc) Distance
*Note (1): K&W: Kilkenny D. & Whittet D., 1985MNRAS.216..127K
* Z: Zhang E.-Ho., 1983AJ.....88..825Z
* G&O: Gray & Olsen E., 1991A&AS...87..541G
* K: Knude J. 1992, Cat. <J/A+AS/92/841>
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table5.dat' ! Stars with UBV H{beta} photometry in the same fields
integer*4 nr__5
parameter (nr__5=14) ! Number of records
character*66 ar__5 ! Full-size record
integer*4 HD_5 ! HD name
character*6 Field_1 ! Fields (CarOB1 or CarOB2)
real*4 Vmag_2 ! (mag) V magnitude
real*4 beta_2 ! (mag) ? H{beta} colour index
character*7 SpType_3 ! MK spectral classification
real*4 B_V ! (mag) ? B-V colour index
real*4 Mv_3 ! (mag) ? Absolute V magnitude
character*1 u_Mv_2 ! Uncertainty flag on Mv
real*4 E_b_y_1 ! (mag) ? Interstellar extinction
real*4 V0_Mv_3 ! (mag) ? Distance modulus
integer*4 r_3 ! (pc) ? Distance
C=============================================================================
C Loading file 'table1a.dat' ! Stromgren and H{beta} data for 50 stars in
* Carina OB1 field.
C Format for file interpretation
1 format(I6,A2,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F5.3)
C Effective file loading
open(unit=1,status='old',file=
+'table1a.dat')
write(6,*) '....Loading file: table1a.dat'
do i__=1,50
read(1,'(A42)')ar__
read(ar__,1)HD,m_HD,Vmag,b_y,m1,c1,beta
c ..............Just test output...........
write(6,1)HD,m_HD,Vmag,b_y,m1,c1,beta
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table1b.dat' ! Stromgren and H{beta} data for 80 stars in
* Carina OB2 field.
C Format for file interpretation
2 format(I6,A2,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F5.3)
C Effective file loading
open(unit=1,status='old',file=
+'table1b.dat')
write(6,*) '....Loading file: table1b.dat'
do i__=1,80
read(1,'(A42)')ar__1
read(ar__1,2)HD_1,m_HD_1,Vmag_1,b_y_1,m1_1,c1_1,beta_1
c ..............Just test output...........
write(6,2)HD_1,m_HD_1,Vmag_1,b_y_1,m1_1,c1_1,beta_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2a.dat' ! Car OB1 - derived quantities
C Format for file interpretation
3 format(
+ I6,A2,1X,A12,2X,F6.3,2X,F5.3,1X,F6.3,2X,F5.3,2X,F5.3,2X,F6.3,
+ A1,1X,F5.2,A1,1X,I4,A1)
C Effective file loading
open(unit=1,status='old',file=
+'table2a.dat')
write(6,*) '....Loading file: table2a.dat'
do i__=1,50
read(1,'(A79)')ar__2
read(ar__2,3)
+ HD_2,m_HD_2,SpType,v_b_y_0,m0,c0,E_b_y,V0,Mv,u_Mv,V0_Mv,
+ u_V0_Mv,r,u_r
if(ar__2(60:65) .EQ. '') Mv = rNULL__
if(ar__2(68:72) .EQ. '') V0_Mv = rNULL__
if(ar__2(75:78) .EQ. '') r = iNULL__
c ..............Just test output...........
write(6,3)
+ HD_2,m_HD_2,SpType,v_b_y_0,m0,c0,E_b_y,V0,Mv,u_Mv,V0_Mv,
+ u_V0_Mv,r,u_r
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2b.dat' ! Car OB2 field - derived quantities
C Format for file interpretation
4 format(
+ I6,A2,1X,A12,2X,F6.3,2X,F5.3,1X,F6.3,2X,F5.3,2X,F5.3,2X,F6.3,
+ A1,1X,F5.2,A1,1X,I4,A1)
C Effective file loading
open(unit=1,status='old',file=
+'table2b.dat')
write(6,*) '....Loading file: table2b.dat'
do i__=1,80
read(1,'(A79)')ar__3
read(ar__3,4)
+ HD_3,m_HD_3,SpType_1,v_b_y_0_1,m0_1,c0_1,E_b_y_1,V0_1,Mv_1,
+ u_Mv_1,V0_Mv_1,u_V0_Mv_1,r_1,u_r_1
if(ar__3(60:65) .EQ. '') Mv_1 = rNULL__
if(ar__3(68:72) .EQ. '') V0_Mv_1 = rNULL__
if(ar__3(75:78) .EQ. '') r_1 = iNULL__
c ..............Just test output...........
write(6,4)
+ HD_3,m_HD_3,SpType_1,v_b_y_0_1,m0_1,c0_1,E_b_y_1,V0_1,Mv_1,
+ u_Mv_1,V0_Mv_1,u_V0_Mv_1,r_1,u_r_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table4.dat' ! Other stars with Stromgren and H{beta} photometry
* in the same fields.
C Format for file interpretation
5 format(
+ I6,1X,A6,1X,A8,2X,A3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F5.3,
+ 1X,F6.3,1X,F6.3,1X,I4)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,14
read(1,'(A78)')ar__4
read(ar__4,5)
+ HD_4,Field,SpType_2,Ref,v_b_y_0_2,m0_2,c0_2,E_b_y_1,V0_2,Mv_2,
+ V0_Mv_2,r_2
c ..............Just test output...........
write(6,5)
+ HD_4,Field,SpType_2,Ref,v_b_y_0_2,m0_2,c0_2,E_b_y_1,V0_2,Mv_2,
+ V0_Mv_2,r_2
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table5.dat' ! Stars with UBV H{beta} photometry in the same fields
C Format for file interpretation
6 format(
+ I6,1X,A6,1X,F6.3,1X,F5.3,1X,A7,1X,F6.3,1X,F6.3,A1,1X,F5.3,1X,
+ F5.2,1X,I4)
C Effective file loading
open(unit=1,status='old',file=
+'table5.dat')
write(6,*) '....Loading file: table5.dat'
do i__=1,14
read(1,'(A66)')ar__5
read(ar__5,6)
+ HD_5,Field_1,Vmag_2,beta_2,SpType_3,B_V,Mv_3,u_Mv_2,E_b_y_1,
+ V0_Mv_3,r_3
if(ar__5(22:26) .EQ. '') beta_2 = rNULL__
if(ar__5(36:41) .EQ. '') B_V = rNULL__
if(ar__5(43:48) .EQ. '') Mv_3 = rNULL__
if(ar__5(51:55) .EQ. '') E_b_y_1 = rNULL__
if(ar__5(57:61) .EQ. '') V0_Mv_3 = rNULL__
if(ar__5(63:66) .EQ. '') r_3 = iNULL__
c ..............Just test output...........
write(6,6)
+ HD_5,Field_1,Vmag_2,beta_2,SpType_3,B_V,Mv_3,u_Mv_2,E_b_y_1,
+ V0_Mv_3,r_3
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end