Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/403/937 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-Aug-11
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+A/403/937 Stroemgren photometry of NGC 6192 and NGC 6451 (Paunzen+, 2003)
*================================================================================
*Stroemgren uvby photometry of the open clusters NGC 6192 and NGC 6451.
* Paunzen E., Maitzen H.M., Rakos K.D., Schombert J.
* <Astron. Astrophys. 403, 937 (2003)>
* =2003A&A...403..937P
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Observed program stars of NGC 6192
integer*4 nr__
parameter (nr__=374) ! Number of records
character*85 ar__ ! Full-size record
integer*4 PMR (nr__) ! Notation for stars sorted after X and Y (1)
integer*4 WEBDA (nr__) ! ? Notation according to WEBDA (2)
real*4 Xpos (nr__) ! (pix) X-coordinate (3)
real*4 Ypos (nr__) ! (pix) Y-coordinate (3)
real*4 b_y (nr__) ! (mag) Mean Stroemgren (b-y) value
real*4 e_b_y (nr__) ! (mag) Sigma (b-y)
real*4 m1 (nr__) ! (mag) Mean Stroemgren m1 value
real*4 e_m1 (nr__) ! (mag) Sigma m1
real*4 c1 (nr__) ! (mag) Mean Stroemgren c1 value
real*4 e_c1 (nr__) ! (mag) Sigma c1
real*4 Vmag (nr__) ! (mag) Mean V value
real*4 e_Vmag (nr__) ! (mag) Sigma Vmag
real*4 B_V (nr__) ! (mag) ? (B-V) from the literature
real*4 U_B (nr__) ! (mag) ? (U-B) from the literature
*Note (1): Simbad designations:
* table3.dat: Cl* NGC 6192 PMR NNN
* table4.dat: Cl* NGC 6451 PMR NNN
*Note (2): WEBDA naming conventions:
* For NGC 6192, number from Kilambi et al. (1983BASI...11..226K),
* Cl* NGC 6192 KF NNN in Simbad
* For NGC 6451, numbers from Piatti (1998, Cat. <J/ApJS/116/263>),
* Cl* NGC 6451 PCB NNN in Simbad
*Note (3): 1pix=0.43". North is to the left and west is upwards
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'stars.dat' ! NGC 6192 star positions (from Simbad),
for stars with WEBDA number
integer*4 nr__1
parameter (nr__1=81) ! Number of records
character*59 ar__1 ! Full-size record
C J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg (nr__1) ! (deg) Right Ascension J2000.0
real*8 DEdeg (nr__1) ! (deg) Declination J2000.0
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 PMR_1 (nr__1) ! Sequential number, in NGC 6192,
* Cl* NGC 6192 PMR NNN in Simbad
integer*4 RAh (nr__1) ! (h) Right ascension (J2000.0)
integer*4 RAm (nr__1) ! (min) Right ascension (J2000.0)
real*4 RAs (nr__1) ! (s) Right ascension (J2000.0)
character*1 DE_ (nr__1) ! Declination sign (J2000.0)
integer*4 DEd (nr__1) ! (deg) Declination (J2000.0)
integer*4 DEm (nr__1) ! (arcmin) Declination (J2000.0)
integer*4 DEs (nr__1) ! (arcsec) Declination (J2000.0)
character*19 SName (nr__1) ! Simbad name from Paunzen et al., 2002,
* Cat. <J/A+A/385/867>
character*9 HD (nr__1) ! HD name
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! Observed program stars of NGC 6451
integer*4 nr__2
parameter (nr__2=912) ! Number of records
character*85 ar__2 ! Full-size record
integer*4 PMR_2 (nr__2) ! Notation for stars sorted after X and Y (1)
integer*4 WEBDA_1 (nr__2) ! ? Notation according to WEBDA (2)
real*4 Xpos_1 (nr__2) ! (pix) X-coordinate (3)
real*4 Ypos_1 (nr__2) ! (pix) Y-coordinate (3)
real*4 b_y_1 (nr__2) ! (mag) Mean Stroemgren (b-y) value
real*4 e_b_y_1 (nr__2) ! (mag) Sigma (b-y)
real*4 m1_1 (nr__2) ! (mag) Mean Stroemgren m1 value
real*4 e_m1_1 (nr__2) ! (mag) Sigma m1
real*4 c1_1 (nr__2) ! (mag) Mean Stroemgren c1 value
real*4 e_c1_1 (nr__2) ! (mag) Sigma c1
real*4 Vmag_1 (nr__2) ! (mag) Mean V value
real*4 e_Vmag_1 (nr__2) ! (mag) Sigma Vmag
real*4 B_V_1 (nr__2) ! (mag) ? (B-V) from the literature
real*4 U_B_1 (nr__2) ! (mag) ? (U-B) from the literature
*Note (1): Simbad designations:
* table3.dat: Cl* NGC 6192 PMR NNN
* table4.dat: Cl* NGC 6451 PMR NNN
*Note (2): WEBDA naming conventions:
* For NGC 6192, number from Kilambi et al. (1983BASI...11..226K),
* Cl* NGC 6192 KF NNN in Simbad
* For NGC 6451, numbers from Piatti (1998, Cat. <J/ApJS/116/263>),
* Cl* NGC 6451 PCB NNN in Simbad
*Note (3): 1pix=0.43". North is to the left and west is upwards
C=============================================================================
C Loading file 'table3.dat' ! Observed program stars of NGC 6192
C Format for file interpretation
1 format(
+ I3,1X,I3,1X,F6.1,1X,F6.1,1X,F5.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,
+ F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F6.3)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,374
read(1,'(A85)')ar__
read(ar__,1)
+ PMR(i__),WEBDA(i__),Xpos(i__),Ypos(i__),b_y(i__),e_b_y(i__),
+ m1(i__),e_m1(i__),c1(i__),e_c1(i__),Vmag(i__),e_Vmag(i__),
+ B_V(i__),U_B(i__)
if(ar__(5:7) .EQ. '') WEBDA(i__) = iNULL__
if(ar__(74:78) .EQ. '') B_V(i__) = rNULL__
if(ar__(80:85) .EQ. '') U_B(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ PMR(i__),WEBDA(i__),Xpos(i__),Ypos(i__),b_y(i__),e_b_y(i__),
+ m1(i__),e_m1(i__),c1(i__),e_c1(i__),Vmag(i__),e_Vmag(i__),
+ B_V(i__),U_B(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'stars.dat' ! NGC 6192 star positions (from Simbad),
* for stars with WEBDA number
C Format for file interpretation
2 format(I3,2X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,3X,A19,3X,A9)
C Effective file loading
open(unit=1,status='old',file=
+'stars.dat')
write(6,*) '....Loading file: stars.dat'
do i__=1,81
read(1,'(A59)')ar__1
read(ar__1,2)
+ PMR_1(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),SName(i__),HD(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,2)
+ PMR_1(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),SName(i__),HD(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 'table4.dat' ! Observed program stars of NGC 6451
C Format for file interpretation
3 format(
+ I3,1X,I3,1X,F6.1,1X,F6.1,1X,F5.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,
+ F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F6.3)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,912
read(1,'(A85)')ar__2
read(ar__2,3)
+ PMR_2(i__),WEBDA_1(i__),Xpos_1(i__),Ypos_1(i__),b_y_1(i__),
+ e_b_y_1(i__),m1_1(i__),e_m1_1(i__),c1_1(i__),e_c1_1(i__),
+ Vmag_1(i__),e_Vmag_1(i__),B_V_1(i__),U_B_1(i__)
if(ar__2(5:7) .EQ. '') WEBDA_1(i__) = iNULL__
if(ar__2(74:78) .EQ. '') B_V_1(i__) = rNULL__
if(ar__2(80:85) .EQ. '') U_B_1(i__) = rNULL__
c ..............Just test output...........
write(6,3)
+ PMR_2(i__),WEBDA_1(i__),Xpos_1(i__),Ypos_1(i__),b_y_1(i__),
+ e_b_y_1(i__),m1_1(i__),e_m1_1(i__),c1_1(i__),e_c1_1(i__),
+ Vmag_1(i__),e_Vmag_1(i__),B_V_1(i__),U_B_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end