Skip to content

check how to fill Hazard base class attributes #1142

Closed

Description

@ValentinGebhart

for instance,
frequency is 1/n_members
fraction None if not given in data
name verbose ensemble, lead time, model or source metadata
event_id
haz_type
units
centroids
date is date of init time
orig maybe control run True
frequency_unit 1/ensemble

Activity

  1. peanutfun commented on Dec 10, 2025

    @peanutfun
    Member

    Is this related to #1154? The existing xarray reader already does (most of?) that.

  2. ValentinGebhart commented on Dec 10, 2025

    @ValentinGebhart
    CollaboratorAuthor

    Yes, this is essentially about the from_xarray() method, or other from_datastructure methods if we wanted to implement them in the future.

  3. peanutfun commented on Jun 10, 2026

    @peanutfun
    Member

    Seems like the from_xarray_raster does everything requested here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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