blissville71 / STORM

STOchastic Rainstorm Model (STORM)
MIT License
11 stars 4 forks source link

Warning: Variable 'Ptot_pdf' originally saved as a prob.NormalDistribution cannot be instantiated as an object and will be read in as a uint32. #8

Open EngFatemeh opened 11 months ago

EngFatemeh commented 11 months ago

I want to run the STORM package in Matlab, but I receive this error:

STORM('Validation',1,30,2,'ptotC','stormsC','ptot2C','storms2C','ETC')

Warning: Variable 'Ptot_pdf' originally saved as a prob.NormalDistribution cannot be 
 instantiated as an object and will be read in as a uint32. 
 > In STORM (line 225) 
  Error using var (line 66)
  Invalid data type. First input argument must be single or double.

  Error in std (line 51)
  y = sqrt(var(varargin{:}));

  Error in STORM (line 227)
  sigma = std(Ptot_pdf);
EngFatemeh commented 11 months ago

Can you help me with this issue? Thanks. @blissville71

blissville71 commented 11 months ago

Can you help me with this issue? Thanks. @blissville71

Hi EngFatemeh, Thanks for your interest in STORM 1.0. You may be interested to use the much improved STORM 2.0, but it is only available in Python: https://gmd.copernicus.org/preprints/gmd-2023-98/#:~:text=Preprint%20(3116%20KB)-,STORM%20v.,or%20the%20storm's%20maximum%20intensity. The model is available here: https://github.com/feliperiosg/STORM2

blissville71 commented 11 months ago

I believe it has something to do with your installed toolboxes. The version I used to create the distributions provided as a sample was a much older version of the statistics toolbox. It may be that you need to recreate the pdf using the latest version of the toolbox, so it loads correctly? Sorry, but I haven't worked on this code in a while, so I don't know if all the toolbox dependencies still function. STORM 2.0 should be completely up to date, if you know Python...

EngFatemeh commented 11 months ago

I believe it has something to do with your installed toolboxes. The version I used to create the distributions provided as a sample was a much older version of the statistics toolbox. It may be that you need to recreate the pdf using the latest version of the toolbox, so it loads correctly? Sorry, but I haven't worked on this code in a while, so I don't know if all the toolbox dependencies still function. STORM 2.0 should be completely up to date, if you know Python...

Thank you for getting back to me so quickly. I will try the new version (STORM 2.0). But with this one (STORM 1.0 Matlab version), I already tried to run it with Matlab 2017. b (as you mentioned in the reference paper), but I received the same error.