Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/606/A8 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/606/A8 Bubble HII region Sh2-39 (N5) (Duronea+, 2017) *================================================================================ *Triggered massive star formation associated with the HII region bubble *Sh2-39 (N5). * Duronea N.U., Cappa C.E., Bronfman L., Borissova J., Gromadzki M., Kuhn M.A. * <Astron. Astrophys. 606, A8 (2017)> * =2017A&A...606A...8D (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'list.dat' ! List of datacubes centered on bubble HII region Sh2-39 ([CPA2006] N5) integer*4 nr__ parameter (nr__=2) ! Number of records character*98 ar__ ! Full-size record C J2000 position composed of: RAdeg DEdeg real*8 RAdeg (nr__) ! (deg) Right Ascension of center (J2000) real*8 DEdeg (nr__) ! (deg) Declination of center (J2000) integer*4 Nx (nr__) ! Number of pixels along X-axis integer*4 Ny (nr__) ! Number of pixels along Y-axis integer*4 Nz (nr__) ! Number of slices character*10 Obs_dat (nr__) ! ("date") Observation date real*8 bVlsr (nr__) ! (m/s) Lower value of LSR velocity interval real*8 BVlsr_1 (nr__) ! (m/s) Upper value of LSR velocity interval real*4 dVlsr (nr__) ! (m/s) LSR velocity resolution integer*4 size (nr__) ! (Kibyte) Size of FITS file character*9 FileName (nr__) ! Name of FITS file, in subdirectory fits character*16 Title (nr__) ! Title of the FITS file c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for '2m1816ma.dat' ! 2MASS J18165113-1841488 ARCoIRIS spectrum integer*4 nr__1 parameter (nr__1=8447) ! Number of records character*70 ar__1 ! Full-size record real*8 lambda (nr__1) ! (um) Wavelength real*4 Flux (nr__1) ! (mW/m2) ?=- Flux real*4 e_Flux (nr__1) ! (mW/m2) ?=- rms uncertainty on Flux C============================================================================= C Loading file 'list.dat' ! List of datacubes centered on bubble HII region * Sh2-39 ([CPA2006] N5) C Format for file interpretation 1 format( + F9.5,F9.5,1X,I3,1X,I3,1X,I4,1X,A10,1X,F8.1,1X,F7.1,1X,F5.1,1X, + I5,1X,A9,1X,A16) C Effective file loading open(unit=1,status='old',file= +'list.dat') write(6,*) '....Loading file: list.dat' do i__=1,2 read(1,'(A98)')ar__ read(ar__,1) + RAdeg(i__),DEdeg(i__),Nx(i__),Ny(i__),Nz(i__),Obs_dat(i__), + bVlsr(i__),BVlsr_1(i__),dVlsr(i__),size(i__),FileName(i__), + Title(i__) c ..............Just test output........... write(6,1) + RAdeg(i__),DEdeg(i__),Nx(i__),Ny(i__),Nz(i__),Obs_dat(i__), + bVlsr(i__),BVlsr_1(i__),dVlsr(i__),size(i__),FileName(i__), + Title(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file '2m1816ma.dat' ! 2MASS J18165113-1841488 ARCoIRIS spectrum C Format for file interpretation 2 format(6X,F10.8,4X,E14.8,5X,E13.8) C Effective file loading open(unit=1,status='old',file= +'2m1816ma.dat') write(6,*) '....Loading file: 2m1816ma.dat' do i__=1,8447 read(1,'(A70)')ar__1 read(ar__1,2)lambda(i__),Flux(i__),e_Flux(i__) if (idig(ar__1(21:34)).EQ.0) Flux(i__) = rNULL__ if (idig(ar__1(40:52)).EQ.0) e_Flux(i__) = rNULL__ c ..............Just test output........... write(6,2)lambda(i__),Flux(i__),e_Flux(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