Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/356/141 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-Oct-09
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/356/141 BV photometry for components of HIP doubles (Fabricius+ 2000)
*================================================================================
*Two-colour photometry for 9473 components of close Hipparcos double
*and multiple stars
* Fabricius C., Makarov V.V.
* <Astron. Astrophys. 356, 141 (2000)>
* =2000A&A...356..141F
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'catalog.dat' ! *Catalogue of B_T_, V_T_ magnitudes for
individual components.
integer*4 nr__
parameter (nr__=9473) ! Number of records
character*66 ar__ ! Full-size record
integer*4 HIP (nr__) ! Hipparcos (Cat. I/239) identification number
integer*4 Nc (nr__) ! [1/4] Number of resolved components
character*1 m_HIP (nr__) ! Component identification letter
real*4 Hp (nr__) ! (mag) Hipparcos Hp magnitude from DMSA (1)
real*4 e_Hp (nr__) ! (mag) Standard error of Hp from DMSA (1)
character*1 RefC (nr__) ! Reference component id letter
real*4 Sep (nr__) ! (arcsec) [0.3/12.5]? Separation from DMSA (1)
real*4 PA (nr__) ! (deg) [0,360[? Position angle from DMSA (1)
real*4 BTmag (nr__) ! (mag) Observed B_T_ magnitude
real*4 e_BTmag (nr__) ! (mag) Standard error of B_T_ magnitude
real*4 VTmag (nr__) ! (mag) Observed V_T_ magnitude
real*4 e_VTmag (nr__) ! (mag) Standard error of V_T_ magnitude
real*4 S_N (nr__) ! [4/900] Signal-to noise ratio
*Note (1): DMSA = Double and Multiple Systems Annex of the Hipparcos catalog
C=============================================================================
C Loading file 'catalog.dat' ! *Catalogue of B_T_, V_T_ magnitudes for
* individual components.
C Format for file interpretation
1 format(
+ I6,1X,I1,1X,A1,1X,F6.3,1X,F5.3,1X,A1,1X,F6.3,1X,F5.1,1X,F5.2,
+ 1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.1)
C Effective file loading
open(unit=1,status='old',file=
+'catalog.dat')
write(6,*) '....Loading file: catalog.dat'
do i__=1,9473
read(1,'(A66)')ar__
read(ar__,1)
+ HIP(i__),Nc(i__),m_HIP(i__),Hp(i__),e_Hp(i__),RefC(i__),
+ Sep(i__),PA(i__),BTmag(i__),e_BTmag(i__),VTmag(i__),
+ e_VTmag(i__),S_N(i__)
if(ar__(27:32) .EQ. '') Sep(i__) = rNULL__
if(ar__(34:38) .EQ. '') PA(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ HIP(i__),Nc(i__),m_HIP(i__),Hp(i__),e_Hp(i__),RefC(i__),
+ Sep(i__),PA(i__),BTmag(i__),e_BTmag(i__),VTmag(i__),
+ e_VTmag(i__),S_N(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end