Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/130/1097 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/AJ/130/1097 BHB stars in Century Survey Galactic Halo Project (Brown+, 2005) *================================================================================ *The Century Survey Galactic Halo Project. *II. Global properties and the luminosity function of field blue horizontal *branch stars. * Brown W.R., Geller M.J., Kenyon S.J., Kurtz M.J., Allende Prieto C., * Beers T.C., Wilhelm R. * <Astron. J., 130, 1097-1110 (2005)> * =2005AJ....130.1097B C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Photometry integer*4 nr__ parameter (nr__=257) ! Number of records character*66 ar__ ! Full-size record C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg (nr__) ! (deg) Right Ascension J2000 real*8 DEdeg (nr__) ! (deg) Declination J2000 C ---------------------------------- ! (position vector(s) in degrees) integer*4 CHSS (nr__) ! Source identifier (G1) integer*4 RAh (nr__) ! (h) Hour of Right Ascension (J2000) integer*4 RAm (nr__) ! (min) Minute of Right Ascension (J2000) real*4 RAs (nr__) ! (s) Second of Right Ascension (J2000) character*1 DE_ (nr__) ! Sign of the Declination (J2000) integer*4 DEd (nr__) ! (deg) Degree of Declination (J2000) integer*4 DEm (nr__) ! (arcmin) Arcminute of Declination (J2000) integer*4 DEs (nr__) ! (arcsec) Arcsecond of Declination (J2000) real*4 Jmag (nr__) ! (mag) ? 2MASS extinction-corrected J band magnitude real*4 e_Jmag (nr__) ! (mag) ? Uncertainty in Jmag real*4 g_mag (nr__) ! (mag) ? SDSS extinction-corrected g' band magnitude real*4 e_g_mag (nr__) ! (mag) ? Uncertainty in g'mag real*4 E_B_V (nr__) ! (mag) Schlegel et al. (1998ApJ...500..525S) * reddening value real*4 B_V (nr__) ! (mag) Predicted (B-V) color (2) integer*4 BHB (nr__) ! [0/1] Blue Horizontal Branch status (3) *Note (2): From 2MASS or SDSS photometry and Balmer line strengths * (Brown et al., 2003AJ....126.1362B). *Note (3): value 1 = is a BHB star, 0 = is not a BHB star. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table3.dat' ! Spectroscopic and stellar parameters integer*4 nr__1 parameter (nr__1=257) ! Number of records character*75 ar__1 ! Full-size record integer*4 CHSS_1 (nr__1) ! Source identifier (G1) real*4 KP (nr__1) ! (0.1nm) ? The KP (Ca II) index real*4 HP2 (nr__1) ! (0.1nm) ? The HP2 (H{delta}) index real*4 GP (nr__1) ! (0.1nm) ? The GP (G-Band) index real*4 HRV (nr__1) ! (km/s) Heliocentric radial velocity real*4 e_HRV (nr__1) ! (km/s) Uncertainty in HRV real*4 SpType (nr__1) ! Spectral type code (2) real*4 e_SpType (nr__1) ! Uncertainty in SpType integer*4 Teff (nr__1) ! (K) Effective temperature real*4 log_g (nr__1) ! ([cm/s2]) Log of the surface gravity real*4 v_Fe_H_ (nr__1) ! ([Sun]) ? Log of Fe/H ratio relative to the Sun real*4 Dist (nr__1) ! (kpc) Estimated distance real*4 VMAG (nr__1) ! (mag) Absolute V band magnitude (3) *Note (2): Where B0=10, A0=20, F0=30, and so forth. *Note (3): Corrected for reddening, given the estimated distance. C============================================================================= C Loading file 'table2.dat' ! Photometry C Format for file interpretation 1 format( + 5X,I4,1X,I2,1X,I2,1X,F4.1,1X,A1,I1,1X,I2,1X,I2,1X,F5.2,1X, + F5.3,1X,F5.2,1X,F5.3,1X,F4.2,1X,F5.2,1X,I1) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,257 read(1,'(A66)')ar__ read(ar__,1) + CHSS(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),Jmag(i__),e_Jmag(i__),g_mag(i__), + e_g_mag(i__),E_B_V(i__),B_V(i__),BHB(i__) if(ar__(31:35) .EQ. '') Jmag(i__) = rNULL__ if(ar__(37:41) .EQ. '') e_Jmag(i__) = rNULL__ if(ar__(43:47) .EQ. '') g_mag(i__) = rNULL__ if(ar__(49:53) .EQ. '') e_g_mag(i__) = rNULL__ RAdeg(i__) = rNULL__ DEdeg(i__) = rNULL__ c Derive coordinates RAdeg and DEdeg from input data c (RAdeg and DEdeg are set to rNULL__ when unknown) if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15. if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4. if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240. if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__) if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60. if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600. if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__) c ..............Just test output........... write(6,1) + CHSS(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),Jmag(i__),e_Jmag(i__),g_mag(i__), + e_g_mag(i__),E_B_V(i__),B_V(i__),BHB(i__) write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table3.dat' ! Spectroscopic and stellar parameters C Format for file interpretation 2 format( + 5X,I4,1X,F5.2,1X,F5.2,1X,F4.2,1X,F6.1,1X,F4.1,1X,F4.1,1X,F3.1, + 1X,I4,1X,F4.2,1X,F5.2,1X,F5.2,1X,F5.2) C Effective file loading open(unit=1,status='old',file= +'table3.dat') write(6,*) '....Loading file: table3.dat' do i__=1,257 read(1,'(A75)')ar__1 read(ar__1,2) + CHSS_1(i__),KP(i__),HP2(i__),GP(i__),HRV(i__),e_HRV(i__), + SpType(i__),e_SpType(i__),Teff(i__),log_g(i__),v_Fe_H_(i__), + Dist(i__),VMAG(i__) if(ar__1(11:15) .EQ. '') KP(i__) = rNULL__ if(ar__1(17:21) .EQ. '') HP2(i__) = rNULL__ if(ar__1(23:26) .EQ. '') GP(i__) = rNULL__ if(ar__1(59:63) .EQ. '') v_Fe_H_(i__) = rNULL__ c ..............Just test output........... write(6,2) + CHSS_1(i__),KP(i__),HP2(i__),GP(i__),HRV(i__),e_HRV(i__), + SpType(i__),e_SpType(i__),Teff(i__),log_g(i__),v_Fe_H_(i__), + Dist(i__),VMAG(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end