Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/600/A16 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-18 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/600/A16 Six LMC star forming region spectra (Tang+, 2017) *================================================================================ *Kinetic temperature of massive star forming molecular clumps measured with *formaldehyde. II. The Large Magellanic Cloud. * Tang X.D., Henkel C., Chen C.-H.R., Menten K.M., Indebetouw R., Zheng X.W., * Esimbek J., Zhou J.J., Yuan Y., Li D.L., He Y.X. * <Astron. Astrophys. 600, A16 (2017)> * =2017A&A...600A..16T (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Source parameters integer*4 nr__ parameter (nr__=6) ! Number of records character*49 ar__ ! Full-size record C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg (nr__) ! (deg) Right Ascension J2000 real*8 DEdeg (nr__) ! (deg) Declination J2000 C ---------------------------------- ! (position vector(s) in degrees) character*6 Source (nr__) ! Source name integer*4 RAh (nr__) ! (h) Right ascension (J2000) integer*4 RAm (nr__) ! (min) Right ascension (J2000) real*4 RAs (nr__) ! (s) Right ascension (J2000) character*1 DE_ (nr__) ! declination sign (J2000) integer*4 DEd (nr__) ! (deg) declination (J2000) integer*4 DEm (nr__) ! (arcmin) declination (J2000) real*4 DEs (nr__) ! (arcsec) declination (J2000) integer*4 Tint (nr__) ! (min) Integrated time character*14 Date (nr__) ! Observation date c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Para-H_2_CO and C^18^O spectral parameters integer*4 nr__1 parameter (nr__1=23) ! Number of records character*73 ar__1 ! Full-size record character*6 Source_1 (nr__1) ! Source name character*6 Mol (nr__1) ! Molecule character*13 Trans (nr__1) ! Transition character*1 l_intTmbdv (nr__1) ! Limit flag on intTmbdv real*4 intTmbdv (nr__1) ! (K.km/s) Velocity-integrated intensity real*4 e_intTmbdv (nr__1) ! (K.km/s) ? rms uncertainty on intTmbdv (1) real*4 Vlsr (nr__1) ! (km/s) ?=- LSR velocity real*4 e_Vlsr (nr__1) ! (km/s) ? rms uncertainty on Vlsr (1) real*4 FWHM (nr__1) ! (km/s) ?=- Full width to half maximum line width real*4 e_FWHM (nr__1) ! (km/s) ? rms uncertainty on FWHM (1) real*4 Tmb (nr__1) ! (K) ?=- Peak mean brightness temperature real*4 rms (nr__1) ! (mK) rms noise *Note (1): standard deviations from Gaussian fits using CLASS as part of the * GILDAS software. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table3.dat' ! Integrated intensity ratios, column densities, spacial densities and temperatures integer*4 nr__2 parameter (nr__2=6) ! Number of records character*90 ar__2 ! Full-size record character*6 Source_2 (nr__2) ! Source name character*1 n_Source (nr__2) ! [ab] Note on Source (1) character*1 l_R1 (nr__2) ! Limit flag on R1 real*4 R1 (nr__2) ! 3_21_-2_20_/3_03_-2_02_ ratio real*4 e_R1 (nr__2) ! ? rms uncertainty on * 3_21_-2_20_/3_03_-2_02_ ratio real*4 R2 (nr__2) ! H_2_CO 3_03_-2_02_/C^18^O 2-1 ratio real*4 e_R2 (nr__2) ! rms uncertainty on * H_2_CO 3_03_-2_02_/C^18^O 2-1 ratio real*4 NC18O (nr__2) ! (10+14cm-2) C^18^O column density real*4 NpH2CO (nr__2) ! (10+12cm-2) Para-H_2_CO column density real*4 NH2a (nr__2) ! (10+22cm-2) H_2_ column density from C^18^O real*4 NH2b (nr__2) ! (10+22cm-2) H_2_ column density from ^12^CO(1-0) character*1 l_nH2 (nr__2) ! Limit flag on nH2 real*4 nH2 (nr__2) ! (10+5cm-3) H_2_ density number real*4 E_nH2 (nr__2) ! (10+5cm-3) ? Error on nH2 (upper value) real*4 e_nH2_1 (nr__2) ! (10+5cm-3) ? Error on nH2 (lower value) character*1 l_Tkin (nr__2) ! Limit flag on Tkin real*4 Tkin (nr__2) ! (K) Kinematic temperature derived with the * density n(H2) real*4 E_Tkin (nr__2) ! (K) ? Error on Tkin (upper value) real*4 e_Tkin_1 (nr__2) ! (K) ? Error on Tkin (lower value) character*1 l_TLTE (nr__2) ! Limit flag on TLTE real*4 TLTE (nr__2) ! (K) LTE temperature character*5 Tdust (nr__2) ! (K) Interval of dust temperature (2) *Note (1): Notes as follows: * a = N113: Para-H_2_CO 3_03_-2_02_/C^18^O 2-1 ratio data taken from * Heikkila et al. (1998A&A...332..493H) and * Wang et al. (2009ApJ...690..580W) * N(C^18^O) derived from C^18^O 2-1 taken from * Heikkila et al. (1998A&A...332..493H). * b = N159W: Para-H_2_CO 3_03_-2_02_/C^18^O 2-1 ratio data taken from * Heikkila et al. (1998A&A...332..493H, 1999A&A...344..817H). * N(C^18^O) derived from C^18^O 2-1 taken from * Heikkila et al. (1998A&A...332..493H). * N(H_2_) data taken from Ott et al. (2010ApJ...710..105O). *Note (2): Dust temperature references: * 30 Dor = Werner et al. (1978MNRAS.184..365W); * Heikkila et al. (1999A&A...344..817H); * Gordon et al. (2014ApJ...797...85G) * N113 = Wang et al. (2009ApJ...690..580W); * Gordon et al. (2014ApJ...797...85G); * Seale et al. (2014, Cat. J/AJ/148/124) * N44BC = Gordon et al. (2014ApJ...797...85G) * N159W = Heikkila et al. (1999A&A...344..817H); * Bolatto et al. (2000ApJ...545..234B); * Gordon et al. (2014ApJ...797...85G) * N159E = Gordon et al. (2014ApJ...797...85G) * N159S = Gordon et al. (2014ApJ...797...85G) c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'list.dat' ! List of fits spectra integer*4 nr__3 parameter (nr__3=22) ! Number of records character*142 ar__3 ! Full-size record C J2000 position composed of: RAdeg DEdeg real*8 RAdeg_1 (nr__3) ! (deg) Right Ascension of center (J2000) real*8 DEdeg_1 (nr__3) ! (deg) Declination of center (J2000) integer*4 Nx (nr__3) ! Number of points character*23 Obs_Date (nr__3) ! Observation date (YYYY-MM-DDThh:mm:ss.sss) real*4 b_Freq (nr__3) ! (Hz) Lower value of relative frequency interval real*4 B_Freq_1 (nr__3) ! (Hz) Upper value of relative frequency interval integer*4 dFreq (nr__3) ! (Hz) Frequency resolution integer*4 size (nr__3) ! (Kibyte) Size of FITS file character*22 FileName (nr__3) ! Name of FITS file, in subdirectory fits character*36 Title (nr__3) ! Title of the FITS file C============================================================================= C Loading file 'table1.dat' ! Source parameters C Format for file interpretation 1 format( + A6,2X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1,1X,I3,1X,A14) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,6 read(1,'(A49)')ar__ read(ar__,1) + Source(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),Tint(i__),Date(i__) RAdeg(i__) = rNULL__ DEdeg(i__) = rNULL__ c Derive coordinates RAdeg and DEdeg from input data c (RAdeg and DEdeg are set to rNULL__ when unknown) if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15. if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4. if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240. if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__) if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60. if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600. if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__) c ..............Just test output........... write(6,1) + Source(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),Tint(i__),Date(i__) write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! Para-H_2_CO and C^18^O spectral parameters C Format for file interpretation 2 format( + A6,2X,A6,1X,A13,1X,A1,F5.3,1X,F5.3,1X,F6.2,1X,F4.2,1X,F4.2,1X, + F4.2,1X,F5.3,1X,F3.1) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,23 read(1,'(A73)')ar__1 read(ar__1,2) + Source_1(i__),Mol(i__),Trans(i__),l_intTmbdv(i__), + intTmbdv(i__),e_intTmbdv(i__),Vlsr(i__),e_Vlsr(i__),FWHM(i__), + e_FWHM(i__),Tmb(i__),rms(i__) if(ar__1(37:41) .EQ. '') e_intTmbdv(i__) = rNULL__ if (idig(ar__1(43:48)).EQ.0) Vlsr(i__) = rNULL__ if(ar__1(50:53) .EQ. '') e_Vlsr(i__) = rNULL__ if (idig(ar__1(55:58)).EQ.0) FWHM(i__) = rNULL__ if(ar__1(60:63) .EQ. '') e_FWHM(i__) = rNULL__ if (idig(ar__1(65:69)).EQ.0) Tmb(i__) = rNULL__ c ..............Just test output........... write(6,2) + Source_1(i__),Mol(i__),Trans(i__),l_intTmbdv(i__), + intTmbdv(i__),e_intTmbdv(i__),Vlsr(i__),e_Vlsr(i__),FWHM(i__), + e_FWHM(i__),Tmb(i__),rms(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table3.dat' ! Integrated intensity ratios, column densities, * spacial densities and temperatures C Format for file interpretation 3 format( + A6,1X,A1,1X,A1,F5.3,1X,F4.2,1X,F4.2,1X,F4.2,1X,F3.1,1X,F3.1, + 1X,F3.1,1X,F3.1,1X,A1,F4.2,1X,F4.2,1X,F4.2,1X,A1,F4.1,1X,F4.1, + 1X,F4.1,1X,A1,F4.1,1X,A5) C Effective file loading open(unit=1,status='old',file= +'table3.dat') write(6,*) '....Loading file: table3.dat' do i__=1,6 read(1,'(A90)')ar__2 read(ar__2,3) + Source_2(i__),n_Source(i__),l_R1(i__),R1(i__),e_R1(i__), + R2(i__),e_R2(i__),NC18O(i__),NpH2CO(i__),NH2a(i__),NH2b(i__), + l_nH2(i__),nH2(i__),E_nH2(i__),e_nH2_1(i__),l_Tkin(i__), + Tkin(i__),E_Tkin(i__),e_Tkin_1(i__),l_TLTE(i__),TLTE(i__), + Tdust(i__) if(ar__2(17:20) .EQ. '') e_R1(i__) = rNULL__ if(ar__2(54:57) .EQ. '') E_nH2(i__) = rNULL__ if(ar__2(59:62) .EQ. '') e_nH2_1(i__) = rNULL__ if(ar__2(70:73) .EQ. '') E_Tkin(i__) = rNULL__ if(ar__2(75:78) .EQ. '') e_Tkin_1(i__) = rNULL__ c ..............Just test output........... write(6,3) + Source_2(i__),n_Source(i__),l_R1(i__),R1(i__),e_R1(i__), + R2(i__),e_R2(i__),NC18O(i__),NpH2CO(i__),NH2a(i__),NH2b(i__), + l_nH2(i__),nH2(i__),E_nH2(i__),e_nH2_1(i__),l_Tkin(i__), + Tkin(i__),E_Tkin(i__),e_Tkin_1(i__),l_TLTE(i__),TLTE(i__), + Tdust(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'list.dat' ! List of fits spectra C Format for file interpretation 4 format( + F9.5,F9.5,1X,I4,1X,A23,1X,E12.6,1X,E11.6,1X,I6,1X,I2,1X,A22, + 1X,A36) C Effective file loading open(unit=1,status='old',file= +'list.dat') write(6,*) '....Loading file: list.dat' do i__=1,22 read(1,'(A142)')ar__3 read(ar__3,4) + RAdeg_1(i__),DEdeg_1(i__),Nx(i__),Obs_Date(i__),b_Freq(i__), + B_Freq_1(i__),dFreq(i__),size(i__),FileName(i__),Title(i__) c ..............Just test output........... write(6,4) + RAdeg_1(i__),DEdeg_1(i__),Nx(i__),Obs_Date(i__),b_Freq(i__), + B_Freq_1(i__),dFreq(i__),size(i__),FileName(i__),Title(i__) 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