You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created the conda environment using the yml file in the conda_env folder and cloned the model. I have tried to run the model, but it ended up with an error message as follows.
File "/data/ouce-drift/cenv1021/code/pcrglobwb/PCR-GLOBWB_model/model/deterministic_runner.py", line 167, in <module>
sys.exit(main())
~~~~^^
File "/data/ouce-drift/cenv1021/code/pcrglobwb/PCR-GLOBWB_model/model/deterministic_runner.py", line 138, in main
deterministic_runner = DeterministicRunner(configuration, currTimeStep, initial_state)
File "/data/ouce-drift/cenv1021/code/pcrglobwb/PCR-GLOBWB_model/model/deterministic_runner.py", line 51, in __init__
self.reporting = Reporting(configuration, self.model, modelTime)
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/ouce-drift/cenv1021/code/pcrglobwb/PCR-GLOBWB_model/model/reporting.py", line 61, in __init__
self.initiate_reporting()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "/data/ouce-drift/cenv1021/code/pcrglobwb/PCR-GLOBWB_model/model/reporting.py", line 90, in initiate_reporting
self.netcdfObj = PCR2netCDF(self.configuration, specificAttributeDictionary)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/ouce-drift/cenv1021/code/pcrglobwb/PCR-GLOBWB_model/model/ncConverter.py", line 50, in __init__
self.latitudes = np.unique(pcr.pcr2numpy(pcr.ycoordinate(cloneMap), vos.MV))[::-1]
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/cenv1021/.conda/envs/pcrglobwb_python3/lib/python3.13/site-packages/pcraster/numpy_operations.py", line 16, in pcr2numpy
return _pcraster.pcr2numpy(_pcraster.clone(), map, mv)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: resize only works on single-segment arrays
I google it and was told that the pcraster version is not compatible with the model version, but I checked the pcraster version (4.4.1). I run the model on linux server. Thank you for your help and suggestions in advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have created the conda environment using the yml file in the conda_env folder and cloned the model. I have tried to run the model, but it ended up with an error message as follows.
I google it and was told that the pcraster version is not compatible with the model version, but I checked the pcraster version (4.4.1). I run the model on linux server. Thank you for your help and suggestions in advance!
Beta Was this translation helpful? Give feedback.
All reactions