Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_AS/112/95 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-May-22
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/A+AS/112/95 uvby-beta photometry in Cen-Cru-Mus-Cha (Corradi+, 1995)
*================================================================================
*uvby-beta photometry of 1017 stars earlier than G0 in the
*Centaurus-Crux-Musca-Chamaeleon direction
* CORRADI W.J.B., FRANCO G.A.P.
* <Astron. Astrophys. Suppl. Ser. 112, 95 (1995)>
* =1995A&AS..112...95C (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table' ! uvby-beta photometry of 1017 stars in the
Centaurus-Crux-Musca-Chamaeleon direction
integer*4 nr__
parameter (nr__=1017) ! Number of records
character*107 ar__ ! Full-size record
real*8 RA_ (nr__) ! (deg) Right Ascension 1950.0
real*8 Dec (nr__) ! (deg) Declination 1950.0
integer*4 SAO (nr__) ! Star number in the SAO Catalog
integer*4 HD (nr__) ! ? HD number
character*15 SpType (nr__) ! Michigan two dimensional classification
integer*4 RAh (nr__) ! (h) Right ascension 1950.0
integer*4 RAm (nr__) ! (min) Right ascension 1950.0
integer*4 RAs (nr__) ! (s) Right ascension 1950.0
character*1 DE_ (nr__) ! Declination sign
integer*4 DEd (nr__) ! (deg) Declination 1950.0
integer*4 DEm (nr__) ! (arcmin) Declination 1950.0
integer*4 DEs (nr__) ! (arcsec) Declination 1950.0
real*4 Vmag (nr__) ! (mag) V magnitude
integer*4 e_Vmag (nr__) ! (0.001mag) ? rms uncertainty on Vmag
character*1 n_Vmag (nr__) ! [*] "*" indicates error value larger than 99
real*4 b_y (nr__) ! (mag) (b-y) colour index
integer*4 e_b_y (nr__) ! (0.001mag) ? rms uncertainty on b-y
character*1 n_b_y (nr__) ! [*] "*" indicates error value larger than 99
real*4 m1 (nr__) ! (mag) m1 colour index
integer*4 e_m1 (nr__) ! (0.001mag) ? rms uncertainty on m1
character*1 n_m1 (nr__) ! [*] "*" indicates error value larger than 99
real*4 c1 (nr__) ! (mag) c1 colour index
integer*4 e_c1 (nr__) ! (0.001mag) ? rms uncertainty on c1
character*1 n_c1 (nr__) ! [*] "*" indicates error value larger than 99
integer*4 o_Vmag (nr__) ! Number of observations in uvby
real*4 Beta (nr__) ! (mag) ? Beta index
integer*4 e_Beta (nr__) ! (0.001mag) ? rms uncertainty on Beta
character*1 n_Beta (nr__) ! [*] "*" indicates error value larger than 99
integer*4 o_Beta (nr__) ! ? Number of observations in Beta
C=============================================================================
C Loading file 'table' ! uvby-beta photometry of 1017 stars in the
* Centaurus-Crux-Musca-Chamaeleon direction
C Format for file interpretation
1 format(
+ I6,1X,I6,1X,A15,1X,I2,1X,I2,1X,I2,1X,A1,I2,1X,I2,1X,I2,1X,
+ F6.3,2X,I2,A1,F6.3,2X,I2,A1,F6.3,2X,I2,A1,F6.3,2X,I2,A1,I1,1X,
+ F5.3,2X,I2,A1,I1)
C Effective file loading
open(unit=1,file='table', status='old')
write(6,*) '....Loading file: table'
do i__=1,1017
read(1,'(A107)')ar__
read(ar__,1)
+ SAO(i__),HD(i__),SpType(i__),RAh(i__),RAm(i__),RAs(i__),
+ DE_(i__),DEd(i__),DEm(i__),DEs(i__),Vmag(i__),e_Vmag(i__),
+ n_Vmag(i__),b_y(i__),e_b_y(i__),n_b_y(i__),m1(i__),e_m1(i__),
+ n_m1(i__),c1(i__),e_c1(i__),n_c1(i__),o_Vmag(i__),Beta(i__),
+ e_Beta(i__),n_Beta(i__),o_Beta(i__)
if(ar__(8:13) .EQ. '') HD(i__) = iNULL__
if(ar__(58:59) .EQ. '') e_Vmag(i__) = iNULL__
if(ar__(69:70) .EQ. '') e_b_y(i__) = iNULL__
if(ar__(80:81) .EQ. '') e_m1(i__) = iNULL__
if(ar__(91:92) .EQ. '') e_c1(i__) = iNULL__
if(ar__(96:100) .EQ. '') Beta(i__) = rNULL__
if(ar__(103:104) .EQ. '') e_Beta(i__) = iNULL__
if(ar__(106:106) .EQ. '') o_Beta(i__) = iNULL__
c Derive coordinates RA_ and Dec from input data
c (RA_ and Dec are set to rNULL_ when unknown)
RA_(i__) = RAh(i__)
if(RAh(i__) .GE. 0) RA_(i__)=RAh(i__)*15.
if(RAm(i__) .GE. 0) RA_(i__)=RA_(i__)+RAm(i__)/4.
if(RAs(i__) .GE. 0) RA_(i__)=RA_(i__)+RAs(i__)/240.
Dec(i__) = DEd(i__)
if(DEm(i__) .GE. 0) Dec(i__)=Dec(i__)+DEm(i__)/60.
if(DEs(i__) .GE. 0) Dec(i__)=Dec(i__)+DEs(i__)/3600.
if(DE_(i__).EQ.'-'.AND.Dec(i__).GE.0) Dec(i__)=-Dec(i__)
c ..............Just test output...........
write(6,1)
+ SAO(i__),HD(i__),SpType(i__),RAh(i__),RAm(i__),RAs(i__),
+ DE_(i__),DEd(i__),DEm(i__),DEs(i__),Vmag(i__),e_Vmag(i__),
+ n_Vmag(i__),b_y(i__),e_b_y(i__),n_b_y(i__),m1(i__),e_m1(i__),
+ n_m1(i__),c1(i__),e_c1(i__),n_c1(i__),o_Vmag(i__),Beta(i__),
+ e_Beta(i__),n_Beta(i__),o_Beta(i__)
write(6,'(6H Pos: 2F8.4)') RA_(i__),Dec(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end