Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/597/A54 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-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. J/A+A/597/A54 Srg tidal tails red giants properties (Zhang+, 2017) *================================================================================ *The properties of red giant stars along the Sagittarius tidal tails. * Zhang X., Shi W.B., Chen Y.Q., Zhao G., Carrell K., Zhao J.K., Ruan G.P., * Liang Y.C., Zhou L., Ren H.B., Zhang Y., Hou Y.H., Wang Y.F. * <Astron. Astrophys. 597, A54 (2017)> * =2017A&A...597A..54Z (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Spectral parameters for 1100 RGB stars in Sgr streams integer*4 nr__ parameter (nr__=1100) ! Number of records character*95 ar__ ! Full-size record C J2000 position composed of: RAdeg DEdeg integer*4 Plate (nr__) ! SDSS Plate ID number integer*4 MJD (nr__) ! SDSS MJD ID number integer*4 Fiber (nr__) ! SDSS Fiber ID number real*8 RAdeg (nr__) ! (deg) Right ascension (J2000) real*8 DEdeg (nr__) ! (deg) Declination (J2000) real*4 v_Fe_H_ (nr__) ! ([-]) Abundance, [Fe/H] real*8 Dist (nr__) ! (kpc) Distance to the Sun (1) real*8 VGSR (nr__) ! (km/s) Velocity in the Galactic standard of rest real*8 Lambda (nr__) ! (deg) Sgr longitude scale along the orbital plane real*8 X (nr__) ! (kpc) X-coordinate in Galactic cartesian coordinate real*8 Y (nr__) ! (kpc) Y-coordinate in Galactic cartesian coordinate real*8 Z (nr__) ! (kpc) Z-coordinate in Galactic cartesian coordinate character*2 Stream (nr__) ! Sign to show the stream that star locate (2) *Note (1): Distance is corrected by Xue et al. (2014, Cat. J/ApJ/784/170). * Relative error between Kordopatis et al. (2011, Cat. J/A+A/535/A107) and * Xue et al. (2014, Cat. J/ApJ/784/170) is less than 30%. *Note (2): Sign to show the stream that star locate as follows: * L1 = leading arm 1 * L2 = leading arm 2 * T1 = trailing arm 1 * T2 = trailing arm 2 C============================================================================= C Loading file 'table1.dat' ! Spectral parameters for 1100 RGB stars in Sgr * streams C Format for file interpretation 1 format( + I4,1X,I5,1X,I3,1X,F10.5,1X,F9.5,1X,F5.2,1X,F7.2,1X,F8.2,1X, + F9.5,1X,F7.2,1X,F7.2,1X,F7.2,1X,A2) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,1100 read(1,'(A95)')ar__ read(ar__,1) + Plate(i__),MJD(i__),Fiber(i__),RAdeg(i__),DEdeg(i__), + v_Fe_H_(i__),Dist(i__),VGSR(i__),Lambda(i__),X(i__),Y(i__), + Z(i__),Stream(i__) c ..............Just test output........... write(6,1) + Plate(i__),MJD(i__),Fiber(i__),RAdeg(i__),DEdeg(i__), + v_Fe_H_(i__),Dist(i__),VGSR(i__),Lambda(i__),X(i__),Y(i__), + Z(i__),Stream(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end