Conversion of standardized ReadMe file for
file /./ftp/cats/J/AZh/89/388 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-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/AZh/89/388 Flat-spectrum radio sources long-term variability (Gorshkov+, 2012) *================================================================================ *Long-term variability of a complete sample of flat-spectrum radio sources at *declinations 10{deg}-12{deg}30' (J2000). * Gorshkov A.G., Konnikova V.K., Mingaliev M.G. * <Astron. Zh. 89, 388 (2012)> * =2012AZh....89..388G * =2012ARep...56..345G C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Identifications and variability indices integer*4 nr__ parameter (nr__=83) ! Number of records character*57 ar__ ! Full-size record C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg ! (deg) Right Ascension J2000 real*8 DEdeg ! (deg) Declination J2000 C ---------------------------------- ! (position vector(s) in degrees) integer*4 RAh ! (h) Radio right ascension (J2000) integer*4 RAm ! (min) Radio right ascension (J2000) real*4 RAs ! (s) Radio right ascension (J2000) character*1 DE_ ! Radio declination sign (J2000) integer*4 DEd ! (deg) Radio declination (J2000) integer*4 DEm ! (arcmin) Radio declination (J2000) real*4 DEs ! (arcsec) Radio declination (J2000) character*2 Cl ! [Q G L EF] Classification: Quasar, Galaxy, * BL Lac object, or Empty Field real*4 z ! ?=- Redshift of the optical counterpart integer*4 r_z ! ?=- Redshift reference (2) real*4 Bmag ! (mag) ?=- USNO B magnitude real*4 V7_7 ! ?=- Variability index at 7.7GHz (3) real*4 V11_1 ! ?=- Variability index at 11.1GHz (3) real*4 V21_7 ! ?=- Variability index at 21.7GHz (3) *Note (2): References as follows: * 15 = Ceron-Cetty and Veron, 2010, Cat. VII/258 * 16 = Chavushyan et al., 2002ARep...46..697C * 17 = Snellen et al., 2002, Cat. J/MNRAS/329/700 * 18 = Bisikalo et al., 2005ARep...49..701B * 19 = Afanas'ev et al., 2006ARep...50..255A *Note (3): The variability index is defined as: * V=[(Smax-{sigma}mag)-(Smin+{sigma}min)]/[(Smax-{sigma}mag)+(Smin+{sigma}min)], * where Smax and Smin are the maximum and minimum flux densities recorded during * the ten-year observations, and {sigma}max and {sigma}min are the corresponding * rms errors. C============================================================================= C Loading file 'table1.dat' ! Identifications and variability indices C Format for file interpretation 1 format( + I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,A2,1X,F5.3,1X,I2, + 1X,F4.1,1X,F4.2,1X,F4.2,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,83 read(1,'(A57)')ar__ read(ar__,1) + RAh,RAm,RAs,DE_,DEd,DEm,DEs,Cl,z,r_z,Bmag,V7_7,V11_1,V21_7 if (idig(ar__(30:34)).EQ.0) z = rNULL__ if (r_z .EQ. 45) r_z = iNULL__ if (idig(ar__(39:42)).EQ.0) Bmag = rNULL__ if (idig(ar__(44:47)).EQ.0) V7_7 = rNULL__ if (idig(ar__(49:52)).EQ.0) V11_1 = rNULL__ if (idig(ar__(54:57)).EQ.0) V21_7 = 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) + RAh,RAm,RAs,DE_,DEd,DEm,DEs,Cl,z,r_z,Bmag,V7_7,V11_1,V21_7 write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= stop end C Locate position of first digit in string; or return 0 integer function idig(c) character*(*) c character*1 c1 integer lc,i lc=len(c) idig=0 do i=1,lc if(c(i:i).ne.' ') go to 1 end do 1 if(i.gt.lc) return c1=c(i:i) if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1 if(i.gt.lc) return c1=c(i:i) if(c1.ge.'0'.and.c1.le.'9') idig=i return end