Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/171/475 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 2024-Mar-19 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/MNRAS/171/475 The 5C5 survey of radio sources. (Pearson, 1975) *================================================================================ *The 5C5 survey of radio sources. * Pearson T.J. * <Mon. Not. R. Astron. Soc. 171, 475 (1975)> * =1975MNRAS.171..475P C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for '5c5.dat' ! 5C5 Survey of Radio Sources (RA: 9.5h-9.9h; DEC: 44.5{deg} -49.5{deg} ) integer*4 nr__ parameter (nr__=252) ! Number of records character*129 ar__ ! Full-size record C B1950 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg (nr__) ! (deg) Right Ascension B1950 real*8 DEdeg (nr__) ! (deg) Declination B1950 C ---------------------------------- ! (position vector(s) in degrees) character*8 Name (nr__) ! Name of source (1) integer*4 RAh (nr__) ! (h) Right Ascension (B1950) (hour) (2) integer*4 RAm (nr__) ! (min) Right Ascension (B1950) (min) real*4 RAs (nr__) ! (s) Right Ascension (B1950) (sec) character*1 DE_ (nr__) ! Declination sign (B1950) (2) integer*4 DEd (nr__) ! (deg) Declination (B1950) (deg) integer*4 DEm (nr__) ! (arcmin) Declination (B1950) (arcmin) real*4 DEs (nr__) ! (arcsec) Declination (B1950) (arcsec) real*4 pos_err (nr__) ! (arcsec) ? Positional uncertainty in R.A. (2) character*1 ext_flag (nr__) ! [ e] Flagged 'e' if extended (2) integer*4 S408 (nr__) ! (mJy) ? 408 MHz flux density (3) integer*4 e_S408 (nr__) ! (mJy) ? Error on 408 flux density (3) character*1 f_S408 (nr__) ! [ *] '*' flux density is almost certainly * wrong (3) real*4 att_408 (nr__) ! ? Envelope attenuation at 408 MHz (3) real*4 S1407 (nr__) ! (mJy) ? Flux density at 1407 MHz (4) real*4 e_S1407 (nr__) ! (mJy) ? Error on 1407 flux density (4) character*1 f_S1407 (nr__) ! [ *] '*' flux density is almost certainly * wrong (4) real*4 att_1407 (nr__) ! ? Envelope attenuation at 1407 MHz (4) real*4 Sp_Index (nr__) ! ? Spectral index between 408 and 1407 MHz (5) character*61 comments (nr__) ! Comments on the source (6) *Note (1): The serial number of the 5C5 source is given in this column. The * sources in each survey are numbered in increasing order of right * ascension. Occasionally two sources are grouped together in the * lists, and given suffixes a, b; this is done either when there * are two peaks of emission at 1407 MHz but only one at 408 MHz, or * when there is an obvious association between the two sources. The * IAU nomenclature has not been adopted because this position-based * system would be ambiguous for some of the 5C sources which are * very close together. The authors recommend that when it is * necessary to refer to a source by its 5C name in a context in * which its position is not obvious, the 5C name should be * accompanied by the IAU name in parentheses, thus: 5C5.103 * (0938+467). *Note (2): These columns give the B1950.0 right ascension and declination of * the radio source. Positions measured at 1407 MHz are flagged with * an asterisk ('*') in the ext_flag column and are accurate to an * extra decimal place in right ascension and declination (2 decimal * places in RA and 1 in declination). For extended sources, the * position given is the peak of emission, the positional error * (pos_err) is listed as blank and 'ext_flag' is marked 'e'. *Note (3): These columns give flux density information at 408 MHz. The flux * density is given in the S408 column. The rms uncertainty in the * 408 MHz flux density is given in the e_S408 column, which * includes a contribution of 3 percent uncertainty in the envelope * correction. * The att_408 column gives the envelope attenuation * factor at 408 MHz (multiply S by this factor to recover S' and * hence the signal-to- noise ratio). * An asterisk in the f_S408 column indicates that the uncertainty * in flux density is very large because the source lies outside the * measured part of the envelope (attenuation factor less than 0.1) * These sources are included in the table only for their positions; * many of them have been observed in other surveys so it is * possible to check the positional accuracy. *Note (4): These columns give flux density information at 1407 MHz. The flux * density is given in the S1407 column. The rms uncertainty in the * 1407 MHz flux density is given in the e_S1407 column, and the * att_1407 column gives the envelope attenuation factor at 1407 * MHz. An asterisk in the f_S1407 column indicates that the * uncertainty in flux density is very large because the source lies * outside the measured part of the envelope (attenuation factor * less than 0.15) These sources are included in the table only for * their positions; many of them have been observed in other surveys * so it is possible to check the positional accuracy. *Note (5): This column gives the spectral index between 408 and 1407 MHz. * Alpha is defined in the sense S {prop.to} {nu}^-{alpha}^. *Note (6): This column gives comments on the source. The following * abbreviations are used: * * ARG Half-Mile telescope Survey at 1421 MHz (Gillespie, * 1975MNRAS.170..541G) * KPD 5 GHz KPD survey (Kellermann et al. 1968) C============================================================================= C Loading file '5c5.dat' ! 5C5 Survey of Radio Sources * (RA: 9.5h-9.9h; DEC: 44.5{deg} -49.5{deg} ) C Format for file interpretation 1 format( + A8,I2,I2,F5.2,A1,I2,I2,F4.1,1X,F3.1,A1,1X,I4,1X,I3,A1,1X,F3.2, + 1X,F5.1,1X,F4.1,A1,1X,F3.2,1X,F5.2,1X,A61) C Effective file loading open(unit=1,status='old',file= +'5c5.dat') write(6,*) '....Loading file: 5c5.dat' do i__=1,252 read(1,'(A129)')ar__ read(ar__,1) + Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),pos_err(i__),ext_flag(i__),S408(i__), + e_S408(i__),f_S408(i__),att_408(i__),S1407(i__),e_S1407(i__), + f_S1407(i__),att_1407(i__),Sp_Index(i__),comments(i__) if(ar__(28:30) .EQ. '') pos_err(i__) = rNULL__ if(ar__(33:36) .EQ. '') S408(i__) = iNULL__ if(ar__(38:40) .EQ. '') e_S408(i__) = iNULL__ if(ar__(43:45) .EQ. '') att_408(i__) = rNULL__ if(ar__(47:51) .EQ. '') S1407(i__) = rNULL__ if(ar__(53:56) .EQ. '') e_S1407(i__) = rNULL__ if(ar__(59:61) .EQ. '') att_1407(i__) = rNULL__ if(ar__(63:67) .EQ. '') Sp_Index(i__) = rNULL__ RAdeg(i__) = rNULL__ DEdeg(i__) = rNULL__ c Derive coordinates RAdeg and DEdeg from input data c (RAdeg and DEdeg are set to rNULL__ when unknown) if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15. if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4. if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240. if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__) if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60. if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600. if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__) c ..............Just test output........... write(6,1) + Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),pos_err(i__),ext_flag(i__),S408(i__), + e_S408(i__),f_S408(i__),att_408(i__),S1407(i__),e_S1407(i__), + f_S1407(i__),att_1407(i__),Sp_Index(i__),comments(i__) write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end