Skip to content

Fix bug in calibration when using only daily data #1803

@pat-schmitt

Description

@pat-schmitt

This is for the current dev branch.

When you try do mb_calibration_from_hugonnet_mb in a gdir which only contains daily data an error is raised because of gdir.get_climate_info() (https://github.com/OGGM/oggm/blob/dev/oggm/core/massbalance.py#L3313). This could be fixed by providing the filesuffix of the daily data, or using the filename of the provided mb_model_class.

Thanks @rodaguayo for reporting!

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