Commit 287cc742 authored by GROUAZEL's avatar GROUAZEL

fix masked qf partition

parent 7ce1f309
......@@ -192,7 +192,13 @@ def add_wsys_label(ax_legend,wsys,j,c_txt='k',x_txt = 0,fs_legend = 12,hs = 1,me
pass
if hasattr(wsys,"qcpartition"): #wsys['qcpartition']
qcval = 'QC : '+qc_vals[wsys.qcpartition[j]]
valtmp = wsys.qcpartition[j]
if np.ma.is_masked(valtmp):
valtmp2 = 'masked'
else:
valtmp2 = qc_vals[valtmp]
qcval = 'QC : '+valtmp2
ax_legend.annotate(qcval,xy = (x_txt,1.2),color = c_txt,fontsize = fs_legend,xycoords = 'axes fraction')
else:
logging.debug('no QC')
......
......@@ -11,16 +11,20 @@ else
export PYTHONPATH=/home1/datahome/agrouaze/git/mpc/qualitycheck:/home1/datahome/agrouaze/git/mpc/data_collect:/home1/datahome/agrouaze/git/cfosat-calval-exe:/home1/datahome/agrouaze/git/mpc/colocation:/home1/datahome/agrouaze/git/mpc/colocation/ww3spectra:/home1/datahome/agrouaze/git/cerform
fi
scriptlisting=/home1/datahome/agrouaze/git/wavetoolbox/generate_listing_v1_02.py
list="/tmp/tmpListingL2_S1B.lst"
python ${scriptlisting} --beginningdate 20200623 --platform S1B -s SAT -q -g --output-filepath $list
case "$version" in
2)
echo "Starting version2"
exe=/home1/datahome/agrouaze/git/wavetoolbox/runner_plot_spectra_v2.bash
list=/home1/datahome/agrouaze/git/wavetoolbox/example_listing_s1.txt
#list=/home1/datahome/agrouaze/git/wavetoolbox/example_listing_s1.txt
;;
3)
echo "Starting version3"
exe=/home1/datahome/agrouaze/git/wavetoolbox/runner_plot_spectra_v3.bash
list=/home1/datahome/agrouaze/git/wavetoolbox/example_listing_s1_v3.txt
#list=/home1/datahome/agrouaze/git/wavetoolbox/example_listing_s1_v3.txt
;;
*)
echo "Usage: unit_test_2.bash {2|3}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment