Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/510/A54 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/510/A54 NaI and CaII interstellar absorption (Welsh+, 2010) *================================================================================ *New 3-D density maps of NaI and CaII interstellar absorption within 300pc. * Welsh B.Y., Lallement R., Vergely J.-L., Raimond S. * <Astron. Astrophys. 510, A54 (2010)> * =2010A&A...510A..54W C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! NaI and CaII absorption measurements integer*4 nr__ parameter (nr__=1851) ! Number of records character*96 ar__ ! Full-size record C Position composed of: GLON GLAT character*10 Name ! HD or HIP number of the observed star real*4 GLON ! (deg) Galactic longitude of star real*4 GLAT ! (deg) Galactic latitude of star character*1 l_Dist ! Limit glag on Dist integer*4 Dist ! (pc) ? Distance to star character*1 l_EWD1 ! Limit flag on EWD1 real*4 EWD1 ! (0.1pm) ? Equivalent width of the NaI D1 line character*1 l_EWD2 ! Limit flag on EWD2 real*4 EWD2 ! (0.1pm) ? Equivalent width of the NaI D2 line character*1 l_N_NaI ! Limit flag on log[N(NaI)] real*4 N_NaI ! ([cm-2]) ? Log of total NaI column density character*10 n_N_NaI ! Observatory (with date) where new data was taken integer*4 r_N_NaI ! ? Published reference for NaI data character*1 l_EWCaII ! Limit flag on EWCaII real*4 EWCaII ! (0.1pm) ? Equivalent width of the CaII K-line character*1 l_N_CaII ! Limit flag on log[N(CaII)] real*4 N_CaII ! ([cm-2]) ? Log of total CaII column density character*12 n_N_CaII ! Observatory (with date) where new data was taken integer*4 r_N_CaII ! ? Published reference for CaII data c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'refs.dat' ! References integer*4 nr__1 parameter (nr__1=104) ! Number of records character*150 ar__1 ! Full-size record integer*4 Ref ! Reference code character*19 BibCode ! BibCode character*19 Aut ! Author's name character*107 Com ! Comments C============================================================================= C Loading file 'table1.dat' ! NaI and CaII absorption measurements C Format for file interpretation 1 format( + A10,1X,F5.1,1X,F5.1,1X,A1,I3,1X,A1,F6.2,1X,A1,F6.2,1X,A1,F5.2, + 1X,A10,1X,I3,1X,A1,F6.2,1X,A1,F5.2,1X,A12,I3) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,1851 read(1,'(A96)')ar__ read(ar__,1) + Name,GLON,GLAT,l_Dist,Dist,l_EWD1,EWD1,l_EWD2,EWD2,l_N_NaI, + N_NaI,n_N_NaI,r_N_NaI,l_EWCaII,EWCaII,l_N_CaII,N_CaII, + n_N_CaII,r_N_CaII if(ar__(25:27) .EQ. '') Dist = iNULL__ if(ar__(30:35) .EQ. '') EWD1 = rNULL__ if(ar__(38:43) .EQ. '') EWD2 = rNULL__ if(ar__(46:50) .EQ. '') N_NaI = rNULL__ if(ar__(63:65) .EQ. '') r_N_NaI = iNULL__ if(ar__(68:73) .EQ. '') EWCaII = rNULL__ if(ar__(76:80) .EQ. '') N_CaII = rNULL__ if(ar__(94:96) .EQ. '') r_N_CaII = iNULL__ c ..............Just test output........... write(6,1) + Name,GLON,GLAT,l_Dist,Dist,l_EWD1,EWD1,l_EWD2,EWD2,l_N_NaI, + N_NaI,n_N_NaI,r_N_NaI,l_EWCaII,EWCaII,l_N_CaII,N_CaII, + n_N_CaII,r_N_CaII c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'refs.dat' ! References C Format for file interpretation 2 format(I3,1X,A19,1X,A19,A107) C Effective file loading open(unit=1,status='old',file= +'refs.dat') write(6,*) '....Loading file: refs.dat' do i__=1,104 read(1,'(A150)')ar__1 read(ar__1,2)Ref,BibCode,Aut,Com c ..............Just test output........... write(6,2)Ref,BibCode,Aut,Com c .......End.of.Just test output........... end do close(1) C============================================================================= stop end