Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/609/A30 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-Oct-07
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/609/A30 Monochromatic conversion factors to LIR & Mdust (Schreiber+, 2018)
*================================================================================
*Dust temperature and mid-to-total infrared color distributions for star-forming
*galaxies at 0 < z < 4.
* Schreiber C., Elbaz D., Pannella M., Wang T., Ciesla L., Franco M.
* <Astron. Astrophys. 609, A30 (2018)>
* =2018A&A...609A..30S (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tablea1.dat' ! ALMA flux to LIR (LIR/Snu)
integer*4 nr__
parameter (nr__=24) ! Number of records
character*89 ar__ ! Full-size record
real*4 z ! Redshift
real*4 c9 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 9 to LIR
real*4 u9 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 9
real*4 c8 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 8 to LIR
real*4 u8 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 8
real*4 c7 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 7 to LIR
real*4 u7 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 7
real*4 c6 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 6 to LIR
real*4 u6 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 6
real*4 c5 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 5 to LIR
real*4 u5 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 5
real*4 c4 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 4 to LIR
real*4 u4 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 4
real*8 c3 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 3 to LIR
real*4 u3 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 3
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tablea2.dat' ! ALMA flux to Mdust (Mdust/Snu)
integer*4 nr__1
parameter (nr__1=24) ! Number of records
character*89 ar__1 ! Full-size record
real*4 z_1 ! Redshift
real*4 c9_1 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 9 to LIR
real*4 u9_1 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 9
real*4 c8_1 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 8 to LIR
real*4 u8_1 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 8
real*4 c7_1 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 7 to LIR
real*4 u7_1 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 7
real*4 c6_1 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 6 to LIR
real*4 u6_1 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 6
real*4 c5_1 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 5 to LIR
real*4 u5_1 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 5
real*4 c4_1 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 4 to LIR
real*4 u4_1 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 4
real*8 c3_1 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 3 to LIR
real*4 u3_1 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 3
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tablea3.dat' ! JWST luminosity to LIR (LIR/nuLnu)
integer*4 nr__2
parameter (nr__2=119) ! Number of records
character*89 ar__2 ! Full-size record
real*4 z_2 ! Redshift
real*4 c9_2 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 9 to LIR
real*4 u9_2 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 9
real*4 c8_2 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 8 to LIR
real*4 u8_2 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 8
real*4 c7_2 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 7 to LIR
real*4 u7_2 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 7
real*4 c6_2 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 6 to LIR
real*4 u6_2 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 6
real*4 c5_2 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 5 to LIR
real*4 u5_2 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 5
real*4 c4_2 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 4 to LIR
real*4 u4_2 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 4
real*8 c3_2 ! (10+12Lsun/mJy) ?=- Conversion from ALMA Band 3 to LIR
real*4 u3_2 ! ([-]) ?=- Logarithmic uncertainty for ALMA Band 3
C=============================================================================
C Loading file 'tablea1.dat' ! ALMA flux to LIR (LIR/Snu)
C Format for file interpretation
1 format(
+ F4.2,1X,F6.3,1X,F4.2,1X,F6.3,1X,F4.2,1X,F6.3,1X,F4.2,1X,F6.3,
+ 1X,F4.2,1X,F6.3,1X,F4.2,1X,F6.3,1X,F4.2,1X,F7.3,1X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'tablea1.dat')
write(6,*) '....Loading file: tablea1.dat'
do i__=1,24
read(1,'(A89)')ar__
read(ar__,1)z,c9,u9,c8,u8,c7,u7,c6,u6,c5,u5,c4,u4,c3,u3
if (idig(ar__(6:11)).EQ.0) c9 = rNULL__
if (idig(ar__(13:16)).EQ.0) u9 = rNULL__
if (idig(ar__(18:23)).EQ.0) c8 = rNULL__
if (idig(ar__(25:28)).EQ.0) u8 = rNULL__
if (idig(ar__(30:35)).EQ.0) c7 = rNULL__
if (idig(ar__(37:40)).EQ.0) u7 = rNULL__
if (idig(ar__(42:47)).EQ.0) c6 = rNULL__
if (idig(ar__(49:52)).EQ.0) u6 = rNULL__
if (idig(ar__(54:59)).EQ.0) c5 = rNULL__
if (idig(ar__(61:64)).EQ.0) u5 = rNULL__
if (idig(ar__(66:71)).EQ.0) c4 = rNULL__
if (idig(ar__(73:76)).EQ.0) u4 = rNULL__
if (idig(ar__(78:84)).EQ.0) c3 = rNULL__
if (idig(ar__(86:89)).EQ.0) u3 = rNULL__
c ..............Just test output...........
write(6,1)z,c9,u9,c8,u8,c7,u7,c6,u6,c5,u5,c4,u4,c3,u3
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'tablea2.dat' ! ALMA flux to Mdust (Mdust/Snu)
C Format for file interpretation
2 format(
+ F4.2,1X,F6.3,1X,F4.2,1X,F6.3,1X,F4.2,1X,F6.3,1X,F4.2,1X,F6.3,
+ 1X,F4.2,1X,F6.3,1X,F4.2,1X,F6.3,1X,F4.2,1X,F7.3,1X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'tablea2.dat')
write(6,*) '....Loading file: tablea2.dat'
do i__=1,24
read(1,'(A89)')ar__1
read(ar__1,2)
+ z_1,c9_1,u9_1,c8_1,u8_1,c7_1,u7_1,c6_1,u6_1,c5_1,u5_1,c4_1,
+ u4_1,c3_1,u3_1
if (idig(ar__1(6:11)).EQ.0) c9_1 = rNULL__
if (idig(ar__1(13:16)).EQ.0) u9_1 = rNULL__
if (idig(ar__1(18:23)).EQ.0) c8_1 = rNULL__
if (idig(ar__1(25:28)).EQ.0) u8_1 = rNULL__
if (idig(ar__1(30:35)).EQ.0) c7_1 = rNULL__
if (idig(ar__1(37:40)).EQ.0) u7_1 = rNULL__
if (idig(ar__1(42:47)).EQ.0) c6_1 = rNULL__
if (idig(ar__1(49:52)).EQ.0) u6_1 = rNULL__
if (idig(ar__1(54:59)).EQ.0) c5_1 = rNULL__
if (idig(ar__1(61:64)).EQ.0) u5_1 = rNULL__
if (idig(ar__1(66:71)).EQ.0) c4_1 = rNULL__
if (idig(ar__1(73:76)).EQ.0) u4_1 = rNULL__
if (idig(ar__1(78:84)).EQ.0) c3_1 = rNULL__
if (idig(ar__1(86:89)).EQ.0) u3_1 = rNULL__
c ..............Just test output...........
write(6,2)
+ z_1,c9_1,u9_1,c8_1,u8_1,c7_1,u7_1,c6_1,u6_1,c5_1,u5_1,c4_1,
+ u4_1,c3_1,u3_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'tablea3.dat' ! JWST luminosity to LIR (LIR/nuLnu)
C Format for file interpretation
3 format(
+ F4.2,1X,F6.3,1X,F4.2,1X,F6.3,1X,F4.2,1X,F6.3,1X,F4.2,1X,F6.3,
+ 1X,F4.2,1X,F6.3,1X,F4.2,1X,F6.3,1X,F4.2,1X,F7.3,1X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'tablea3.dat')
write(6,*) '....Loading file: tablea3.dat'
do i__=1,119
read(1,'(A89)')ar__2
read(ar__2,3)
+ z_2,c9_2,u9_2,c8_2,u8_2,c7_2,u7_2,c6_2,u6_2,c5_2,u5_2,c4_2,
+ u4_2,c3_2,u3_2
if (idig(ar__2(6:11)).EQ.0) c9_2 = rNULL__
if (idig(ar__2(13:16)).EQ.0) u9_2 = rNULL__
if (idig(ar__2(18:23)).EQ.0) c8_2 = rNULL__
if (idig(ar__2(25:28)).EQ.0) u8_2 = rNULL__
if (idig(ar__2(30:35)).EQ.0) c7_2 = rNULL__
if (idig(ar__2(37:40)).EQ.0) u7_2 = rNULL__
if (idig(ar__2(42:47)).EQ.0) c6_2 = rNULL__
if (idig(ar__2(49:52)).EQ.0) u6_2 = rNULL__
if (idig(ar__2(54:59)).EQ.0) c5_2 = rNULL__
if (idig(ar__2(61:64)).EQ.0) u5_2 = rNULL__
if (idig(ar__2(66:71)).EQ.0) c4_2 = rNULL__
if (idig(ar__2(73:76)).EQ.0) u4_2 = rNULL__
if (idig(ar__2(78:84)).EQ.0) c3_2 = rNULL__
if (idig(ar__2(86:89)).EQ.0) u3_2 = rNULL__
c ..............Just test output...........
write(6,3)
+ z_2,c9_2,u9_2,c8_2,u8_2,c7_2,u7_2,c6_2,u6_2,c5_2,u5_2,c4_2,
+ u4_2,c3_2,u3_2
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