Commit 1d8d9575 authored by GROUAZEL's avatar GROUAZEL

fix error WW3 spectra when no partition

parent 18635987
......@@ -150,11 +150,15 @@ class SpectrumReaderWw3(AbstractSpectrumReader):
complet_partitions_sorted = reconstruct_ww3_partition_mask_from_partitioning(my_data['sp']*area,wavesys)
# complet_partitions_sorted = partition_wv_xassignment.reconstruct_ww3_partition_mask_from_partitioning(complet_matrice_sorted,ww3_part)
wave_integrated_values = convert_partitioning_output_2_wsys(wavesys)
# end partitioning
my_data['part'] = complet_partitions_sorted
else:
wave_integrated_values = {}
#end partitioning
my_data['part'] = complet_partitions_sorted
t = ncf.variables['time'][:]
u = ncf.variables['time'].units
......
/home/datawork-cersat-public/project/mpc-sentinel1/data/colocation/sentinel-1b/sar-model/ww3spectra/202002/netCDF_L2_daily/20200229/ww3-wv2-ocn-vv-20200229t024310-20200229t024313-020477-026ccb-138.nc /tmp/ww3-wv2-ocn-vv-20200229t024310-20200229t024313-020477-026ccb-138_test_validation_lib_wavetoolbox.png ww3
......@@ -26,6 +26,11 @@ case "$version" in
exe=/home1/datahome/agrouaze/git/wavetoolbox/runner_plot_spectra_v3.bash
list=/home1/datahome/agrouaze/git/wavetoolbox/example_listing_s1_v3.txt
;;
4)
echo 'starting version3 but on WW3 listing'
exe=/home1/datahome/agrouaze/git/wavetoolbox/runner_plot_spectra_v3.bash
list=/home1/datahome/agrouaze/git/wavetoolbox/example_listing_s1_v3_ww3.txt
;;
*)
echo "Usage: unit_test_2.bash {2|3}"
exit 1
......
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