Info

This question is closed. Reopen it to edit or answer.

How I can solve error in local_scaling function from Weaclim toolbox?

1 view (last 30 days)
When I use local_scaling function from weaclim toolbox, I get a warning message:
[GCM3,PGCM,SCALING]=local_scaling(mod,obs,seas3,1);
Warning: Size vector should be a row vector with integer elements.
> In copy at 20
In local_scaling at 34
Error using reshape
Size arguments must be real integers.
Error in copy (line 21)
X=reshape(X,NC,NR*N);
Error in local_scaling (line 34)
S=copy(seas,nyear);
The mod and obs are the modeled and obsrved precipitation values in 3D matrices in function of longitude, latitude and days (464x201x10957) from 1961.01.1 to 1990.12.31. The seas3 is a 360 long vector which contains the months (e.g 31,28,31,30,….31) during the 30 years.
Could someone write me what I made wrong and what I should to do?

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!