Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_AS/91/337 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-17 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/91/337 Steep spectrum radio spectra sources (Soboleva+ 1991) *================================================================================ *A list of steep spectrum radio spectra sources * Soboleva N.S., Temirova A.V., Reich. P. * <Astron. Astrophys. Suppl. Ser. 91, 337 (1991)> * =1991A&AS...91..337S C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2' ! A list of steep spectrum radio sources integer*4 nr__ parameter (nr__=299) ! Number of records character*36 ar__ ! Full-size record C 1950 position composed of: RAh RAm RAs DEd DEm DEs real*8 RAdeg ! (deg) Right Ascension 1950 real*8 DEdeg ! (deg) Declination 1950 C ---------------------------------- ! (position vector(s) in degrees) real*4 alpha ! Spectral index (S proportional to nu^(-alpha)) integer*4 RAh ! (h) right ascension (1950) integer*4 RAm ! (min) right ascension (1950) real*4 RAs ! (s) right ascension (1950) integer*4 DEd ! (deg) declination (1950) integer*4 DEm ! (arcmin) declination (1950) integer*4 DEs ! (arcsec) declination (1950) character*6 Rem ! Further remarks (1) *Note (1): Source parameters from the Texas radio source catalogue * (Douglas et al. 1980, Univ.Texas., Publ. 17): * P: point source * D: double source * AD: asymetrical double * strings like -1+1 refer to possible lobe shifts in the Texas catalogue C============================================================================= C Loading file 'table2' ! A list of steep spectrum radio sources C Format for file interpretation 1 format(2X,F4.2,1X,I2,1X,I2,1X,F5.2,1X,I2,1X,I2,1X,I2,1X,A6) C Effective file loading open(unit=1,status='old',file= +'table2') write(6,*) '....Loading file: table2' do i__=1,299 read(1,'(A36)')ar__ read(ar__,1)alpha,RAh,RAm,RAs,DEd,DEm,DEs,Rem 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(RAs .GT. -180) RAdeg=RAdeg+RAs/240. if(DEd .GE. 0) DEdeg=DEd if(DEm .GE. 0) DEdeg=DEdeg+DEm/60. if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600. c ..............Just test output........... write(6,1)alpha,RAh,RAm,RAs,DEd,DEm,DEs,Rem write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= stop end