Skip to content

Reading hazard files in .mat format is not supported #1085

@rabinatwayana

Description

@rabinatwayana

Describe the bug
When trying to run the eca_san_salvador application notebooks, reading hazard using "from_mat" gives an error.

To Reproduce
Steps to reproduce the behavior/error:

  1. Running any of the notebook

Code example:

from climada.hazard import Hazard

HAZ_FILE = "Salvador_hazard_FL_2015.mat"

haz_2015 = Hazard.from_mat(HAZ_FILE)

Expected behavior
climada.hazard.io - INFO - Reading Salvador_hazard_FL_2015.mat

Screenshots

Image

Climada Version: 6.0.1

System Information (please complete the following information):

  • Operating system and version: macOS 14.3.1
  • Python version: 3.11.13
    (to obtain this information execute > import sys >print(sys.version))

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions