-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi, when I used function "prinComp", I get an error:
NOTE: All possible PCs/EOFs retained: This may result in an unnecessarily large object
NOTE: Variable subsetting was ignored: Input grid is not a multigrid object
[2020-06-01 19:48:10] Performing PC analysis on 1 variable ...
Error in prcomp.default(aux) :
cannot rescale a constant/zero column to unit variance
In addition: Warning message:
In prinComp(pr.ens) :
Missing data found. Replacing NaN values with the mean value. If you are worried
about outliers consider replacing the missing data with the median value instead.
This can be done by setting the parameter imputation = 'median'
I see the function "prinComp" replaces missing data with the mean or the median. When the datasets only cover the land and the selected area containing the ocean, it will be a/some constant column(s).
How to solve this problem? Could you give me some suggestions?
Thanks in advance!