Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/646/A72 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 2026-Jun-13
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/646/A72 Resolved molecular line observations (Harsono+, 2021)
*================================================================================
*Resolved molecular line observations reveal an inherited molecular layer in the
*young disk around TMC1A.
* Harsono D., van der Wiel M.H.D., Bjerkeli P., Ramsey J.P., Calcutt H.,
* Kristensen L.E., Joergensen J.K.
* <Astron. Astrophys. 646, A72 (2021)>
* =2021A&A...646A..72H
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Properties of the ALMA images including noise
and integrated flux density
integer*4 nr__
parameter (nr__=17) ! Number of records
character*82 ar__ ! Full-size record
character*23 Name ! Name of the data
real*8 Freq ! (GHz) Frequency of the data
real*8 Eup ! (K) ?=- Upper enery level (1)
real*4 LogAij ! ([s-1]) ?=- Logarithmic of the Einstein A
real*4 Beam1 ! (arcsec) Beam information, FWHM of the major axis
real*4 Beam2 ! (arcsec) Beam information, FWHM of the minor axis
real*4 PA ! (deg) [] Beam information, position angle
real*4 Noise ! (mJy/beam) Noise level
integer*4 Time ! (s) The final integrated time based on the
* visibilities
character*1 l_Int ! Limit flag on Int
integer*4 Int ! (mJy.km/s) Integrated flux inside 1" (2)
integer*4 e_Int ! (mJy.km/s) ?=- Error on integrated flux inside 1" (2)
*Note (1): Upper limits are calculated over the size of the dust continuum
* emission.
*Note (2): We report the noise to be 10% of the integrated flux density unless
* the measured noise is larger than 10%.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'list.dat' ! List of fits datacubes and images
integer*4 nr__1
parameter (nr__1=14) ! Number of records
character*173 ar__1 ! Full-size record
C J2000 position composed of: RAdeg DEdeg
real*8 RAdeg ! (deg) Right Ascension of center (J2000)
real*8 DEdeg ! (deg) Declination of center (J2000)
integer*4 Nx ! Number of pixels along X-axis
integer*4 Ny ! Number of pixels along Y-axis
integer*4 Nz ! ?=- Number of slices for the datacubes
character*26 Obs_date ! ("datime") Observation date
real*8 bVRAD ! (m/s) ?=- Lower value of VRAD interval for datacubes
real*8 BVRAD_1 ! (m/s) ?=- Upper value of VRAD interval for datacubes
real*8 dVRAD ! (m/s) ?=- VRAD resolution for datacubes
real*8 Freq_1 ! (GHz) Observed frequency
integer*4 size ! (Kibyte) Size of FITS file
character*38 FileName ! Name of FITS file, in subdirectory fits
character*32 Title ! Title of the FITS file
C=============================================================================
C Loading file 'table2.dat' ! Properties of the ALMA images including noise
* and integrated flux density
C Format for file interpretation
1 format(
+ A23,1X,F8.4,1X,F7.2,1X,F5.2,1X,F5.3,1X,F5.3,1X,F4.1,1X,F4.2,
+ 1X,I3,1X,A1,I4,1X,I3)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,17
read(1,'(A82)')ar__
read(ar__,1)
+ Name,Freq,Eup,LogAij,Beam1,Beam2,PA,Noise,Time,l_Int,Int,e_Int
if (idig(ar__(34:40)).EQ.0) Eup = rNULL__
if (idig(ar__(42:46)).EQ.0) LogAij = rNULL__
if (e_Int .EQ. 45) e_Int = iNULL__
c ..............Just test output...........
write(6,1)
+ Name,Freq,Eup,LogAij,Beam1,Beam2,PA,Noise,Time,l_Int,Int,e_Int
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'list.dat' ! List of fits datacubes and images
C Format for file interpretation
2 format(
+ F9.5,F9.5,1X,I4,1X,I4,1X,I3,1X,A26,1X,F8.1,1X,F7.1,1X,F7.2,1X,
+ F7.3,1X,I8,1X,A38,1X,A32)
C Effective file loading
open(unit=1,status='old',file=
+'list.dat')
write(6,*) '....Loading file: list.dat'
do i__=1,14
read(1,'(A173)')ar__1
read(ar__1,2)
+ RAdeg,DEdeg,Nx,Ny,Nz,Obs_date,bVRAD,BVRAD_1,dVRAD,Freq_1,size,
+ FileName,Title
if (Nz .EQ. 45) Nz = iNULL__
if (idig(ar__1(61:68)).EQ.0) bVRAD = rNULL__
if (idig(ar__1(70:76)).EQ.0) BVRAD_1 = rNULL__
if (idig(ar__1(78:84)).EQ.0) dVRAD = rNULL__
c ..............Just test output...........
write(6,2)
+ RAdeg,DEdeg,Nx,Ny,Nz,Obs_date,bVRAD,BVRAD_1,dVRAD,Freq_1,size,
+ FileName,Title
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