Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/509/A27 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-29 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+A/509/A27 Near-Earth asteroids & QSOs close approaches (Nedelcu+, 2010) *================================================================================ *Apparent close approaches between near-Earth asteroids and quasars. *Precise astrometry and frame linking. * Nedelcu D.A., Birlan M., Souchay J., Assafin M., Andrei A.H., Badescu O., * Popescu P., Paraschiv P. * <Astron. Astrophys. 509, A27 (2010)> * =2010A&A...509A..27N C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'appulses.dat' ! Near Earth Asteroids - Quasars appulses between 2010 and 2018 integer*4 nr__ parameter (nr__=106) ! Number of records character*111 ar__ ! Full-size record C J2000 position composed of: RAdeg DEdeg character*3 Ref (nr__) ! [ABC-] Reference flag (1) real*8 RAdeg (nr__) ! (deg) Right ascension in decimal degrees (J2000) (2) real*8 DEdeg (nr__) ! (deg) Declination in decimal degrees (J2000) (2) real*4 Umag (nr__) ! (mag) ?=- Photometric magnitude in Optical U band (2) real*4 Bmag (nr__) ! (mag) ?=- Photometric magnitude in Optical B band (2) real*4 Vmag (nr__) ! (mag) ?=- Photometric magnitude in Optical V band (2) real*4 Rmag (nr__) ! (mag) ?=- Photometric magnitude in Optical R band (2) real*4 Imag (nr__) ! (mag) ?=- Photometric magnitude in Optical I band (2) character*16 Date (nr__) ! Date of the close approach (YYYY/MM/DD.ddddd) integer*4 Ast (nr__) ! The asteroid number real*4 Vast (nr__) ! (mag) The estimated V magnitude of the asteroid real*4 Dist (nr__) ! (arcsec) The minimum apparent asteroid-quasar distance real*4 Sol (nr__) ! (deg) Solar elongation angle integer*4 N_ (nr__) ! The number of UCAC2 stars in a 10'x10' * field centered at the quasar J2000 position *Note (1): Quasars flag from LQAC, Cat. <J/A+A/494/799>: * A = ICRF-Ext2 (Fey et al., Cat. J/AJ/127/3587, ICRF-EXT.2) * B = VLBA (Beasley et al., Cat. J/ApJS/141/13, VCS1, * Fomalont et al., Cat. J/AJ/126/2562, VCS2) * C = VLA-015, VLA catalog minus 15 sources, (Cat. J/ApJS/141/13, * J/AJ/126/2562, J/AJ/129/1163, J/AJ/131/1872) *Note (2): Position and photometric magnitudes are from the Large Quasar * Astrometric Catalogue (LQAC), Cat. <J/A+A/494/799> C============================================================================= C Loading file 'appulses.dat' ! Near Earth Asteroids - Quasars appulses between * 2010 and 2018 C Format for file interpretation 1 format( + A3,1X,F15.11,1X,F15.11,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X, + F5.2,1X,A16,1X,I6,1X,F5.2,1X,F5.2,1X,F5.1,1X,I3) C Effective file loading open(unit=1,status='old',file= +'appulses.dat') write(6,*) '....Loading file: appulses.dat' do i__=1,106 read(1,'(A111)')ar__ read(ar__,1) + Ref(i__),RAdeg(i__),DEdeg(i__),Umag(i__),Bmag(i__),Vmag(i__), + Rmag(i__),Imag(i__),Date(i__),Ast(i__),Vast(i__),Dist(i__), + Sol(i__),N_(i__) if (idig(ar__(37:41)).EQ.0) Umag(i__) = rNULL__ if (idig(ar__(43:47)).EQ.0) Bmag(i__) = rNULL__ if (idig(ar__(49:53)).EQ.0) Vmag(i__) = rNULL__ if (idig(ar__(55:59)).EQ.0) Rmag(i__) = rNULL__ if (idig(ar__(61:65)).EQ.0) Imag(i__) = rNULL__ c ..............Just test output........... write(6,1) + Ref(i__),RAdeg(i__),DEdeg(i__),Umag(i__),Bmag(i__),Vmag(i__), + Rmag(i__),Imag(i__),Date(i__),Ast(i__),Vast(i__),Dist(i__), + Sol(i__),N_(i__) 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