Skip to content

BUG: Problem with NetCFD4 file from CDS #718

@robbestephan

Description

@robbestephan

Describe the bug

I run into problems with my NetCFD4 file gathered from CDS.

To Reproduce
This is my code, the .nc file is not supported to add as an attachment here.
I gathered the data from here: https://cds.climate.copernicus.eu/datasets/reanalysis-era5-pressure-levels?tab=overview

from rocketpy import Environment
import os
dirname = os.path.dirname(__file__)

Env = Environment(
    date=(2024, 10, 21, 17),
    latitude=50.483618,
    longitude=6.181357,
    elevation=559,
)

filename = os.path.join(dirname, 'Elsenborn_pressure_levels_reanalysis_21oct24_Reanalysis.nc'),


Env.set_atmospheric_model(
    type='Reanalysis',
    file=filename,
    dictionary="ECMWF",
)

Env.plots.atmospheric_model()

Expected behavior

I expected to get plots of the atmosphere and eventually implement it into our simulations

Screenshots

Here is the data request I did from CDS:
image

Additional context

Add any other context about the problem here.

Metadata

Metadata

Labels

BugSomething isn't workingEnvironmentEnviroment Class related features

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions