Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_AS/126/273 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-10
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+AS/126/273 Nice double star measurements (Muller, 1997)
*================================================================================
*Mesures d'etoiles doubles faites a Nice (5eme serie).
*Double star measurements made at Nice.
* Muller P.
* <Astron. Astrophys. Suppl. Ser. 126, 273 (1997)>
* =1997A&AS..126..273M
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Programme general (General program) Equinox=1900
integer*4 nr__
parameter (nr__=367) ! Number of records
character*66 ar__ ! Full-size record
character*10 IDS (nr__) ! IDS designation (equinox 1900 in table1.dat,
* equinox 2000 in table2.dat)
character*14 Name (nr__) ! Name
real*8 Date (nr__) ! (yr) ? Observation date
real*4 theta (nr__) ! (deg) ? Position angle
character*2 l_rho (nr__) ! [=< ] Limit flag on rho
real*4 rho (nr__) ! (arcsec) ? Separation angle
integer*4 Nobs (nr__) ! ? Number of observation nights
integer*4 Nobs2 (nr__) ! ? Second number of observation nights when
* the star was observed in two seasons
character*1 Note (nr__) ! [*] Individual notes detailed in notes.dat
character*15 Com (nr__) ! Comments
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Couples MLR (MLR doubles) Equinox=2000
integer*4 nr__1
parameter (nr__1=260) ! Number of records
character*66 ar__1 ! Full-size record
character*10 IDS_1 (nr__1) ! IDS designation (equinox 1900 in table1.dat,
* equinox 2000 in table2.dat)
character*14 Name_1 (nr__1) ! Name
real*8 Date_1 (nr__1) ! (yr) ? Observation date
real*4 theta_1 (nr__1) ! (deg) ? Position angle
character*2 l_rho_1 (nr__1) ! [=< ] Limit flag on rho
real*4 rho_1 (nr__1) ! (arcsec) ? Separation angle
integer*4 Nobs_1 (nr__1) ! ? Number of observation nights
integer*4 Nobs2_1 (nr__1) ! ? Second number of observation nights when
* the star was observed in two seasons
character*1 Note_1 (nr__1) ! [*] Individual notes detailed in notes.dat
character*15 Com_1 (nr__1) ! Comments
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'notes.dat' ! Individual notes
integer*4 nr__2
parameter (nr__2=32) ! Number of records
character*80 ar__2 ! Full-size record
character*14 Name_2 (nr__2) ! Name of the star (repeated if several lines)
character*65 Text (nr__2) ! Text of note
C=============================================================================
C Loading file 'table1.dat' ! Programme general (General program) Equinox=1900
C Format for file interpretation
1 format(A10,1X,A14,F7.2,1X,F5.1,A2,F5.2,1X,I1,1X,I1,A1,1X,A15)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,367
read(1,'(A66)')ar__
read(ar__,1)
+ IDS(i__),Name(i__),Date(i__),theta(i__),l_rho(i__),rho(i__),
+ Nobs(i__),Nobs2(i__),Note(i__),Com(i__)
if(ar__(26:32) .EQ. '') Date(i__) = rNULL__
if(ar__(34:38) .EQ. '') theta(i__) = rNULL__
if(ar__(41:45) .EQ. '') rho(i__) = rNULL__
if(ar__(47:47) .EQ. '') Nobs(i__) = iNULL__
if(ar__(49:49) .EQ. '') Nobs2(i__) = iNULL__
c ..............Just test output...........
write(6,1)
+ IDS(i__),Name(i__),Date(i__),theta(i__),l_rho(i__),rho(i__),
+ Nobs(i__),Nobs2(i__),Note(i__),Com(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Couples MLR (MLR doubles) Equinox=2000
C Format for file interpretation
2 format(A10,1X,A14,F7.2,1X,F5.1,A2,F5.2,1X,I1,1X,I1,A1,1X,A15)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,260
read(1,'(A66)')ar__1
read(ar__1,2)
+ IDS_1(i__),Name_1(i__),Date_1(i__),theta_1(i__),l_rho_1(i__),
+ rho_1(i__),Nobs_1(i__),Nobs2_1(i__),Note_1(i__),Com_1(i__)
if(ar__1(26:32) .EQ. '') Date_1(i__) = rNULL__
if(ar__1(34:38) .EQ. '') theta_1(i__) = rNULL__
if(ar__1(41:45) .EQ. '') rho_1(i__) = rNULL__
if(ar__1(47:47) .EQ. '') Nobs_1(i__) = iNULL__
if(ar__1(49:49) .EQ. '') Nobs2_1(i__) = iNULL__
c ..............Just test output...........
write(6,2)
+ IDS_1(i__),Name_1(i__),Date_1(i__),theta_1(i__),l_rho_1(i__),
+ rho_1(i__),Nobs_1(i__),Nobs2_1(i__),Note_1(i__),Com_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'notes.dat' ! Individual notes
C Format for file interpretation
3 format(A14,1X,A65)
C Effective file loading
open(unit=1,status='old',file=
+'notes.dat')
write(6,*) '....Loading file: notes.dat'
do i__=1,32
read(1,'(A80)')ar__2
read(ar__2,3)Name_2(i__),Text(i__)
c ..............Just test output...........
write(6,3)Name_2(i__),Text(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end