Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/375/1381 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/MNRAS/375/1381 Kinematics of RR Lyr and HB stars in NGP (Kinman+, 2007) *================================================================================ *Kinematic structure in the Galactic halo at the North Galactic Pole: *RR Lyrae and blue horizontal branch stars show different kinematics. * Kinman T.D., Cacciari C., Bragaglia A., Buzzoni A., Spagna A. * <Mon. Not. R. Astron. Soc., 375, 1381-1398 (2007)> * =2007MNRAS.375.1381K C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! The BHB stars of our sample, parallaxes and proper motions integer*4 nr__ parameter (nr__=79) ! Number of records character*108 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) character*8 Name ! Name integer*4 RAh ! (h) Right ascension (J2000) integer*4 RAm ! (min) Right ascension (J2000) real*4 RAs ! (s) Right ascension (J2000) character*1 DE_ ! Declination sign (2000) integer*4 DEd ! (deg) Declination (2000) integer*4 DEm ! (arcmin) Declination (2000) integer*4 DEs ! (arcsec) Declination (2000) real*4 Vmag ! (mag) V magnitude real*4 B_V ! (mag) B-V colour index real*4 E_B_V ! (mag) Redenning real*4 Kmag ! (mag) 2MASS K magnitude character*1 Q ! [ABCDU] Photometric quality (G1) real*4 pi1 ! (mas) Parallax derived from HBP method (1) real*4 e_pi1 ! (mas) rms uncertainty on piHBP real*4 pi2 ! (mas) Parallax derived from HBC method (2) real*4 pi3 ! (mas) Parallax derived from HVK method (3) real*4 pmRA ! (mas/yr) Proper motion along right ascension real*4 e_pmRA ! (mas/yr) rms uncertainty on pmRA real*4 pmDE ! (mas/yr) Proper motion along declination real*4 e_pmDE ! (mas/yr) rms uncertainty on pmDE integer*4 RV ! (km/s) Radial velocity integer*4 e_RV ! (km/s) rms uncertainty on RV *Note (1): {pi}(HBP) is derived from the equation * VMAG=1-4.423(B-V)0+17.47(B-V)0^2^-35.73(B-V)0^3^ *Note (2): {pi}(HBC) is derived from the equation * VMAG=1.145-5.615(B-V)0+16.28(B-V)0^2^-14.93(B-V)0^3^ *Note (3): {pi}(HVK) is derived from the equation * KMAG=0.878-1.812(V-K)0+0.675(V-K)0^2^-0.183(V-K)0^3^ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! The RRL stars of our sample, parallaxes and proper motions integer*4 nr__1 parameter (nr__1=38) ! Number of records character*116 ar__1 ! Full-size record C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg_1 ! (deg) Right Ascension J2000 real*8 DEdeg_1 ! (deg) Declination J2000 C ---------------------------------- ! (position vector(s) in degrees) character*8 Name_1 ! Name integer*4 RAh_1 ! (h) Right ascension (J2000) integer*4 RAm_1 ! (min) Right ascension (J2000) real*4 RAs_1 ! (s) Right ascension (J2000) character*1 DE__1 ! Declination sign (2000) integer*4 DEd_1 ! (deg) Declination (2000) integer*4 DEm_1 ! (arcmin) Declination (2000) integer*4 DEs_1 ! (arcsec) Declination (2000) real*4 logP ! ([d]) Period character*1 n_logP ! [*] * for C-type variables real*4 v_Fe_H_ ! ([Sun]) ?=- Metallicity real*4 v_Vmag_ ! (mag) Average V magnitude real*4 v_Kmag_ ! (mag) Average 2MASS K magnitude character*1 Q_1 ! [ABCDU] Photometric quality (G1) real*4 E_B_V_1 ! (mag) Redenning real*4 pi1_1 ! (mas) Parallax derived from V method (1) real*4 e_pi1_1 ! (mas) rms uncertainty on piV real*4 pi2_1 ! (mas) Parallax derived from K method (2) real*4 pi3_1 ! (mas) Parallax derived from HB method (3) real*4 pmRA_1 ! (mas/yr) Proper motion along right ascension real*4 e_pmRA_1 ! (mas/yr) rms uncertainty on pmRA real*4 pmDE_1 ! (mas/yr) Proper motion along declination real*4 e_pmDE_1 ! (mas/yr) rms uncertainty on pmDE integer*4 RV_1 ! (km/s) ?=- Radial velocity integer*4 e_RV_1 ! (km/s) ?=- rms uncertainty on RV *Note (1): {pi}_1_ is derived from the equation * VMAG=0.214[Fe/H]+0.86 *Note (2): {pi}_2_ is derived from the equation * KMAG=-2.40logP+0.06[Fe/H]-1.06 *Note (3): {pi}_3_ is derived from the equation * KMAG=1.166+0.18[Fe/H]-1.812(V-K)0+0.675(V-K)0^2^-0.183(V-K)0^3^ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table8.dat' ! The BHB stars of our sample, velocities integer*4 nr__2 parameter (nr__2=79) ! Number of records character*72 ar__2 ! Full-size record character*8 Name_2 ! Name real*4 Z ! (kpc) Height above the plane, Z real*4 Rgal ! (kpc) Galactocentric distance integer*4 Uvel ! (km/s) Heliocentric U velocity integer*4 e_Uvel ! (km/s) rms uncertainty on Uvel integer*4 Vvel ! (km/s) Heliocentric V velocity integer*4 e_Vvel ! (km/s) rms uncertainty on Vvel integer*4 Wvel ! (km/s) ?=- Heliocentric W velocity integer*4 e_Wvel ! (km/s) ?=- rms uncertainty on Wvel integer*4 Vr ! (km/s) Galactocentric cylindrical (radial) velocity integer*4 e_Vr ! (km/s) rms uncertainty on Vr integer*4 Vphi ! (km/s) Galactocentric cylindrical (orthoradial) velocity integer*4 e_Vphi ! (km/s) rms uncertainty on Vphi integer*4 Vz ! (km/s) ?=- Galactocentric cylindrical (z) velocity integer*4 e_Vz ! (km/s) ?=- rms uncertainty on Vz c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table9.dat' ! The RRL stars of our sample, velocities integer*4 nr__3 parameter (nr__3=38) ! Number of records character*72 ar__3 ! Full-size record character*8 Name_3 ! Name real*4 Z_1 ! (kpc) Height above the plane, Z real*4 Rgal_1 ! (kpc) Galactocentric distance integer*4 Uvel_1 ! (km/s) Heliocentric U velocity integer*4 e_Uvel_1 ! (km/s) rms uncertainty on Uvel integer*4 Vvel_1 ! (km/s) Heliocentric V velocity integer*4 e_Vvel_1 ! (km/s) rms uncertainty on Vvel integer*4 Wvel_1 ! (km/s) ?=- Heliocentric W velocity integer*4 e_Wvel_1 ! (km/s) ?=- rms uncertainty on Wvel integer*4 Vr_1 ! (km/s) Galactocentric cylindrical (radial) velocity integer*4 e_Vr_1 ! (km/s) rms uncertainty on Vr integer*4 Vphi_1 ! (km/s) Galactocentric cylindrical (orthoradial) velocity integer*4 e_Vphi_1 ! (km/s) rms uncertainty on Vphi integer*4 Vz_1 ! (km/s) ?=- Galactocentric cylindrical (z) velocity integer*4 e_Vz_1 ! (km/s) ?=- rms uncertainty on Vz C============================================================================= C Loading file 'table1.dat' ! The BHB stars of our sample, parallaxes and * proper motions C Format for file interpretation 1 format( + A8,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F5.2,1X,F6.3, + 1X,F5.3,1X,F5.2,1X,A1,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.1, + 1X,F3.1,1X,F5.1,1X,F3.1,1X,I4,1X,I2) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,79 read(1,'(A108)')ar__ read(ar__,1) + Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,B_V,E_B_V,Kmag,Q,pi1, + e_pi1,pi2,pi3,pmRA,e_pmRA,pmDE,e_pmDE,RV,e_RV 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,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,B_V,E_B_V,Kmag,Q,pi1, + e_pi1,pi2,pi3,pmRA,e_pmRA,pmDE,e_pmDE,RV,e_RV write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! The RRL stars of our sample, parallaxes and * proper motions C Format for file interpretation 2 format( + A8,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F6.3,A1,1X, + F5.2,1X,F5.2,1X,F5.2,1X,A1,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X, + F5.3,1X,F5.1,1X,F3.1,1X,F5.1,1X,F4.1,1X,I4,1X,I2) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,38 read(1,'(A116)')ar__1 read(ar__1,2) + Name_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,logP,n_logP, + v_Fe_H_,v_Vmag_,v_Kmag_,Q_1,E_B_V_1,pi1_1,e_pi1_1,pi2_1,pi3_1, + pmRA_1,e_pmRA_1,pmDE_1,e_pmDE_1,RV_1,e_RV_1 if (idig(ar__1(39:43)).EQ.0) v_Fe_H_ = rNULL__ if (RV_1 .EQ. 45) RV_1 = iNULL__ if (e_RV_1 .EQ. 45) e_RV_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,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,logP,n_logP, + v_Fe_H_,v_Vmag_,v_Kmag_,Q_1,E_B_V_1,pi1_1,e_pi1_1,pi2_1,pi3_1, + pmRA_1,e_pmRA_1,pmDE_1,e_pmDE_1,RV_1,e_RV_1 write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table8.dat' ! The BHB stars of our sample, velocities C Format for file interpretation 3 format( + A8,1X,F4.1,1X,F4.1,1X,I4,1X,I3,1X,I4,1X,I3,1X,I4,1X,I3,1X,I4, + 1X,I3,1X,I4,1X,I3,1X,I4,1X,I3) C Effective file loading open(unit=1,status='old',file= +'table8.dat') write(6,*) '....Loading file: table8.dat' do i__=1,79 read(1,'(A72)')ar__2 read(ar__2,3) + Name_2,Z,Rgal,Uvel,e_Uvel,Vvel,e_Vvel,Wvel,e_Wvel,Vr,e_Vr, + Vphi,e_Vphi,Vz,e_Vz if (Wvel .EQ. 45) Wvel = iNULL__ if (e_Wvel .EQ. 45) e_Wvel = iNULL__ if (Vz .EQ. 45) Vz = iNULL__ if (e_Vz .EQ. 45) e_Vz = iNULL__ c ..............Just test output........... write(6,3) + Name_2,Z,Rgal,Uvel,e_Uvel,Vvel,e_Vvel,Wvel,e_Wvel,Vr,e_Vr, + Vphi,e_Vphi,Vz,e_Vz c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table9.dat' ! The RRL stars of our sample, velocities C Format for file interpretation 4 format( + A8,1X,F4.1,1X,F4.1,1X,I4,1X,I3,1X,I4,1X,I3,1X,I4,1X,I3,1X,I4, + 1X,I3,1X,I4,1X,I3,1X,I4,1X,I3) C Effective file loading open(unit=1,status='old',file= +'table9.dat') write(6,*) '....Loading file: table9.dat' do i__=1,38 read(1,'(A72)')ar__3 read(ar__3,4) + Name_3,Z_1,Rgal_1,Uvel_1,e_Uvel_1,Vvel_1,e_Vvel_1,Wvel_1, + e_Wvel_1,Vr_1,e_Vr_1,Vphi_1,e_Vphi_1,Vz_1,e_Vz_1 if (Wvel_1 .EQ. 45) Wvel_1 = iNULL__ if (e_Wvel_1 .EQ. 45) e_Wvel_1 = iNULL__ if (Vz_1 .EQ. 45) Vz_1 = iNULL__ if (e_Vz_1 .EQ. 45) e_Vz_1 = iNULL__ c ..............Just test output........... write(6,4) + Name_3,Z_1,Rgal_1,Uvel_1,e_Uvel_1,Vvel_1,e_Vvel_1,Wvel_1, + e_Wvel_1,Vr_1,e_Vr_1,Vphi_1,e_Vphi_1,Vz_1,e_Vz_1 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