Skip to content

NaN in metrics #15

@tomsail

Description

@tomsail

@JackReevesEyre-NOAA reported the problem of having NaNs for general metrics (I'd guess cr principally) when using higher quantile values in get_stats().

There is a confusion on the default quantile used (currently 0).

Although there is a Usage example at the end of the README:

from seastats import get_stats, GENERAL_METRICS_ALL, STORM_METRICS_ALL
general = get_stats(sim, obs, metrics = GENERAL_METRICS)
storm = get_stats(sim, obs, quantile = 0.99, metrics = STORM_METRICS) # we use a different quantile for PoT selection
pd.DataFrame(dict(general, **storm), index=['abed'])

it'd be less confusing:

  1. to add a DISCLAIMER warning users at the beginning,
  2. or even spit the current get_stats() in 2 separate API calls
    • one for storms
    • one for general metrics

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