Conversion of standardized ReadMe file for
file /./ftp/cats/J/other/AuJPA/14.77 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. J/other/AuJPA/14.77 408MHz galactic radio sources (Shaver+ 1970) *================================================================================ *Galactic radio sources. II. High resolution 408 MHz observations * Shaver P.A., Goss W.M. * <Australian J. Phys. Astrophys. Suppl., 14, 77 (1970)> * =1970AuJPA..14...77S (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Source positions and integrated flux densities integer*4 nr__ parameter (nr__=253) ! Number of records character*121 ar__ ! Full-size record C 1950 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg ! (deg) Right Ascension 1950 real*8 DEdeg ! (deg) Declination 1950 C ---------------------------------- ! (position vector(s) in degrees) character*11 v_GS70_ ! Galactic source name (GLLL.l+BB.b) character*1 n__GS70_ ! [*+] Note on [GS70] (1) real*8 GLON ! (deg) Source peak galactic longitude real*4 GLAT ! (deg) Source peak galactic latitude integer*4 RAh ! (h) Source peak right ascension (1950) integer*4 RAm ! (min) Source peak right ascension (1950) real*4 RAs ! (s) Source peak right ascension (1950) character*1 DE_ ! Source peak declination sign (1950) integer*4 DEd ! (deg) Source peak declination (1950) integer*4 DEm ! (arcmin) Source peak declination (1950) integer*4 DEs ! (arcsec) Source peak declination (1950) character*2 n_Tb ! Groups designation (2) integer*4 Tb ! (K) ? Individual base brightness temperature real*4 S408MHz ! (Jy) ? Individual flux density at 408MHz character*1 n_Tbc ! [a-k] Groups designation (3) integer*4 Tbc ! (K) ? Composite base brightness temperature real*4 S408MHzc ! (Jy) ? Composite flux density at 408MHz integer*4 Fig ! Countour map in which the source appears character*43 Name ! Other names *Note (1): * Galactic source number is different in Part I (Shaver & Goss, * 1970AuJPA..14....1S) due to positional measuring error and/or * real shifts in position with frequency. * + G25.4-0.2 has often been mistakenly identified as W42 *Note (2): For a group, same n_Tb, from a to ag, the values Tb, S, Tbc, Sc, * Fig and Name concern those of the group. * They are repeated in each line of the group members. *Note (3): For a group, same n_Tbc, the values Tbc, Sc, Fig and Name concern * those of the group. * They are repeated in each line of the group members. C============================================================================= C Loading file 'table1.dat' ! Source positions and integrated flux densities C Format for file interpretation 1 format( + A11,A1,1X,F7.3,1X,F6.3,2X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X, + I2,A2,1X,I3,2X,F6.1,A1,1X,I3,1X,F5.1,1X,I2,1X,A43) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,253 read(1,'(A121)')ar__ read(ar__,1) + v_GS70_,n__GS70_,GLON,GLAT,RAh,RAm,RAs,DE_,DEd,DEm,DEs,n_Tb, + Tb,S408MHz,n_Tbc,Tbc,S408MHzc,Fig,Name if(ar__(53:55) .EQ. '') Tb = iNULL__ if(ar__(58:63) .EQ. '') S408MHz = rNULL__ if(ar__(66:68) .EQ. '') Tbc = iNULL__ if(ar__(70:74) .EQ. '') S408MHzc = rNULL__ 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. if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg c ..............Just test output........... write(6,1) + v_GS70_,n__GS70_,GLON,GLAT,RAh,RAm,RAs,DE_,DEd,DEm,DEs,n_Tb, + Tb,S408MHz,n_Tbc,Tbc,S408MHzc,Fig,Name write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= stop end