Conversion of standardized ReadMe file for
file /./ftp/cats/V/33 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. V/33 DDO Photometry and Radial Velocities at Galactic Poles (Hartkopf+ 1982) *================================================================================ *A Kinematic Abundance Survey at the Galactic Poles * Hartkopf W.I., Yoss K.M. * <Astron. J. Vol. 87, No. 12, p. 1679 (1982)> * =1982AJ.....87.1679H C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'phot.dat' ! Average Values for DDO, Mg Photometry integer*4 nr__ parameter (nr__=847) ! Number of records character*69 ar__ ! Full-size record C 1950 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg ! (deg) Right Ascension 1950 real*8 DEdeg ! (deg) Declination 1950 C ---------------------------------- ! (position vector(s) in degrees) character*10 Name ! Identification of the star (G1) character*10 name2 ! Other designation integer*4 RAh ! (h) + Right Ascension hours (1950) integer*4 RAm ! (min) Right Ascension minutes real*4 RAs ! (s) Right Ascension seconds character*1 DE_ ! Declination sign integer*4 DEd ! (deg) Declination degrees integer*4 DEm ! (arcmin) Declination arcminutes integer*4 DEs ! (arcsec) Declination arcseconds integer*4 C48_45 ! (mmag) ? DDO 48-45 Color integer*4 C45_42 ! (mmag) ? DDO 45-42 Color integer*4 C41_42 ! (mmag) ? DDO 41-42 Color integer*4 C51_48 ! (mmag) ? DDO 51-48 Color (Mg index) (G2) integer*4 Nobs ! Number of observations character*4 Reg ! Region (G3) c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'obs.dat' ! Individual Observations for DDO, Mg Photometry integer*4 nr__1 parameter (nr__1=2861) ! Number of records character*69 ar__1 ! Full-size record C 1950 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg_1 ! (deg) Right Ascension 1950 real*8 DEdeg_1 ! (deg) Declination 1950 C ---------------------------------- ! (position vector(s) in degrees) character*10 Name_1 ! Identification of the star (G1) character*10 name2_1 ! Other designation integer*4 RAh_1 ! (h) + Right Ascension hours (1950) integer*4 RAm_1 ! (min) Right Ascension minutes real*4 RAs_1 ! (s) Right Ascension seconds character*1 DE__1 ! Declination sign integer*4 DEd_1 ! (deg) Declination degrees integer*4 DEm_1 ! (arcmin) Declination arcminutes integer*4 DEs_1 ! (arcsec) Declination arcseconds integer*4 C48_45_1 ! (mmag) ? DDO 48-45 Color integer*4 C45_42_1 ! (mmag) ? DDO 45-42 Color integer*4 C41_42_1 ! (mmag) ? DDO 41-42 Color integer*4 C51_48_1 ! (mmag) ? DDO 51-48 Color (Mg index) (G2) character*4 Reg_1 ! Region (G3) character*3 Std ! Category (G3) c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'rv.dat' ! Radial Velocities for NGP & SGP Stars integer*4 nr__2 parameter (nr__2=279) ! Number of records character*57 ar__2 ! Full-size record C 1950 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg_2 ! (deg) Right Ascension 1950 real*8 DEdeg_2 ! (deg) Declination 1950 C ---------------------------------- ! (position vector(s) in degrees) character*10 Name_2 ! Identification of the star (G1) character*10 name2_2 ! Other designation integer*4 RAh_2 ! (h) + Right Ascension hours (1950) integer*4 RAm_2 ! (min) Right Ascension minutes real*4 RAs_2 ! (s) Right Ascension seconds character*1 DE__2 ! Declination sign integer*4 DEd_2 ! (deg) Declination degrees integer*4 DEm_2 ! (arcmin) Declination arcminutes integer*4 DEs_2 ! (arcsec) Declination arcseconds real*4 RV ! (km/s) Heliocentric Radial Velocity real*4 e_RV ! (km/s) Mean Error of Velocity integer*4 o_RV ! Number of Observations character*1 Tel ! *[CDFIKY] Telescope(s) Used *Note on Tel: * Code for Telescope(s) from Hartkopf W.I. and Yoss K.M. 1982AJ.....87.1679H: * * TABLE V. Accuracies of radial-velocity observations (in km/s). * ------------------------------------------------------------------------ * Telescope/ Dispersion Error measurements** * Code Observer Year spectrograph (A/mm) Meas. Int. Obs. Ext. * ------------------------------------------------------------------------ * K WIH 1978 KPNO 2.1-m/regular 78 2.6 1.8 5.7 6.5 * Y KMY 1978 CTIO 1.0-m/image tube 43 1.6 5.8 3.1 * Y WIH 1979 CTIO 1.0-m/image tube 43 4.1 1.8 2.9 6.0 * Y WIH 1980 CTIO 1.0-m/image tube 43 2.0 3.6 6.5 7.8 * C KMY 1978 CTIO 1.5-m/regular 39 1.7 2.4 9.2 13.0* * F KMY 1979 KPNO coude feed/CIT 15 0.9 1.7 5.0 * D WIH 1980 KPNO 2.1-m/IIDS 29 1.8 3.9 5.4 * D WIH 1981 KPNO 2.1-m/IIDS 29 1.6 5.4 6.1 * I WIH 1981 KPNO 0.9-m/IRS 46 2.1 9.5 4.8 * ------------------------------------------------------------------------ * ** Error measurements are as follows: * Meas.: rms error for repeated measurements of same spectrum. * Int.: rms internal error from cross correlations. * Obs.: rms error for multiple observations of one star. * Ext.: rms external error (observed-published velocities). * * Half weight for bright stars. C============================================================================= C Loading file 'phot.dat' ! Average Values for DDO, Mg Photometry C Format for file interpretation 1 format( + A10,2X,A10,1X,I2,I2,F4.1,1X,A1,I2,I2,I2,2X,I4,1X,I4,1X,I4,1X, + I4,2X,I2,1X,A4) C Effective file loading open(unit=1,status='old',file= +'phot.dat') write(6,*) '....Loading file: phot.dat' do i__=1,847 read(1,'(A69)')ar__ read(ar__,1) + Name,name2,RAh,RAm,RAs,DE_,DEd,DEm,DEs,C48_45,C45_42,C41_42, + C51_48,Nobs,Reg if(ar__(42:45) .EQ. '') C48_45 = iNULL__ if(ar__(47:50) .EQ. '') C45_42 = iNULL__ if(ar__(52:55) .EQ. '') C41_42 = iNULL__ if(ar__(57:60) .EQ. '') C51_48 = iNULL__ 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) + Name,name2,RAh,RAm,RAs,DE_,DEd,DEm,DEs,C48_45,C45_42,C41_42, + C51_48,Nobs,Reg write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'obs.dat' ! Individual Observations for DDO, Mg Photometry C Format for file interpretation 2 format( + A10,2X,A10,1X,I2,I2,F4.1,1X,A1,I2,I2,I2,2X,I4,1X,I4,1X,I4,1X, + I4,1X,A4,1X,A3) C Effective file loading open(unit=1,status='old',file= +'obs.dat') write(6,*) '....Loading file: obs.dat' do i__=1,2861 read(1,'(A69)')ar__1 read(ar__1,2) + Name_1,name2_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1, + C48_45_1,C45_42_1,C41_42_1,C51_48_1,Reg_1,Std if(ar__1(42:45) .EQ. '') C48_45_1 = iNULL__ if(ar__1(47:50) .EQ. '') C45_42_1 = iNULL__ if(ar__1(52:55) .EQ. '') C41_42_1 = iNULL__ if(ar__1(57:60) .EQ. '') C51_48_1 = iNULL__ RAdeg_1 = rNULL__ DEdeg_1 = rNULL__ c Derive coordinates RAdeg_1 and DEdeg_1 from input data c (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown) if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15. if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4. if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240. if(DEd_1 .GE. 0) DEdeg_1=DEd_1 if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60. if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600. if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1 c ..............Just test output........... write(6,2) + Name_1,name2_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1, + C48_45_1,C45_42_1,C41_42_1,C51_48_1,Reg_1,Std write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'rv.dat' ! Radial Velocities for NGP & SGP Stars C Format for file interpretation 3 format( + A10,2X,A10,1X,I2,I2,F4.1,1X,A1,I2,I2,I2,2X,F5.1,2X,F4.1,1X,I2, + 1X,A1) C Effective file loading open(unit=1,status='old',file= +'rv.dat') write(6,*) '....Loading file: rv.dat' do i__=1,279 read(1,'(A57)')ar__2 read(ar__2,3) + Name_2,name2_2,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,RV, + e_RV,o_RV,Tel RAdeg_2 = rNULL__ DEdeg_2 = rNULL__ c Derive coordinates RAdeg_2 and DEdeg_2 from input data c (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown) if(RAh_2 .GT. -180) RAdeg_2=RAh_2*15. if(RAm_2 .GT. -180) RAdeg_2=RAdeg_2+RAm_2/4. if(RAs_2 .GT. -180) RAdeg_2=RAdeg_2+RAs_2/240. if(DEd_2 .GE. 0) DEdeg_2=DEd_2 if(DEm_2 .GE. 0) DEdeg_2=DEdeg_2+DEm_2/60. if(DEs_2 .GE. 0) DEdeg_2=DEdeg_2+DEs_2/3600. if(DE__2.EQ.'-'.AND.DEdeg_2.GE.0) DEdeg_2=-DEdeg_2 c ..............Just test output........... write(6,3) + Name_2,name2_2,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,RV, + e_RV,o_RV,Tel write(6,'(6H Pos: 2F8.4)') RAdeg_2,DEdeg_2 c .......End.of.Just test output........... end do close(1) C============================================================================= stop end