Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/679/A57 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-08
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/679/A57 CRIRES-POP III. 10 Leo line identification (Zendel+, 2023)
*================================================================================
*CRIRES-POP: A library of high resolution spectra in the near-infrared.
*III. Line identification in the K giant 10 Leo.
* Zendel M., Lebzelter T., Nicholls C.P.
* <Astron. Astrophys. 679, A57 (2023)>
* =2023A&A...679A..57Z (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tab10-yj.dat' ! 10 Leo line list YJ band
integer*4 nr__
parameter (nr__=4096) ! Number of records
character*66 ar__ ! Full-size record
real*8 v ! (cm-1) Wavenumber (observed)
real*4 v1_F ! Absorptance (observed)
integer*4 EW0 ! (10-4nm) Equivalent width (observed)
real*8 WLobs ! (nm) Wavelength (observed)
real*8 WLvald ! (nm) ?=- Wavelength VALD3
character*4 ID ! Ion/molecule (1)
character*17 Trans ! Transition (2)
character*3 cp ! Line quality (3)
character*1 M ! Catalogue Match (4)
*Note (1): U means line without a known identification
*Note (2): R=R-branch, P=P-branch, Q=Q-branch
*Note (3): Indicator for the level of blending and quality for each line with
* the following meaning:
* S = single component
* D = two components
* T = three components
* QN = N components
* X = uncertain continuum level affecting the shape and depth of the line
*Note (4): distinguishing various levels of agreement with the VALD3 database
* and the Arcturus atlas, respectively (see Table 11).
*
* Table 11: Number of line matches between 10 Leo (observed),
* VALD3 (calculated), and Arcturus (observed, Hinkle atlas)
* --------------------------------------------------------------------------
* Category 10 Leo VALD3 Arcturus YJ H K L M sum
* --------------------------------------------------------------------------
* A y y y 1367 1375 971 358 1078 5149
* B y y n 1941 2958 1984 824 1498 9205
* C n y n 1003 2104 1184 702 491 5484
* D n y y 9 113 13 3 7 145
* E y n y 60 84 13 93 1 251
* F y n n 729 324 245 444 84 1826
* G n n y 4 82 15 67 7 175
* sum 5113 7040 4424 2491 3166 22235
* U 436 303 196 415 84 1434
* --------------------------------------------------------------------------
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tab10-h.dat' ! 10 Leo line list H band
integer*4 nr__1
parameter (nr__1=4741) ! Number of records
character*66 ar__1 ! Full-size record
real*8 v_1 ! (cm-1) Wavenumber (observed)
real*4 v1_F_1 ! Absorptance (observed)
integer*4 EW0_1 ! (10-4nm) Equivalent width (observed)
real*8 WLobs_1 ! (nm) Wavelength (observed)
real*8 WLvald_1 ! (nm) ?=- Wavelength VALD3
character*4 ID_1 ! Ion/molecule (1)
character*17 Trans_1 ! Transition (2)
character*3 cp_1 ! Line quality (3)
character*1 M_1 ! Catalogue Match (4)
*Note (1): U means line without a known identification
*Note (2): R=R-branch, P=P-branch, Q=Q-branch
*Note (3): Indicator for the level of blending and quality for each line with
* the following meaning:
* S = single component
* D = two components
* T = three components
* QN = N components
* X = uncertain continuum level affecting the shape and depth of the line
*Note (4): distinguishing various levels of agreement with the VALD3 database
* and the Arcturus atlas, respectively (see Table 11).
*
* Table 11: Number of line matches between 10 Leo (observed),
* VALD3 (calculated), and Arcturus (observed, Hinkle atlas)
* --------------------------------------------------------------------------
* Category 10 Leo VALD3 Arcturus YJ H K L M sum
* --------------------------------------------------------------------------
* A y y y 1367 1375 971 358 1078 5149
* B y y n 1941 2958 1984 824 1498 9205
* C n y n 1003 2104 1184 702 491 5484
* D n y y 9 113 13 3 7 145
* E y n y 60 84 13 93 1 251
* F y n n 729 324 245 444 84 1826
* G n n y 4 82 15 67 7 175
* sum 5113 7040 4424 2491 3166 22235
* U 436 303 196 415 84 1434
* --------------------------------------------------------------------------
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tab10-k.dat' ! 10 Leo line list K band
integer*4 nr__2
parameter (nr__2=3213) ! Number of records
character*66 ar__2 ! Full-size record
real*8 v_2 ! (cm-1) Wavenumber (observed)
real*4 v1_F_2 ! Absorptance (observed)
integer*4 EW0_2 ! (10-4nm) Equivalent width (observed)
real*8 WLobs_2 ! (nm) Wavelength (observed)
real*8 WLvald_2 ! (nm) ?=- Wavelength VALD3
character*4 ID_2 ! Ion/molecule (1)
character*17 Trans_2 ! Transition (2)
character*3 cp_2 ! Line quality (3)
character*1 M_2 ! Catalogue Match (4)
*Note (1): U means line without a known identification
*Note (2): R=R-branch, P=P-branch, Q=Q-branch
*Note (3): Indicator for the level of blending and quality for each line with
* the following meaning:
* S = single component
* D = two components
* T = three components
* QN = N components
* X = uncertain continuum level affecting the shape and depth of the line
*Note (4): distinguishing various levels of agreement with the VALD3 database
* and the Arcturus atlas, respectively (see Table 11).
*
* Table 11: Number of line matches between 10 Leo (observed),
* VALD3 (calculated), and Arcturus (observed, Hinkle atlas)
* --------------------------------------------------------------------------
* Category 10 Leo VALD3 Arcturus YJ H K L M sum
* --------------------------------------------------------------------------
* A y y y 1367 1375 971 358 1078 5149
* B y y n 1941 2958 1984 824 1498 9205
* C n y n 1003 2104 1184 702 491 5484
* D n y y 9 113 13 3 7 145
* E y n y 60 84 13 93 1 251
* F y n n 729 324 245 444 84 1826
* G n n y 4 82 15 67 7 175
* sum 5113 7040 4424 2491 3166 22235
* U 436 303 196 415 84 1434
* --------------------------------------------------------------------------
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tab10-l.dat' ! 10 Leo line list L band
integer*4 nr__3
parameter (nr__3=1719) ! Number of records
character*66 ar__3 ! Full-size record
real*8 v_3 ! (cm-1) Wavenumber (observed)
real*4 v1_F_3 ! Absorptance (observed)
integer*4 EW0_3 ! (10-4nm) Equivalent width (observed)
real*8 WLobs_3 ! (nm) Wavelength (observed)
real*8 WLvald_3 ! (nm) ?=- Wavelength VALD3
character*4 ID_3 ! Ion/molecule (1)
character*17 Trans_3 ! Transition (2)
character*3 cp_3 ! Line quality (3)
character*1 M_3 ! Catalogue Match (4)
*Note (1): U means line without a known identification
*Note (2): R=R-branch, P=P-branch, Q=Q-branch
*Note (3): Indicator for the level of blending and quality for each line with
* the following meaning:
* S = single component
* D = two components
* T = three components
* QN = N components
* X = uncertain continuum level affecting the shape and depth of the line
*Note (4): distinguishing various levels of agreement with the VALD3 database
* and the Arcturus atlas, respectively (see Table 11).
*
* Table 11: Number of line matches between 10 Leo (observed),
* VALD3 (calculated), and Arcturus (observed, Hinkle atlas)
* --------------------------------------------------------------------------
* Category 10 Leo VALD3 Arcturus YJ H K L M sum
* --------------------------------------------------------------------------
* A y y y 1367 1375 971 358 1078 5149
* B y y n 1941 2958 1984 824 1498 9205
* C n y n 1003 2104 1184 702 491 5484
* D n y y 9 113 13 3 7 145
* E y n y 60 84 13 93 1 251
* F y n n 729 324 245 444 84 1826
* G n n y 4 82 15 67 7 175
* sum 5113 7040 4424 2491 3166 22235
* U 436 303 196 415 84 1434
* --------------------------------------------------------------------------
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tab10-m.dat' ! 10 Leo line list M band
integer*4 nr__4
parameter (nr__4=2661) ! Number of records
character*66 ar__4 ! Full-size record
real*8 v_4 ! (cm-1) Wavenumber (observed)
real*4 v1_F_4 ! Absorptance (observed)
integer*4 EW0_4 ! (10-4nm) Equivalent width (observed)
real*8 WLobs_4 ! (nm) Wavelength (observed)
real*8 WLvald_4 ! (nm) ?=- Wavelength VALD3
character*4 ID_4 ! Ion/molecule (1)
character*17 Trans_4 ! Transition (2)
character*3 cp_4 ! Line quality (3)
character*1 M_4 ! Catalogue Match (4)
*Note (1): U means line without a known identification
*Note (2): R=R-branch, P=P-branch, Q=Q-branch
*Note (3): Indicator for the level of blending and quality for each line with
* the following meaning:
* S = single component
* D = two components
* T = three components
* QN = N components
* X = uncertain continuum level affecting the shape and depth of the line
*Note (4): distinguishing various levels of agreement with the VALD3 database
* and the Arcturus atlas, respectively (see Table 11).
*
* Table 11: Number of line matches between 10 Leo (observed),
* VALD3 (calculated), and Arcturus (observed, Hinkle atlas)
* --------------------------------------------------------------------------
* Category 10 Leo VALD3 Arcturus YJ H K L M sum
* --------------------------------------------------------------------------
* A y y y 1367 1375 971 358 1078 5149
* B y y n 1941 2958 1984 824 1498 9205
* C n y n 1003 2104 1184 702 491 5484
* D n y y 9 113 13 3 7 145
* E y n y 60 84 13 93 1 251
* F y n n 729 324 245 444 84 1826
* G n n y 4 82 15 67 7 175
* sum 5113 7040 4424 2491 3166 22235
* U 436 303 196 415 84 1434
* --------------------------------------------------------------------------
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tablec.dat' ! Missing match with VALD3
integer*4 nr__5
parameter (nr__5=5481) ! Number of records
character*57 ar__5 ! Full-size record
real*8 v_5 ! (cm-1) Wavenumber (observed)
real*4 v1_F_5 ! Absorptance (observed)
character*4 ID_5 ! Ion/molecule
character*17 Trans_5 ! Transition (1)
character*12 Presence ! Inconclusive or absent (2)
real*4 cdepth ! Synthetic cdepth from VALD3
* (stellar extraction)
*Note (1): R=R branch, P=P branch, Q= Q branch
*Note (2): indicate lines that are expected from the VALD3 based model or
* have been identified in the Arcturus atlas, but do not have a
* counterpart in the 10 Leo spectrum.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tableg.dat' ! Missing match with Arcturus atlas
integer*4 nr__6
parameter (nr__6=176) ! Number of records
character*59 ar__6 ! Full-size record
real*8 v_6 ! (cm-1) Wavenumber (observed)
real*4 v1_F_6 ! Absorptance (observed)
real*8 WLarc ! (nm) Wavelength Arcturus
character*4 ID_6 ! Ion/molecule
character*17 Trans_6 ! Transition (1)
character*12 Presence_1 ! Inconclusive or IDconflict (2)
*Note (1): R=R branch, P=P branch, Q=Q branch
*Note (2): indicates lines that are expected from the Arcturus atlas, but do
* not have a counterpart in the 10 Leo spectrum including also 28 lines where
* the identification in the Arcturus atlas and from VALD3 is not the same
* ('IDconflict').
C=============================================================================
C Loading file 'tab10-yj.dat' ! 10 Leo line list YJ band
C Format for file interpretation
1 format(
+ F8.2,1X,F6.3,1X,I4,2X,F7.2,1X,F7.2,1X,A4,1X,A17,1X,A3,1X,A1)
C Effective file loading
open(unit=1,status='old',file=
+'tab10-yj.dat')
write(6,*) '....Loading file: tab10-yj.dat'
do i__=1,4096
read(1,'(A66)')ar__
read(ar__,1)v,v1_F,EW0,WLobs,WLvald,ID,Trans,cp,M
if (idig(ar__(31:37)).EQ.0) WLvald = rNULL__
c ..............Just test output...........
write(6,1)v,v1_F,EW0,WLobs,WLvald,ID,Trans,cp,M
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'tab10-h.dat' ! 10 Leo line list H band
C Format for file interpretation
2 format(
+ F8.2,1X,F6.3,1X,I4,2X,F7.2,1X,F7.2,1X,A4,1X,A17,1X,A3,1X,A1)
C Effective file loading
open(unit=1,status='old',file=
+'tab10-h.dat')
write(6,*) '....Loading file: tab10-h.dat'
do i__=1,4741
read(1,'(A66)')ar__1
read(ar__1,2)
+ v_1,v1_F_1,EW0_1,WLobs_1,WLvald_1,ID_1,Trans_1,cp_1,M_1
if (idig(ar__1(31:37)).EQ.0) WLvald_1 = rNULL__
c ..............Just test output...........
write(6,2)
+ v_1,v1_F_1,EW0_1,WLobs_1,WLvald_1,ID_1,Trans_1,cp_1,M_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'tab10-k.dat' ! 10 Leo line list K band
C Format for file interpretation
3 format(
+ F8.2,1X,F6.3,1X,I4,2X,F7.2,1X,F7.2,1X,A4,1X,A17,1X,A3,1X,A1)
C Effective file loading
open(unit=1,status='old',file=
+'tab10-k.dat')
write(6,*) '....Loading file: tab10-k.dat'
do i__=1,3213
read(1,'(A66)')ar__2
read(ar__2,3)
+ v_2,v1_F_2,EW0_2,WLobs_2,WLvald_2,ID_2,Trans_2,cp_2,M_2
if (idig(ar__2(31:37)).EQ.0) WLvald_2 = rNULL__
c ..............Just test output...........
write(6,3)
+ v_2,v1_F_2,EW0_2,WLobs_2,WLvald_2,ID_2,Trans_2,cp_2,M_2
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'tab10-l.dat' ! 10 Leo line list L band
C Format for file interpretation
4 format(
+ F8.2,1X,F6.3,1X,I4,2X,F7.2,1X,F7.2,1X,A4,1X,A17,1X,A3,1X,A1)
C Effective file loading
open(unit=1,status='old',file=
+'tab10-l.dat')
write(6,*) '....Loading file: tab10-l.dat'
do i__=1,1719
read(1,'(A66)')ar__3
read(ar__3,4)
+ v_3,v1_F_3,EW0_3,WLobs_3,WLvald_3,ID_3,Trans_3,cp_3,M_3
if (idig(ar__3(31:37)).EQ.0) WLvald_3 = rNULL__
c ..............Just test output...........
write(6,4)
+ v_3,v1_F_3,EW0_3,WLobs_3,WLvald_3,ID_3,Trans_3,cp_3,M_3
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'tab10-m.dat' ! 10 Leo line list M band
C Format for file interpretation
5 format(
+ F8.2,1X,F6.3,1X,I4,2X,F7.2,1X,F7.2,1X,A4,1X,A17,1X,A3,1X,A1)
C Effective file loading
open(unit=1,status='old',file=
+'tab10-m.dat')
write(6,*) '....Loading file: tab10-m.dat'
do i__=1,2661
read(1,'(A66)')ar__4
read(ar__4,5)
+ v_4,v1_F_4,EW0_4,WLobs_4,WLvald_4,ID_4,Trans_4,cp_4,M_4
if (idig(ar__4(31:37)).EQ.0) WLvald_4 = rNULL__
c ..............Just test output...........
write(6,5)
+ v_4,v1_F_4,EW0_4,WLobs_4,WLvald_4,ID_4,Trans_4,cp_4,M_4
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'tablec.dat' ! Missing match with VALD3
C Format for file interpretation
6 format(F8.2,1X,F6.3,1X,A4,1X,A17,1X,A12,1X,F5.3)
C Effective file loading
open(unit=1,status='old',file=
+'tablec.dat')
write(6,*) '....Loading file: tablec.dat'
do i__=1,5481
read(1,'(A57)')ar__5
read(ar__5,6)v_5,v1_F_5,ID_5,Trans_5,Presence,cdepth
c ..............Just test output...........
write(6,6)v_5,v1_F_5,ID_5,Trans_5,Presence,cdepth
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'tableg.dat' ! Missing match with Arcturus atlas
C Format for file interpretation
7 format(F7.2,1X,F6.3,2X,F7.2,1X,A4,1X,A17,1X,A12)
C Effective file loading
open(unit=1,status='old',file=
+'tableg.dat')
write(6,*) '....Loading file: tableg.dat'
do i__=1,176
read(1,'(A59)')ar__6
read(ar__6,7)v_6,v1_F_6,WLarc,ID_6,Trans_6,Presence_1
c ..............Just test output...........
write(6,7)v_6,v1_F_6,WLarc,ID_6,Trans_6,Presence_1
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