Conversion of standardized ReadMe file for
file /./ftp/cats/J/BaltA/25/49 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-12
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/BaltA/25/49 Identification list of binaries (Malkov+, 2016)
*================================================================================
*Identification list of binaries.
* Malkov O., Karchevsky A., Kaygorodov P., Kovaleva D.
* <Baltic Astron. 25, 49-52 (2016)>
* =2016BaltA..25...49M (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'ilb_new.dat' ! Identification list
integer*4 nr__
parameter (nr__=997357) ! Number of records
character*214 ar__ ! Full-size record
C J2000 position composed of: RAdeg DEdeg
character*30 BSDB (nr__) ! BSDB number
character*1 otype1 (nr__) ! [clv] ObsType 1 (1)
character*1 otype2 (nr__) ! [ov] ObsType 2 (1)
character*1 otype3 (nr__) ! [v] ObsType 3 (1)
character*1 otype4 (nr__) ! [o] ObsType 4 (1)
character*1 otype5 (nr__) ! [i] ObsType 5 (1)
character*1 otype6 (nr__) ! [ep] ObsType 6 (1)
character*1 otype7 (nr__) ! [eps] ObsType 7 (1)
character*1 otype8 (nr__) ! [a] ObsType 8 (1)
character*1 otype9 (nr__) ! [x] ObsType 9 (1)
character*1 otype10 (nr__) ! ObsType 10
character*1 falsec (nr__) ! [f] Flag false coordinates
character*10 WDS (nr__) ! WDS designation
character*9 DD (nr__) ! Discoverer and number designation
character*5 WDSc (nr__) ! WDS components
character*10 CCDM (nr__) ! CCDM designation
character*4 CCDMc (nr__) ! CCDM components
character*5 TDSC (nr__) ! TDSC designation
character*4 TDSCc (nr__) ! TDSC components
real*8 RAdeg (nr__) ! (deg) []? Component's right ascension (J2000)
real*8 DEdeg (nr__) ! (deg) ? Component's declination (J2000)
real*4 rho (nr__) ! (arcsec) ? Angular distance between components
real*4 Theta (nr__) ! (deg) ? Position angle
character*13 Bayer (nr__) ! Bayer designation
character*12 Flams (nr__) ! Flamsteed designation
character*7 HD (nr__) ! HD designation
character*7 HIP (nr__) ! ? HIP designation
character*13 DM (nr__) ! DM designation
integer*4 SBC9 (nr__) ! ? SBC9 designation
character*12 GCVS (nr__) ! GCVS designation
integer*4 ADS (nr__) ! ? ADS designation
*Note (1): ObsType as follows:
* a = astrometric
* c = common proper motion
* e = eclipsing
* i = interferometric
* o = orbital
* r = radio pulsar in a binary system
* s = spectroscopic
* v = visual
* x = X-ray
* l = optical pair
* p = the pair contains intrinsically variable star
C=============================================================================
C Loading file 'ilb_new.dat' ! Identification list
C Format for file interpretation
1 format(
+ A30,1X,A1,A1,A1,A1,A1,A1,A1,A1,A1,A1,1X,A1,1X,A10,1X,A9,1X,A5,
+ 1X,A10,1X,A4,1X,A5,1X,A4,1X,F9.5,2X,F9.5,2X,F6.1,1X,F5.1,1X,
+ A13,1X,A12,1X,A7,1X,A7,1X,A13,1X,I4,1X,A12,1X,I6)
C Effective file loading
open(unit=1,status='old',file=
+'ilb_new.dat')
write(6,*) '....Loading file: ilb_new.dat'
do i__=1,997357
read(1,'(A214)')ar__
read(ar__,1)
+ BSDB(i__),otype1(i__),otype2(i__),otype3(i__),otype4(i__),
+ otype5(i__),otype6(i__),otype7(i__),otype8(i__),otype9(i__),
+ otype10(i__),falsec(i__),WDS(i__),DD(i__),WDSc(i__),CCDM(i__),
+ CCDMc(i__),TDSC(i__),TDSCc(i__),RAdeg(i__),DEdeg(i__),
+ rho(i__),Theta(i__),Bayer(i__),Flams(i__),HD(i__),HIP(i__),
+ DM(i__),SBC9(i__),GCVS(i__),ADS(i__)
if(ar__(99:107) .EQ. '') RAdeg(i__) = rNULL__
if(ar__(110:118) .EQ. '') DEdeg(i__) = rNULL__
if(ar__(121:126) .EQ. '') rho(i__) = rNULL__
if(ar__(128:132) .EQ. '') Theta(i__) = rNULL__
if(ar__(191:194) .EQ. '') SBC9(i__) = iNULL__
if(ar__(209:214) .EQ. '') ADS(i__) = iNULL__
c ..............Just test output...........
write(6,1)
+ BSDB(i__),otype1(i__),otype2(i__),otype3(i__),otype4(i__),
+ otype5(i__),otype6(i__),otype7(i__),otype8(i__),otype9(i__),
+ otype10(i__),falsec(i__),WDS(i__),DD(i__),WDSc(i__),CCDM(i__),
+ CCDMc(i__),TDSC(i__),TDSCc(i__),RAdeg(i__),DEdeg(i__),
+ rho(i__),Theta(i__),Bayer(i__),Flams(i__),HD(i__),HIP(i__),
+ DM(i__),SBC9(i__),GCVS(i__),ADS(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end