PRO dustem_set_params,params ;if empty description, do nothing ind=where(*(*!dustem_fit).param_descs EQ '',count) IF count EQ n_elements(*(*!dustem_fit).param_descs) THEN BEGIN message,'param_descs not set. Doing nothing',/continue stop goto,the_end ENDIF Nparams=n_elements(*(*!dustem_fit).param_descs) dustem_set_func_ind,*(*!dustem_fit).param_descs,params ;SET THE PARAMETER VALUES IN DUSTEM INPUT FILES FOR i=0L,Nparams-1 DO BEGIN status=dustem_parameter_description2type((*(*!dustem_fit).param_descs)[i],string_name=string_name) IF !dustem_verbose THEN message,(*(*!dustem_fit).param_descs)[i]+' is '+status,/continue CASE status OF 'WRAPPER': BEGIN str=(*(*!dustem_fit).param_descs)(i)+'=params[i]' toto=execute(str) IF !dustem_verbose NE 0 THEN message,str,/info END 'FORTRAN': BEGIN str=(*(*!dustem_fit).param_descs)(i)+'=params[i]';'=params['+strtrim(string(i),2)+']' toto=execute(str) IF !dustem_verbose NE 0 THEN message,str,/info END 'PLUGIN': BEGIN ;Not to be used for the moment. END ENDCASE ENDFOR dustem_write_all,*!dustem_params,!dustem_dat the_end: END