Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/599/A104 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-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/599/A104 Kinematics of the Local Universe. XVI. (Theureau+, 2017) *================================================================================ *Kinematics of the Local Universe. *XIV. 21-cm line measurements of 828 galaxies and the HI-mass function from an *homogeneous catalog gathered with the Nancay radio telescope. * Theureau G., Coudreau N., Hallet N., Hanski M., Poulain M. * <Astron. Astrophys. 599, A104 (2017)> * =2017A&A...599A.104T (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Astrophysical HI-parameters integer*4 nr__ parameter (nr__=828) ! Number of records character*136 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*10 PGC ! PGC/Hyperleda name (pgcNNNNNNN or PGCANNNNNN) character*1 n_PGC ! [ab] when two spectra character*23 Name ! Principal 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 (J2000) integer*4 DEd ! (deg) Declination (J2000) integer*4 DEm ! (arcmin) Declination (J2000) integer*4 DEs ! (arcsec) Declination (J2000) real*8 V20 ! (km/s) ? systemic heliocentric velocity at 20% level real*4 e_V20 ! (km/s) ? rms uncertainty on V20 real*4 W20 ! (km/s) ? line width at 20% level real*4 W20c ! (km/s) ? W20 corrected for resolution and turbulence real*4 e_W20 ! (km/s) ? rms uncertainty on W20 real*4 W50 ! (km/s) ? line width at 50% level error real*4 W50c ! (km/s) ? W50 corrected for resolution and turbulence real*4 e_W50 ! (km/s) ? rms uncertainty on W50 real*4 FHI ! (Jy.km/s) ? HI flux real*4 FHIc ! (Jy.km/s) ? HI flux corrected for beam filling real*4 e_FHI ! (Jy.km/s) ? rms uncertainty on FHI real*4 SN ! ? Signal to noise ratio real*4 rms ! (mJy) ? rms noise in baseline character*1 Q ! [ABCDE] Quality code (G1) character*1 Conf ! [c?] Confusion flag (G2) c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table3.dat' ! Notes on HI-observations and general comments integer*4 nr__1 parameter (nr__1=828) ! Number of records character*191 ar__1 ! Full-size record character*10 PGC_1 ! PGC/Hyperleda name (pgcNNNNNNN or PGCANNNNNN) character*1 n_PGC_1 ! [ab] when two spectra character*1 Q_1 ! Quality code (G1) character*1 Conf_1 ! Confusion flag (G2) character*5 MType ! Morphological type (Hyperleda) character*171 Note ! Comments c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'sp/*' ! *Individual spectra integer*4 nr__2 parameter (nr__2=828) ! Number of records character*28 ar__2 ! Full-size record real*8 HRV ! (km/s) Heliocentric radial velocity (optical convention) real*8 FHI_1 ! (Jy) Flux C============================================================================= C Loading file 'table2.dat' ! Astrophysical HI-parameters C Format for file interpretation 1 format( + A10,A1,1X,A23,2X,I2,I2,F4.1,A1,I2,I2,I2,2X,F7.1,2X,F4.1,1X, + F5.1,1X,F5.1,1X,F5.1,1X,F5.1,1X,F5.1,1X,F5.1,1X,F5.2,1X,F5.2, + 1X,F4.2,1X,F4.1,1X,F4.1,2X,A1,2X,A1) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,828 read(1,'(A136)')ar__ read(ar__,1) + PGC,n_PGC,Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,V20,e_V20,W20,W20c, + e_W20,W50,W50c,e_W50,FHI,FHIc,e_FHI,SN,rms,Q,Conf if(ar__(55:61) .EQ. '') V20 = rNULL__ if(ar__(64:67) .EQ. '') e_V20 = rNULL__ if(ar__(69:73) .EQ. '') W20 = rNULL__ if(ar__(75:79) .EQ. '') W20c = rNULL__ if(ar__(81:85) .EQ. '') e_W20 = rNULL__ if(ar__(87:91) .EQ. '') W50 = rNULL__ if(ar__(93:97) .EQ. '') W50c = rNULL__ if(ar__(99:103) .EQ. '') e_W50 = rNULL__ if(ar__(105:109) .EQ. '') FHI = rNULL__ if(ar__(111:115) .EQ. '') FHIc = rNULL__ if(ar__(117:120) .EQ. '') e_FHI = rNULL__ if(ar__(122:125) .EQ. '') SN = rNULL__ if(ar__(127:130) .EQ. '') rms = rNULL__ 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) + PGC,n_PGC,Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,V20,e_V20,W20,W20c, + e_W20,W50,W50c,e_W50,FHI,FHIc,e_FHI,SN,rms,Q,Conf write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table3.dat' ! Notes on HI-observations and general comments C Format for file interpretation 2 format(A10,A1,1X,A1,A1,1X,A5,A171) C Effective file loading open(unit=1,status='old',file= +'table3.dat') write(6,*) '....Loading file: table3.dat' do i__=1,828 read(1,'(A191)')ar__1 read(ar__1,2)PGC_1,n_PGC_1,Q_1,Conf_1,MType,Note c ..............Just test output........... write(6,2)PGC_1,n_PGC_1,Q_1,Conf_1,MType,Note c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'sp/*' ! *Individual spectra C Format for file interpretation 3 format(F14.4,F14.4) C Effective file loading open(unit=1,status='old',file= +'sp/*') write(6,*) '....Loading file: sp/*' do i__=1,828 read(1,'(A28)')ar__2 read(ar__2,3)HRV,FHI_1 c ..............Just test output........... write(6,3)HRV,FHI_1 c .......End.of.Just test output........... end do close(1) C============================================================================= stop end