Just a general query for clarity, since this appears to be a warning and not an error. Every time I run the script below I receive the following message: "ncap2: WARNING size(): Function has been called with more than one argument"
// Preparing/initializing some variables:
// Convert num_events to an integer or inherited dimensionality causes trouble for idx_cutoff: https://sourceforge.net/projects/nco/forums/forum/9831/topic/4972956?message=11224913
// Remove the _FillValue attribute or idx_cutoff in the if-statement causes error: https://sourceforge.net/projects/nco/forums/forum/9831/topic/4972956?message=11228844
prcp_norm=prcp; // Initialize the dimensions of prcp_norm here or cannot call it in the bottom for-loop below.
prcp_temp=prcp; // ditto
prcp_template=prcp; // ditto
// a) Sort prcp in ascending order:
// b) Revise prcp values to reflect the average number of precip events per month (other values set to zero):
// Use RAM variables (indicated by initializing with "*") for computational efficiency:
// c) Convert prcp values to normalized (relative) prcp: prcp_norm=prcp/sum(prcp):
// Require prcp_sum for normalizing prcp into prcp_norm:
// normalize the volume of rain
// create prcp temp file by multiplying the filtered and normalized rain volumes (kg/m2/3hr)/(kg/m2/mth) by the average monthly volume (kg/m2/mth)
// convert rain volume temp into rain rate template (kg/m2/sec)
// Check to ensure the sum of prcp ratios equals one:
if(check != 1) print(check);
As you can see, at no point do I use .size(), which means that I guess it is being called as a part of something else (perhaps .ttl()?). Either way, I would be interested to know why this warning is thrown and what the implications are.
Thanks, as always,
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.