Commit 9167a932 authored by GROUAZEL's avatar GROUAZEL

fix error for WW3 spectra in version2 run when no partitions available

parent 1d8d9575
......@@ -78,9 +78,10 @@ class SpectrumReaderWw3(AbstractSpectrumReader):
wsys['lon'] = self.lon
# wsys['lat'] = ncf.variables['lat'][:]
wsys['lat'] = self.lat
wsys['hs'] = self.tmp_wsys['hs']
wsys['wl'] = self.tmp_wsys['wl']
wsys['dirad'] = self.tmp_wsys['dirad']
if self.tmp_wsys != {}:
wsys['hs'] = self.tmp_wsys['hs']
wsys['wl'] = self.tmp_wsys['wl']
wsys['dirad'] = self.tmp_wsys['dirad']
wsys['hsgrid'] = self.hsgrid
return wsys
......
......@@ -31,6 +31,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_ww3.txt
;;
5)
echo 'starting version2 but on WW3 listing'
exe=/home1/datahome/agrouaze/git/wavetoolbox/runner_plot_spectra_v2.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