PRO dustem_plot_data_sed,_extra=extra,help=help ;+ ; NAME: ; dustem_plot_data_sed ; PURPOSE: ; Plots Dustem SED data ; CATEGORY: ; Dustem ; CALLING SEQUENCE: ; dustem_plot_data_sed[,/help][_extra=] ; INPUTS: ; None ; OPTIONAL INPUT PARAMETERS: ; _extra = extra parameters for the plot routine ; OUTPUTS: ; None ; OPTIONAL OUTPUT PARAMETERS: ; None ; ACCEPTED KEY-WORDS: ; help = If set, print this help ; COMMON BLOCKS: ; None ; SIDE EFFECTS: ; SED and model are plotted ; RESTRICTIONS: ; The dustem idl wrapper must be installed ; PROCEDURE: ; None ; EXAMPLES ; dustem_plot_data_sed ; MODIFICATION HISTORY: ; Written by J.-Ph. Bernard June 10 2011 ; see evolution details on the dustem cvs maintained at CESR ; Contact J.-Ph. Bernard (Jean-Philippe.Bernard@cesr.fr) in case of problems. ;- IF keyword_set(help) THEN BEGIN doc_library,'dustem_plot_data_sed' goto,the_end ENDIF use_col_data_spec=255 ;color for spectral data use_col_data_filt=100 ;color for filter data cgplot,(*!dustem_data.sed).wav,(*!dustem_data.sed).values,/nodata,_extra=extra,/xlog,/ylog ind_filt=where((*!dustem_data.sed).filt_names NE 'SPECTRUM',count_filt) ind_spec=where((*!dustem_data.sed).filt_names EQ 'SPECTRUM',count_spec) ;=== Plot the data IF count_spec NE 0 THEN BEGIN plotsym,0,/fill cgoplot,((*!dustem_data.sed).wav)(ind_spec),((*!dustem_data.sed).values)(ind_spec),psym=8,_extra=extra,color=use_col_data_spec,syms=0.5 IF not keyword_set(no_spec_error) THEN BEGIN err_bar,((*!dustem_data.sed).wav)(ind_spec),((*!dustem_data.sed).values)(ind_spec),yrms=3.*((*!dustem_data.sed).sigma)(ind_spec)/2.,color=use_col_data_spec ENDIF ENDIF IF count_filt NE 0 THEN BEGIN plotsym,0,/fill cgoplot,((*!dustem_data.sed).wav)(ind_filt),((*!dustem_data.sed).values)(ind_filt),psym=8,_extra=extra,color=use_col_data_filt err_bar,((*!dustem_data.sed).wav)(ind_filt),((*!dustem_data.sed).values)(ind_filt),yrms=3.*((*!dustem_data.sed).sigma)(ind_filt)/2.,color=use_col_data_filt ENDIF the_end: END