dustem_write_all_lv.pro 1.5 KB
PRO dustem_write_all_lv,st,dir_out,help

;+
; NAME:
;   dustem_write_all_lv
;
; PURPOSE:
;  Manages writing of information to .DAT files used by the
;  fortran. 
;
; CATEGORY:
;    DustEMWrap, Distributed, MidLevel, Initialization
;
; CALLING SEQUENCE:
;   dustem_write_all_lv,st,dir_out
;
; INPUTS:
;    st   : dustem data structure
;    dir_out  : output directory where file will be written
;
; OPTIONAL INPUT PARAMETERS:
;    None
;
; OUTPUTS:
;    None
;
; OPTIONAL OUTPUT PARAMETERS:
;    None
;
; ACCEPTED KEY-WORDS:
;    help     : writes this help
;
; COMMON BLOCKS:
;    None
;
; SIDE EFFECTS:
;    Files are written
;
; RESTRICTIONS:
;    The DustEM fortran code must be installed
;    The DustEMWrap IDL code must be installed
;
; PROCEDURES AND SUBROUTINES USED:  
;
; EXAMPLES:
;
; MODIFICATION HISTORY:
;    Evolution details on the DustEMWrap gitlab.
;    See http://dustemwrap.irap.omp.eu/ for FAQ and help.  
;-

IF keyword_set(help) THEN BEGIN
  doc_library,'dustem_write_all_lv'
  goto,the_end
ENDIF

;== ISRF
file_out=dir_out+'les_DAT/'+'ISRF.DAT'
dustem_write_isrf_lv,file_out,st.isrf

;== LAMBDA
file_out=dir_out+'les_QABS/'+'LAMBDA.DAT'
dustem_write_lambda,file_out,st.lambda

;== GRAIN
file_out=dir_out+'les_DAT/'+'GRAIN.DAT'
dustem_write_grain_lv,file_out,st.grains

;== SIZE
file_out=dir_out+'les_DAT/'
dustem_write_size_lv,file_out,st.size

;== QABS
file_out=dir_out+'les_QABS/'
dustem_write_qabs_lv,file_out,st.qabs

;== CALOR
file_out=dir_out+'les_CAPA/'
dustem_write_calor_lv,file_out,st.calor

the_end:

END