Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/450/105 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/A+A/450/105 Properties of 153 Galactic globular clusters (Bica+, 2006) *================================================================================ *Globular cluster system and Milky Way properties revisited. * Bica E., Bonatto C., Barbuy B., Ortolani S. * <Astron. Astrophys. 450, 105 (2006)> * =2006A&A...450..105B C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Updated globular cluster parameters: the GC05 sample integer*4 nr__ parameter (nr__=153) ! Number of records character*150 ar__ ! Full-size record C Position composed of: GLON GLAT character*16 Cluster (nr__) ! Main globular cluster designation character*1 r_Cluster (nr__) ! [+-] Reference for Cluster parameters (1) real*4 GLON (nr__) ! (deg) Galactic longitude real*4 GLAT (nr__) ! (deg) Galactic latitude real*4 E_B_V (nr__) ! (mag) Reddening character*1 n_E_B_V (nr__) ! [a] based on Schlegel et al. * (1998ApJ...500..525S) real*4 v_Fe_H_ (nr__) ! ([Sun]) ?=- Metallicity character*1 n__Fe_H_ (nr__) ! [b] based on the conclusion by Willman et al. * (2005AJ....129.2692W) that the cluster is * more metal-poor than Pal5 real*4 Dist (nr__) ! (kpc) Distance from the Sun real*4 GDisti (nr__) ! (kpc) ?=- Input Galactocentric distance from Harris * database (Cat. <VII/202>, 2003 update) real*4 GDisto (nr__) ! (kpc) Output Galactocentric distance from this work real*4 x (nr__) ! (kpc) Input heliocentric x component real*4 y (nr__) ! (kpc) Input heliocentric y component real*4 z (nr__) ! (kpc) Input heliocentric z component character*15 Notes (nr__) ! Notes (2) character*50 ONames (nr__) ! Additional GC designations as compiled from * the literature by one of us (E. Bica) *Note (1): References as follows: * + = cluster parameters from Willman et al. (2005AJ....129.2692W) * - = cluster parameters from Carraro (2005ApJ...621L..61C) *Note (2): Notes use the conventions: * S = Sagittarius * C = Canis Major * Y = Younger than 10Gyr * R = Retrograde orbit * DN = Dwarf nucleus * ST = Sagittarius tidal tail * CT = Canis Major tidal tail * (1) = da Costa & Armandroff (1995AJ....109.2533D) * (2) = Mackey & van den Bergh (2005MNRAS.360..631M) * (3) = Rosenberg et al. (1999AJ....118.2306R) * (4) = Carraro (2005ApJ...621L..61C) * (5) = van den Bergh (1993AJ....105..971V) * (6) = Cote et al. (1999AJ....118..406C) * (7) = Siegel et al. (2001, Cat. <J/AJ/121/935>) * (8) = Guo et al. (1993AJ....105.2182G) * (9) = Forbes, Strader & Brodie (2004AJ....127.3394F) * (10) = Phelps & Schick (2003AJ....126..265P) * (11) = Salaris & Weiss (2002A&A...388..492S) * (12) = Dinescu, Girard & van Altena (1999AJ....117.1792D) C============================================================================= C Loading file 'table1.dat' ! Updated globular cluster parameters: the GC05 sample C Format for file interpretation 1 format( + A16,A1,1X,F6.2,1X,F6.2,1X,F4.2,A1,1X,F5.2,A1,1X,F5.1,1X,F5.1, + 1X,F5.1,1X,F6.2,1X,F6.2,1X,F6.2,1X,A15,1X,A50) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,153 read(1,'(A150)')ar__ read(ar__,1) + Cluster(i__),r_Cluster(i__),GLON(i__),GLAT(i__),E_B_V(i__), + n_E_B_V(i__),v_Fe_H_(i__),n__Fe_H_(i__),Dist(i__),GDisti(i__), + GDisto(i__),x(i__),y(i__),z(i__),Notes(i__),ONames(i__) if (idig(ar__(39:43)).EQ.0) v_Fe_H_(i__) = rNULL__ if (idig(ar__(52:56)).EQ.0) GDisti(i__) = rNULL__ c ..............Just test output........... write(6,1) + Cluster(i__),r_Cluster(i__),GLON(i__),GLAT(i__),E_B_V(i__), + n_E_B_V(i__),v_Fe_H_(i__),n__Fe_H_(i__),Dist(i__),GDisti(i__), + GDisto(i__),x(i__),y(i__),z(i__),Notes(i__),ONames(i__) 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