Skip to content

Error in using prinComp #33

@xiaoyujiaxyj

Description

@xiaoyujiaxyj

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions