Blame view

src/idl/dustem_plot_data_sed.pro 2.01 KB
427f1205   Jean-Michel Glorian   version 4.2 merged
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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

66aff855   Jean-Philippe Bernard   modified to impro...
46
cgplot,(*!dustem_data.sed).wav,(*!dustem_data.sed).values,/nodata,_extra=extra,/xlog,/ylog
427f1205   Jean-Michel Glorian   version 4.2 merged
47
48
49
50
51
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
66aff855   Jean-Philippe Bernard   modified to impro...
52
  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
427f1205   Jean-Michel Glorian   version 4.2 merged
53
54
55
56
57
58
  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
66aff855   Jean-Philippe Bernard   modified to impro...
59
  cgoplot,((*!dustem_data.sed).wav)(ind_filt),((*!dustem_data.sed).values)(ind_filt),psym=8,_extra=extra,color=use_col_data_filt
427f1205   Jean-Michel Glorian   version 4.2 merged
60
61
62
63
64
65
  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