Conversion of standardized ReadMe file for
catalog 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.5, on 2013-Jun-18
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__
ter (rNULL__=-1.e37) ! NULL real number
parameter (iNULL__=-2147483647) ! NULL int number
C=============================================================================
Cat. J/AJ/90/2221 UMi dwarf galaxy BV photometry (Olszewski+, 1985)
*================================================================================
*The Ursa Minor dwarf galaxy : still an old stellar system.
* Olszewski E.W., Aaronson M.
* <Astron. J. 90, 2221 (1985)>
* =1985AJ.....90.2221O
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! Coordinates, magnitudes, and derived errors
for Ursa Minor stars.
integer*4 nr__
parameter (nr__=1486) ! Number of records
character*58 ar__ ! Full-size record
integer*4 v_OA85_ (nr__) ! [1/1486]+ Sequential number
real*4 Xpos (nr__) ! (pix) X position
real*4 Ypos (nr__) ! (pix) Y position (1)
real*4 Vmag (nr__) ! (mag) V magnitude
real*4 B_V (nr__) ! (mag) B-V colour index
real*4 e_Vmag (nr__) ! (mag) rms uncertainty on Vmag
real*4 e_B_V (nr__) ! (mag) rms uncertainty on B-V
integer*4 Flag (nr__) ! [0/1] Note about existence on Fig.4 (2)
*Note (1): Typos in the original table were corrected from the finding chart:
* 740: Ypos = 26.51 transformed in 226.51
* 741: Ypos = 226.7p transformed in 226.7
* 1007: Xpos = aF1.04 transformed in 201.04
* 1017: Ypos = 316.T? transformed in 316.2
*Note (2): the flag is
* 0 if star only appears in fig. 3
* 1 if star appears in both fig. 3 and 4.
C=============================================================================
C Loading file 'table4.dat' ! Coordinates, magnitudes, and derived errors
* for Ursa Minor stars.
C Format for file interpretation
1 format(I4,1X,F6.2,1X,F6.2,1X,F6.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,I1)
C Effective file loading
open(unit=1,file='table4.dat', status='old')
write(6,*) '....Loading file: table4.dat'
do i__=1,1486
read(1,'(A58)')ar__
read(ar__,1)
+ v_OA85_(i__),Xpos(i__),Ypos(i__),Vmag(i__),B_V(i__),
+ e_Vmag(i__),e_B_V(i__),Flag(i__)
c ..............Just test output...........
write(6,1)
+ v_OA85_(i__),Xpos(i__),Ypos(i__),Vmag(i__),B_V(i__),
+ e_Vmag(i__),e_B_V(i__),Flag(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end