Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/498/167 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-Mar-28 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/498/167 Embedded sources in L 1688 (van Kempen+, 2009) *================================================================================ *The nature of the class I population in Ophiuchus as revealed through gas and *dust mapping. * van Kempen T.A., van Dishoeck E.F., Salter D.M., Hogerheijde M.R., * Jorgensen J.K., Boogert A.C.A. * <Astron. Astrophys., 498, 167-194 (2009)> * =2009A&A...498..167V C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Sample of embedded sources in L 1688, with additional known disks included integer*4 nr__ parameter (nr__=45) ! Number of records character*80 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*1 n_Source ! [D] D for known disks character*18 Source ! Source name character*25 ONames ! Other names 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) real*4 DEs ! (arcsec) Declination (J2000) integer*4 r_Pos ! [1/2] Reference for position (1) real*4 alpha ! ? Spectral index between 2 and 24{mu}m (2) character*2 n_alpha ! [no ] no when no spectral index *Note (1): Reference for position as follows: * 1 = Bontemps et al., 2001, Cat. J/A+A/372/173 * 2 = c2d delivery document *Note (2): From Evans et al., 2009, Cat. J/ApJS/181/321. See also Sect. 5.5. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table4.dat' ! Source fluxes including IRAC 1-4, MIPS 1-2, SHARC-II, SCUBA and 1.3mm data integer*4 nr__1 parameter (nr__1=45) ! Number of records character*118 ar__1 ! Full-size record character*1 n_Source_1 ! [D] D for known disks character*18 Source_1 ! Source name real*4 S3_6 ! (mJy) ?=- IRAC 3.6{mu}m flux density character*2 n_S3_6 ! [K*d ] Note on S3.6 (1) real*4 S4_5 ! (mJy) ?=- IRAC 4.5{mu}m flux density character*1 n_S4_5 ! [K*] Note on S4.5 (1) real*4 S5_8 ! (mJy) IRAC 5.8{mu}m flux density character*1 n_S5_8 ! [K*] Note on S5.8 (1) real*4 S8_0 ! (mJy) ?=- IRAC 8.0{mu}m flux density character*1 n_S8_0 ! [*] Note on S8.0 (1) real*4 S24 ! (mJy) ?=- MIPS 24{mu}m flux density character*1 n_S24 ! [*] Note on S24 (1) character*1 l_S70 ! Limit flag on S70 real*4 S70 ! (mJy) ?=- MIPS (~10") 70{mu}m flux density real*4 S350 ! (mJy) ?=- SHARC (9-25") 350{mu}m flux density character*1 n_S350 ! [abc] Note on S350 (1) character*1 l_S450 ! Limit flag on S450 real*4 S450 ! (mJy) ?=- SCUBA (10") 450{mu}m flux density character*1 n_S450 ! [c] Note on S450 (1) character*1 l_S850 ! Limit flag on S850 real*4 S850 ! (mJy) ?=- SCUBA (15") 850{mu}m flux density character*1 n_S850 ! [b] Note on S850 (1) character*1 l_S850_2 ! Limit flag on S850-2 real*4 S850_2 ! (mJy) ? SCUBA (25") 850{mu}m flux density character*1 l_S1300 ! Limit flag on S1330 real*4 S1300 ! (mJy) ?=- (15") 1300{mu}m flux density character*1 n_S1300 ! [)] Uncertainty flag on S1300um *Note (1): Notes as follows: * a = This paper; * b = 350/450um flux taken from Andrews & Williams (2007, Cat. * J/ApJ/671/1800). Fluxes obtained with SHARC-II are given either * in a 9" beam (Andrews & Williams, 2007, Cat. J/ApJ/671/1800) or * in a 25" radius (This work) * c = data taken from Andre et al. (1993ApJ...406..122A) * d = two sources within 4" with a total flux of 2E+2mJy * * = band-filled sources with a S/N<5 or sources with S/N<5. Such * limits are caused either by saturation or a very low emission. * K = added to the flux indicates that the obtained flux was flagged * as "Complex", with multiple detection within 2-3" C============================================================================= C Loading file 'table1.dat' ! Sample of embedded sources in L 1688, with * additional known disks included C Format for file interpretation 1 format( + A1,1X,A18,2X,A25,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1, + 1X,I1,1X,F5.2,A2) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,45 read(1,'(A80)')ar__ read(ar__,1) + n_Source,Source,ONames,RAh,RAm,RAs,DE_,DEd,DEm,DEs,r_Pos, + alpha,n_alpha if(ar__(74:78) .EQ. '') alpha = 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) + n_Source,Source,ONames,RAh,RAm,RAs,DE_,DEd,DEm,DEs,r_Pos, + alpha,n_alpha write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table4.dat' ! Source fluxes including IRAC 1-4, MIPS 1-2, * SHARC-II, SCUBA and 1.3mm data C Format for file interpretation 2 format( + A1,1X,A18,1X,E7.3,A2,1X,E7.3,A1,1X,E7.3,A1,1X,E7.3,A1,1X,E7.3, + A1,1X,A1,E7.3,1X,E6.2,A1,1X,A1,E6.2,A1,1X,A1,E6.2,A1,1X,A1, + E6.2,1X,A1,E6.2,A1) C Effective file loading open(unit=1,status='old',file= +'table4.dat') write(6,*) '....Loading file: table4.dat' do i__=1,45 read(1,'(A118)')ar__1 read(ar__1,2) + n_Source_1,Source_1,S3_6,n_S3_6,S4_5,n_S4_5,S5_8,n_S5_8,S8_0, + n_S8_0,S24,n_S24,l_S70,S70,S350,n_S350,l_S450,S450,n_S450, + l_S850,S850,n_S850,l_S850_2,S850_2,l_S1300,S1300,n_S1300 if (idig(ar__1(22:28)).EQ.0) S3_6 = rNULL__ if (idig(ar__1(32:38)).EQ.0) S4_5 = rNULL__ if (idig(ar__1(50:56)).EQ.0) S8_0 = rNULL__ if (idig(ar__1(59:65)).EQ.0) S24 = rNULL__ if (idig(ar__1(69:75)).EQ.0) S70 = rNULL__ if (idig(ar__1(77:82)).EQ.0) S350 = rNULL__ if (idig(ar__1(86:91)).EQ.0) S450 = rNULL__ if (idig(ar__1(95:100)).EQ.0) S850 = rNULL__ if(ar__1(104:109) .EQ. '') S850_2 = rNULL__ if (idig(ar__1(112:117)).EQ.0) S1300 = rNULL__ c ..............Just test output........... write(6,2) + n_Source_1,Source_1,S3_6,n_S3_6,S4_5,n_S4_5,S5_8,n_S5_8,S8_0, + n_S8_0,S24,n_S24,l_S70,S70,S350,n_S350,l_S450,S450,n_S450, + l_S850,S850,n_S850,l_S850_2,S850_2,l_S1300,S1300,n_S1300 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