Skip to content

ENH: Cache netcdf4 datasets to avoid multiple downloads #654

@Gui-FernandesBR

Description

@Gui-FernandesBR

When setting na atmospheric model to "Forecast" or "Ensemble", rocketpy will usually download data from servers on the internet. Currently, by executing your code multiple times, the code would be downloading the same data again and again. We need to create a system to cache the datasets that we download from the internet and re-use it if the atmospheric model is reset.

If the dataset is in the netcdf4 format, we want to save it on a .nc format. But some sources (like windy) may provide .json files instead.

Additionally, I would like to see a "no_cache" option to force the code to download new data again if wanted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request, including adjustments in current codesEnvironmentEnviroment Class related features

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions