Conversion of standardized ReadMe file for
file /./ftp/cats/V/39 into FORTRAN code for reading data files line by line.
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 2024-Apr-20 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. V/39 4th Catalog of Orbits of Visual Binaries (Worley+, 1983) *================================================================================ *The Fourth Catalog of Orbits of Visual Binary Stars * Worley C.E., Heintz W.D. * <Publ. U.S. Naval Obs. (2) 24, part VII (1983)> * =1983PUSNO..24g...1W (SIMBAD/NED RefCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'catalog.dat' ! 4th Catalogue of Orbits of Visual Binary Stars integer*4 nr__ parameter (nr__=933) ! Number of records character*262 ar__ ! Full-size record C 1900.0 position composed of: RAh RAm DE- DEd DEm real*8 RAdeg ! (deg) Right Ascension 1900.0 real*8 DEdeg ! (deg) Declination 1900.0 C ---------------------------------- ! (position vector(s) in degrees) integer*4 RAh ! (h) Hours RA, 1900.0 real*4 RAm ! (min) Minutes RA, 1900.0 character*1 DE_ ! Sign Dec, 1900.0 integer*4 DEd ! (deg) Degrees Dec, 1900.0 integer*4 DEm ! (arcmin) Minutes Dec, 1900.0 character*1 Note ! [*] '*' indicates a note in file "notes" character*6 ADS ! Aitken's Double Star Catalog (ADS) designation real*4 MagA ! (mag) ? Magnitude of component A character*1 n_MagA ! [V] 'V' if MagA is variable real*4 MagB ! (mag) ? Magnitude of component B character*1 n_MagB ! [V] 'V' if MagB is variable real*8 Period ! (a) Period of the binary star orbit real*8 Axis ! (arcsec) ? Semi-major axis of the orbit real*4 Incl ! (deg) [0/180] Inclination (i) of the orbit real*4 Omega ! (deg) [0/360[? Position of the Node character*1 n_Omega ! [*] '*' if Omega is identified as the * ascending node character*1 n_Grade ! [A] 'A' indicates ambiguities (see intro) integer*4 Grade ! [1/5]? The grade from 1 (definitive) to * 5 (indeterminate), see file intro integer*4 DateObs ! (a) ? Date of last observation used in computation character*44 Author ! Computer of the orbit character*27 Name ! Common names of the star character*7 SpTypeA ! Spectral type of component A character*7 SpTypeB ! Spectral type of component B (1) real*8 PeriT ! (a) ? Time of periastron passage real*4 Ecc ! [0/1]? Eccentricity real*4 omega_1 ! (deg) [0/360[? Longitude of Peri reckoned from Omega integer*4 Eqomega ! (a) ? Equinox of Omega character*9 Ephem ! Inclusive dates of ephemeris character*42 Ref ! Text of bibliographic reference *Note (1): An '*' following this value indicates the spectral types * have been inferred from a combined spectrum and a known * magnitude difference. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'notes.dat' ! Notes about flagged orbits integer*4 nr__1 parameter (nr__1=612) ! Number of records character*79 ar__1 ! Full-size record character*10 RADec ! Name based on 1900 position, form "HHMMm+DDMM" character*67 Note_1 ! Notes C============================================================================= C Loading file 'catalog.dat' ! 4th Catalogue of Orbits of Visual Binary Stars C Format for file interpretation 1 format( + 1X,I2,1X,F4.1,2X,A1,I2,1X,I2,A1,2X,A6,1X,F5.2,A1,1X,F5.2,A1, + 2X,F9.4,F7.3,2X,F6.2,2X,F6.2,A1,3X,A1,I1,2X,I4,3X,A44,A27,A7, + A7,1X,F8.3,1X,F6.3,2X,F6.2,2X,I4,6X,A9,2X,A42) C Effective file loading open(unit=1,status='old',file= +'catalog.dat') write(6,*) '....Loading file: catalog.dat' do i__=1,933 read(1,'(A262)')ar__ read(ar__,1) + RAh,RAm,DE_,DEd,DEm,Note,ADS,MagA,n_MagA,MagB,n_MagB,Period, + Axis,Incl,Omega,n_Omega,n_Grade,Grade,DateObs,Author,Name, + SpTypeA,SpTypeB,PeriT,Ecc,omega_1,Eqomega,Ephem,Ref if(ar__(27:31) .EQ. '') MagA = rNULL__ if(ar__(34:38) .EQ. '') MagB = rNULL__ if(ar__(51:57) .EQ. '') Axis = rNULL__ if(ar__(68:73) .EQ. '') Omega = rNULL__ if(ar__(79:79) .EQ. '') Grade = iNULL__ if(ar__(82:85) .EQ. '') DateObs = iNULL__ if(ar__(175:182) .EQ. '') PeriT = rNULL__ if(ar__(184:189) .EQ. '') Ecc = rNULL__ if(ar__(192:197) .EQ. '') omega_1 = rNULL__ if(ar__(200:203) .EQ. '') Eqomega = iNULL__ RAdeg = rNULL__ DEdeg = rNULL__ c Derive coordinates RAdeg and DEdeg from input data c (RAdeg and DEdeg are set to rNULL__ when unknown) if(RAh .GT. -180) RAdeg=RAh*15. if(RAm .GT. -180) RAdeg=RAdeg+RAm/4. if(DEd .GE. 0) DEdeg=DEd if(DEm .GE. 0) DEdeg=DEdeg+DEm/60. if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg c ..............Just test output........... write(6,1) + RAh,RAm,DE_,DEd,DEm,Note,ADS,MagA,n_MagA,MagB,n_MagB,Period, + Axis,Incl,Omega,n_Omega,n_Grade,Grade,DateObs,Author,Name, + SpTypeA,SpTypeB,PeriT,Ecc,omega_1,Eqomega,Ephem,Ref write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'notes.dat' ! Notes about flagged orbits C Format for file interpretation 2 format(A10,2X,A67) C Effective file loading open(unit=1,status='old',file= +'notes.dat') write(6,*) '....Loading file: notes.dat' do i__=1,612 read(1,'(A79)')ar__1 read(ar__1,2)RADec,Note_1 c ..............Just test output........... write(6,2)RADec,Note_1 c .......End.of.Just test output........... end do close(1) C============================================================================= stop end