dustem_read_lambda.pro
453 Bytes
FUNCTION dustem_read_lambda,file,silent=silent
readcol,file,lambda,silent=silent
;IC
;this will actually read the number of wavelengths as the first value in the output structure which is wrong. $
;ie st.(0)
;{
; "LAMBDA": 800.00000
;}
;The wrapper has a fix elsewhere in dustem_get_wavelengths() but this should be fixed at this level.
Nlambda=n_elements(lambda)
one_st={lambda:0.}
st=replicate(one_st,Nlambda)
st.lambda=lambda
return,st
END