Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/475/1003 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-Apr-19 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/475/1003 Stellar parameters of G and K giant stars (Hekker+, 2007) *================================================================================ *Precise radial velocities of giant stars. *III. Spectroscopic stellar parameters. * Hekker S., Melendez J. * <Astron. Astrophys. 475, 1003 (2007)> * =2007A&A...475.1003H C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table4.dat' ! Spectroscopic stellar parameters for 366 G and K giant stars integer*4 nr__ parameter (nr__=366) ! Number of records character*71 ar__ ! Full-size record integer*4 HIP (nr__) ! Hipparcos (Cat. I/239) number character*10 HD_BD (nr__) ! HD or BD number real*4 Vmag (nr__) ! (mag) Johnson V magnitude (1) real*4 Plx (nr__) ! (mas) Trigonometric parallax (1) real*4 e_Plx (nr__) ! (mas) Standard error in Plx (1) real*4 B_V (nr__) ! (mag) Johnson B-V colour index (1) integer*4 Teff (nr__) ! (K) Effective temperature real*4 logg (nr__) ! ([cm/s2]) Surface gravity real*4 vmicro (nr__) ! (km/s) Micro turbulence velocity real*4 A_Fe (nr__) ! ([]) Iron abundance (H=12) real*4 vsini (nr__) ! (km/s) ? Projected rotational velocity real*4 vmacro (nr__) ! (km/s) ? Macro turbulence velocity *Note (1): All from Hipparcos catalogue (Perryman et al., Cat. <I/239>) C============================================================================= C Loading file 'table4.dat' ! Spectroscopic stellar parameters for 366 G and * K giant stars C Format for file interpretation 1 format( + I6,1X,A10,1X,F5.2,1X,F5.2,1X,F4.2,1X,F5.3,1X,I4,1X,F4.2,1X, + F4.2,1X,F4.2,1X,F5.2,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'table4.dat') write(6,*) '....Loading file: table4.dat' do i__=1,366 read(1,'(A71)')ar__ read(ar__,1) + HIP(i__),HD_BD(i__),Vmag(i__),Plx(i__),e_Plx(i__),B_V(i__), + Teff(i__),logg(i__),vmicro(i__),A_Fe(i__),vsini(i__), + vmacro(i__) if(ar__(62:66) .EQ. '') vsini(i__) = rNULL__ if(ar__(68:71) .EQ. '') vmacro(i__) = rNULL__ c ..............Just test output........... write(6,1) + HIP(i__),HD_BD(i__),Vmag(i__),Plx(i__),e_Plx(i__),B_V(i__), + Teff(i__),logg(i__),vmicro(i__),A_Fe(i__),vsini(i__), + vmacro(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end