Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/532/A101 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/A+A/532/A101 Lunar occultations of 184 stellar sources (Richichi+, 2011) *================================================================================ *Lunar occultations of 184 stellar sources in two crowded regions toward *the Galactic Bulge. * Richichi A., Chen W.P., Fors O., Wang P.F. * <Astron. Astrophys., 532, A101 (2011)> * =2011A&A...532A.101R C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! List of the recorded occultation events integer*4 nr__ parameter (nr__=184) ! Number of records character*89 ar__ ! Full-size record character*16 v2MASS ! 2MASS name (HHMMSSss+DDMMSSs, Cat. II/246) character*10 Obs_date ! ("DD-MM-YYYY") Observation date character*8 Obs_time ! ("h:m:s") UT time of observation real*4 Jmag ! (mag) ?=- 2MASS J magnitude real*4 Hmag ! (mag) ?=- 2MASS H magnitude real*4 Kmag ! (mag) 2MASS Ks magnitude character*7 SpType ! MK spectral type character*15 OName ! Cross-Identification real*4 SNR ! Signal-to-noise ratio real*4 Klim ! (mag) Limiting K magnitude c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table3.dat' ! Summary of results integer*4 nr__1 parameter (nr__1=30) ! Number of records character*92 ar__1 ! Full-size record character*16 v2MASS_1 ! 2MASS name (HHMMSSss+DDMMSSs) real*4 V ! (m/ms) Fitted linear rate of the event value real*4 V_Vt_1 ! (%) Deviation from the predicted rate Vt (V/Vt)-1 real*4 psi ! (deg) Local lunar limb slope {psi} integer*4 PA ! (deg) Position angle integer*4 CA ! (deg) Contact angle real*4 SNR_1 ! Signal-to-noise ratio real*4 Sep ! (mas) ?=- Projected separation for binary detections real*4 e_Sep ! (mas) ?=- rms uncertainty on Sep real*4 BR ! ?=- Brightness ratio real*4 e_BR ! ?=- rms uncertainty on BR character*18 Com ! Comments C============================================================================= C Loading file 'table2.dat' ! List of the recorded occultation events C Format for file interpretation 1 format( + A16,1X,A10,1X,A8,1X,F5.2,1X,F5.2,1X,F5.2,1X,A7,1X,A15,1X,F5.1, + 1X,F4.1) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,184 read(1,'(A89)')ar__ read(ar__,1) + v2MASS,Obs_date,Obs_time,Jmag,Hmag,Kmag,SpType,OName,SNR,Klim if (idig(ar__(38:42)).EQ.0) Jmag = rNULL__ if (idig(ar__(44:48)).EQ.0) Hmag = rNULL__ c ..............Just test output........... write(6,1) + v2MASS,Obs_date,Obs_time,Jmag,Hmag,Kmag,SpType,OName,SNR,Klim c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table3.dat' ! Summary of results C Format for file interpretation 2 format( + A16,1X,F6.4,1X,F5.1,1X,F5.1,1X,I3,1X,I3,1X,F5.1,1X,F5.1,1X, + F3.1,2X,F6.2,1X,F5.2,1X,A18) C Effective file loading open(unit=1,status='old',file= +'table3.dat') write(6,*) '....Loading file: table3.dat' do i__=1,30 read(1,'(A92)')ar__1 read(ar__1,2) + v2MASS_1,V,V_Vt_1,psi,PA,CA,SNR_1,Sep,e_Sep,BR,e_BR,Com if (idig(ar__1(51:55)).EQ.0) Sep = rNULL__ if (idig(ar__1(57:59)).EQ.0) e_Sep = rNULL__ if (idig(ar__1(62:67)).EQ.0) BR = rNULL__ if (idig(ar__1(69:73)).EQ.0) e_BR = rNULL__ c ..............Just test output........... write(6,2) + v2MASS_1,V,V_Vt_1,psi,PA,CA,SNR_1,Sep,e_Sep,BR,e_BR,Com 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