Conversion of standardized ReadMe file for
file /./ftp/cats/J/PASP/118/1238 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-18 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/PASP/118/1238 Radial velocity curve of RBS 490 (Thorstensen+, 2006) *================================================================================ *The unusual cataclysmic binary star RBS 0490 and the space density of *cataclysmic variables. * Thorstensen J.R., Lepine S., Shara M. * <Publ. Astron. Soc. Pac., 118, 1238-1244 (2006)> * =2006PASP..118.1238T C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! *Filter photometry (for 20 stars) integer*4 nr__ parameter (nr__=21) ! Number of records character*67 ar__ ! Full-size record C Position composed of: RAh RAm RAs DE- DEd DEm DEs character*1 Sample ! [FV] Field stars (averages of two observations) * or Variable star (two observations separately) integer*4 RAh ! (h) Right ascension (ICRS) (1) integer*4 RAm ! (min) Right ascension (ICRS) (1) real*4 RAs ! (s) Right ascension (ICRS) (1) character*1 DE_ ! Declination sign (IRCS) (1) integer*4 DEd ! (deg) Declination (IRCS) (1) integer*4 DEm ! (arcmin) Declination (IRCS) (1) real*4 DEs ! (arcsec) Declination (IRCS) (1) real*4 U_B ! (mag) ?=- U-B colour index real*4 e_U_B ! (mag) ? rms uncertainty on U-B (2) real*4 B_V ! (mag) B-V colour index real*4 e_B_V ! (mag) rms uncertainty on B-V (2) real*4 Vmag ! (mag) V magnitude real*4 e_Vmag ! (mag) rms uncertainty on Vmag (2) real*4 V_I ! (mag) V-I colour index real*4 e_V_I ! (mag) rms uncertainty on V-I (2) *Note (1): Coordinates referred to the ICRS and are from a fit to 24 * USNOA2.0 stars, with a scatter of 0.6". *Note (2): Uncertainties greater than 0.01mag are derived from counting * statistics. Counting statistics errors less than 0.005mag have been * rounded up to 0.01mag; systematic errors are expected to be several * times larger than this in any case c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table4.dat' ! Radial Velocities for RBS 490 ([TLS2006] J035410.31-165250.3) integer*4 nr__1 parameter (nr__1=105) ! Number of records character*16 ar__1 ! Full-size record real*8 HJD ! (d) Heliocentric Julian Date of mid-exposure integer*4 RVemm ! (km/s) Average velocity of H{beta}, HeI 5876, and * HeI 6678 c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table6.dat' ! *Astrometric parameters for all the stars measured in the field integer*4 nr__2 parameter (nr__2=44) ! Number of records character*69 ar__2 ! Full-size record C Position composed of: RAh RAm RAs DE- DEd DEm DEs character*1 Star ! [*] * for program star (RBS 490) integer*4 RAh_1 ! (h) Right ascension (ICRS, J2000) integer*4 RAm_1 ! (min) Right ascension (ICRS, J2000) real*4 RAs_1 ! (s) Right ascension (ICRS, J2000) character*1 DE__1 ! Declination sign (IRCS, J2000) integer*4 DEd_1 ! (deg) Declination (IRCS, J2000) integer*4 DEm_1 ! (arcmin) Declination (IRCS, J2000) real*4 DEs_1 ! (arcsec) Declination (IRCS, J2000) integer*4 Weight ! [0/1] Weight, 1 or 0, depending on whether the * star is used as reference integer*4 sigma ! (mag) rms deviation from the relative positions * predicted by the best-fit parallax and * proper motion real*4 Vmag_1 ! (mag) V magnitude real*4 V_I_1 ! (mag) V-I colour index real*4 plx ! (mag) Relative parallax real*4 e_plx ! (mag) rms uncertainty on plx real*4 pmX ! (mas/yr) Proper motion along X (1) real*4 pmY ! (mas/yr) Proper motion along Y (1) real*4 e_pmX ! (mas/yr) rms uncertainty on pmX and pmY *Note (1): Proper motions are relative to the set of reference stars used * and are not on an inertial system. C============================================================================= C Loading file 'table2.dat' ! *Filter photometry (for 20 stars) C Format for file interpretation 1 format( + A1,1X,I1,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.2,1X,F4.2, + 1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F4.2,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,21 read(1,'(A67)')ar__ read(ar__,1) + Sample,RAh,RAm,RAs,DE_,DEd,DEm,DEs,U_B,e_U_B,B_V,e_B_V,Vmag, + e_Vmag,V_I,e_V_I if (idig(ar__(26:30)).EQ.0) U_B = rNULL__ if(ar__(32:35) .EQ. '') e_U_B = rNULL__ c ..............Just test output........... write(6,1) + Sample,RAh,RAm,RAs,DE_,DEd,DEm,DEs,U_B,e_U_B,B_V,e_B_V,Vmag, + e_Vmag,V_I,e_V_I c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table4.dat' ! Radial Velocities for RBS 490 * ([TLS2006] J035410.31-165250.3) C Format for file interpretation 2 format(F12.4,1X,I3) C Effective file loading open(unit=1,status='old',file= +'table4.dat') write(6,*) '....Loading file: table4.dat' do i__=1,105 read(1,'(A16)')ar__1 read(ar__1,2)HJD,RVemm c ..............Just test output........... write(6,2)HJD,RVemm c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table6.dat' ! *Astrometric parameters for all the stars * measured in the field C Format for file interpretation 3 format( + A1,I1,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,I1,1X,I3,1X, + F5.2,1X,F4.2,1X,F5.1,1X,F4.1,1X,F5.1,1X,F6.1,1X,F4.1) C Effective file loading open(unit=1,status='old',file= +'table6.dat') write(6,*) '....Loading file: table6.dat' do i__=1,44 read(1,'(A69)')ar__2 read(ar__2,3) + Star,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Weight,sigma, + Vmag_1,V_I_1,plx,e_plx,pmX,pmY,e_pmX c ..............Just test output........... write(6,3) + Star,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Weight,sigma, + Vmag_1,V_I_1,plx,e_plx,pmX,pmY,e_pmX 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