Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/103/1205 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-Sep-08
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/103/1205 Stellar Content of LH 9 and 10 in the LMC (Parker+ 1992)
*================================================================================
*The Stellar Content of LH 9 and 10 (N 11) in the LMC: A Case for Sequential
*Star Formation
* Parker J.WM., Garmany C.D., Massey P., Walborn N.R.
* <Astron. J. 103, 1205 (1992)>
* =1992AJ....103.1205P (SIMBAD/NED Reference)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'ubv.dat' ! UBV data from Tables 3-6 in the paper
integer*4 nr__
parameter (nr__=1229) ! Number of records
character*97 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*4 Star (nr__) ! Star number (1)
integer*4 RAh (nr__) ! (h) Right ascension (J2000)
integer*4 RAm (nr__) ! (min) Right ascension (J2000)
real*4 RAs (nr__) ! (s) Right ascension (J2000)
character*1 DE_ (nr__) ! Declination sign
integer*4 DEd (nr__) ! (deg) Declination (J2000)
integer*4 DEm (nr__) ! (arcmin) Declination (J2000)
real*4 DEs (nr__) ! (arcsec) Declination (J2000)
real*4 Xpos (nr__) ! (pix) X position (2)
real*4 Ypos (nr__) ! (pix) Y position (2)
real*4 Vmag (nr__) ! (mag) V magnitude
real*4 B_V (nr__) ! (mag) B-V colour index
real*4 U_B (nr__) ! (mag) ?=99.000 U-B colour index (3)
real*4 e_Vmag (nr__) ! (mag) Error on V magnitude
real*4 e_B_V (nr__) ! (mag) Error on B-V colour
real*4 e_U_B (nr__) ! (mag) ?=9.000 Error on U-B colour (3)
*Note (1): Stars with numbers <3000 are in LH 9, and numbers >3000 are in LH 10.
* Star numbers 1001 through 1522 are from Table 3.
* Star numbers 2001 through 2345 are from Table 4.
* Star numbers 3001 through 3273 are from Table 5.
* Star numbers 4001 through 4089 are from Table 6.
*Note (2): Since the CCD frames for these fields (LH 9 and 10) are not
* contiguous, the X and Y coordinates refer to different coordinate
* systems for LH 9 and LH10; for orientation of the coordinate systems
* see the CCD finder charts in the article. Pixel sizes
* (in X and Y columns) are approximately 0.49 arcsec/pixel.
*Note (3): Stars without U photometry are flagged by U-B = 99.000 and
* U-B err = 9.000.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'stars.dat' ! All stars with UBV photometry with their
bolometric magnitudes and effective
temperatures which were not listed in the
original tables (tables 10 to 12).
integer*4 nr__1
parameter (nr__1=795) ! Number of records
character*133 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*4 Star_1 (nr__1) ! Star number (1)
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) Right ascension (J2000)
character*1 DE__1 (nr__1) ! Declination sign
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) Declination (J2000)
real*4 Xpos_1 (nr__1) ! (pix) X position (2)
real*4 Ypos_1 (nr__1) ! (pix) Y position (2)
real*4 Vmag_1 (nr__1) ! (mag) V magnitude
real*4 B_V_1 (nr__1) ! (mag) B-V colour index
real*4 U_B_1 (nr__1) ! (mag) U-B colour index
real*4 Q (nr__1) ! (mag) (U-B)-0.72(B-V)
real*4 E_B_V (nr__1) ! (mag) Color excess calculated from Q or spectral
* type or mean reddening as discussed in
* Section 3.1 of the article.
real*4 Mv (nr__1) ! (mag) Absolute V magnitude=V-Rv*E(B-V)-DM where
* Rv=3.1, and the distance modulus DM=18.3 mag
real*4 log_Teff (nr__1) ! ([K]) log10 of the effective temperature: is
* calculated from Q or (B-V)0 as discussed in
* Section 3.2 of the article.
real*4 Mbol (nr__1) ! (mag) Bolometric magnitude=Mv+BC, where BC is
* calculated from Teff as discussed in
* Section 3.2 of the article.
character*13 Sp (nr__1) ! Spectral type and luminosity class as
* determined from spectroscopic observations (3)
character*13 Comments (nr__1) ! Comments (4)
*Note (1): Stars numbers 1001 through 1522 are located in LH 9 (Table
* 10), and 3001 through 3273 in LH 10 (Table 11).
* In the journal article, Tables 10 and 11 listed the Bluest (Q<-0.7)
* and Brightest (V<16) Stars in LH 9 and 10, and Table 12 listed other
* stars with known spectral types. The table here contains ALL stars
* with UBV photometry (e.g., all stars that are listed in Tables 3 and
* 5), and includes their bolometric magnitudes and effective
* temperatures which were not listed in the original tables.
*Note (2): Since these fields are not contiguous, the X,Y coordinates refer to
* different coordinate systems: they are from the CCD finder charts in
* the article. Pixel sizes are approximately 0.49 arcsec/pixel.
*Note (3): One colon ":" indicates an uncertainty of one spectral subtype or
* luminosity class, and two colons "::" indicate a larger uncertainty.
*Note (4): Comments in square brackets, [], are indicated by the following codes
* (note that these codes are somewhat different than those that appear
* in the original paper):
* [a]: strong Balmer lines
* [b]: possible composite / blend; spectrum contaminated by nearby
* star (in some cases the number of the other star is given in
* parentheses)
* [c]: cosmic ray hits / bad pixels
* [d]: weak Balmer lines
* [e]: strong nebular emission in the Balmer lines
* [g]: weak N lines
* [p]: Star 3264 is a ZAMS star with extremely strong nebular emission
* lines and is located in the compact HII knot N 11A (see text)
* [z]: ZAMS O star
C=============================================================================
C Loading file 'ubv.dat' ! UBV data from Tables 3-6 in the paper
C Format for file interpretation
1 format(
+ 1X,A4,3X,I1,1X,I2,1X,F5.2,2X,A1,I2,1X,I2,1X,F4.1,4X,F6.2,2X,
+ F6.2,2X,F6.3,2X,F6.3,2X,F6.3,3X,F5.3,3X,F5.3,3X,F5.3)
C Effective file loading
open(unit=1,status='old',file=
+'ubv.dat')
write(6,*) '....Loading file: ubv.dat'
do i__=1,1229
read(1,'(A97)')ar__
read(ar__,1)
+ Star(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),Xpos(i__),Ypos(i__),Vmag(i__),B_V(i__),
+ U_B(i__),e_Vmag(i__),e_B_V(i__),e_U_B(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)
+ Star(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),Xpos(i__),Ypos(i__),Vmag(i__),B_V(i__),
+ U_B(i__),e_Vmag(i__),e_B_V(i__),e_U_B(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 'stars.dat' ! All stars with UBV photometry with their
* bolometric magnitudes and effective
* temperatures which were not listed in the
* original tables (tables 10 to 12).
C Format for file interpretation
2 format(
+ 1X,A4,3X,I1,1X,I2,1X,F5.2,2X,A1,I2,1X,I2,1X,F4.1,4X,F5.1,2X,
+ F5.1,2X,F5.2,2X,F5.2,2X,F5.2,2X,F5.2,3X,F4.2,1X,F6.2,3X,F4.2,
+ 1X,F6.2,2X,A13,1X,A13)
C Effective file loading
open(unit=1,status='old',file=
+'stars.dat')
write(6,*) '....Loading file: stars.dat'
do i__=1,795
read(1,'(A133)')ar__1
read(ar__1,2)
+ Star_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
+ DEd_1(i__),DEm_1(i__),DEs_1(i__),Xpos_1(i__),Ypos_1(i__),
+ Vmag_1(i__),B_V_1(i__),U_B_1(i__),Q(i__),E_B_V(i__),Mv(i__),
+ log_Teff(i__),Mbol(i__),Sp(i__),Comments(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)
+ Star_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
+ DEd_1(i__),DEm_1(i__),DEs_1(i__),Xpos_1(i__),Ypos_1(i__),
+ Vmag_1(i__),B_V_1(i__),U_B_1(i__),Q(i__),E_B_V(i__),Mv(i__),
+ log_Teff(i__),Mbol(i__),Sp(i__),Comments(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end