Blame view

src/idl/dustem_read_isrf.pro 887 Bytes
427f1205   Jean-Michel Glorian   version 4.2 merged
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FUNCTION dustem_read_isrf,file,silent=silent,Nisrf=Nisrf

;        lambISRF(k) = val(1)
;        ISRF(k) = val(2)

readcol,file,lambisrf,isrf,silent=silent
nlines=n_elements(lambisrf)

one_st={lambisrf:0.,isrf:0.}
st=replicate(one_st,Nlines)

st.lambisrf=lambisrf
st.isrf=isrf

4750086c   Ilyes Choubani   nouvelle philosph...
15
16
17
;==========I DON'T THINK WE NEED TO KEEP THESE COMMENTS=========

;FOLLOWING IS WRONG (SOMEBODY (CAN) GET/(GOT) CONFUSED BETWEEN isrf.dat AND
427f1205   Jean-Michel Glorian   version 4.2 merged
18
19
20
21
22
23
24
25
26
27
28
29
30
;lambda.dat)

;THIS was right. Somebody else got confused too: The first element is
;now the number of lines, so it should not be included in the
;strcuture. Signe JPB


;IF getenv('DUSTEM_WHICH') EQ 'VERSTRAETE' THEN BEGIN
IF !dustem_which EQ 'VERSTRAETE' THEN BEGIN
  st=st(1:*)
  Nisrf=n_elements(st)
ENDIF
;IF getenv('DUSTEM_WHICH') EQ 'WEB3p8' THEN BEGIN
8bab7d4b   Ilyes Choubani   small corrections...
31
IF !dustem_which EQ 'RELEASE' THEN BEGIN
427f1205   Jean-Michel Glorian   version 4.2 merged
32
33
34
35
36
37
38
39
40
  st=st(1:*)
  Nisrf=n_elements(st)
ENDIF

;stop

return,st

END