Skip to content

bug in static/DatasetExtractor.py #151

@ggalli00

Description

@ggalli00

/g100_work/OGS23_PRACE_IT/COPERNICUS/pyenv_3.13/lib/python3.13/site-packages/numpy/ma/core.py:509: RuntimeWarning: invalid value encountered in cast
fill_value = np.asarray(fill_value, dtype=ndtype)
Traceback (most recent call last):
File "/g100_work/OGS_test2528/ggalli00/GOTM-FABM-BFM/SCRIPTS/clim_for_medbgcins_archive.py", line 126, in
CLIM_REF_static,STD_Ref_static,_,Nprofs = climatology.get_climatology_open(var,SUBlist, LayerList_plot, TheMask, useLogistic=False, basin_expand=False,QC=False, climatology_interval=TI)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g100_work/OGS_test2528/ggalli00/git/bit.sea/src/bitsea/static/climatology.py", line 359, in get_climatology_open
ProfilelistAll = Dataset.Selector(var, T_int, sub)
File "/g100_work/OGS_test2528/ggalli00/git/bit.sea/src/bitsea/static/Nutrients_reader.py", line 92, in Selector
return self.DataExtractor.selector(var, T_int, region)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/g100_work/OGS_test2528/ggalli00/git/bit.sea/src/bitsea/static/DatasetExtractor.py", line 125, in selector
return self.profileGenerator(Time, Lon, Lat, values, depth, dataset)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/g100_work/OGS_test2528/ggalli00/git/bit.sea/src/bitsea/static/DatasetExtractor.py", line 48, in profileGenerator
Values=values[inthisprofile]
~~~~~~^^^^^^^^^^^^^^^
File "/g100_work/OGS23_PRACE_IT/COPERNICUS/pyenv_3.13/lib/python3.13/site-packages/numpy/ma/core.py", line 3305, in getitem
dout = self.data[indx]
~~~~~~~~~^^^^^^
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions