Visualizing ERA5 temperature data interactively with HyperCoast¶
This notebook demonstrates how to visualize ERA5 temperature data interactively with HyperCoast.
In [ ]:
Copied!
import hypercoast
import hypercoast
In [ ]:
Copied!
url = "https://github.com/opengeos/datasets/releases/download/hypercoast/ERA5_temperature_2023.nc"
filepath = "data/ERA5_temperature_2023.nc"
hypercoast.download_file(url, filepath)
url = "https://github.com/opengeos/datasets/releases/download/hypercoast/ERA5_temperature_2023.nc"
filepath = "data/ERA5_temperature_2023.nc"
hypercoast.download_file(url, filepath)
In [ ]:
Copied!
dataset = hypercoast.open_dataset(filepath)
dataset
dataset = hypercoast.open_dataset(filepath)
dataset
In [ ]:
Copied!
camera_position = [(-479.09, -82.89, -444.45), (89.5, 179.5, 16.5), (0.58, 0.14, -0.80)]
camera_position = [(-479.09, -82.89, -444.45), (89.5, 179.5, 16.5), (0.58, 0.14, -0.80)]
In [ ]:
Copied!
p = hypercoast.image_cube(
dataset,
variable="temperature_2m",
clim=(270, 310),
title="Temperature",
cmap="coolwarm",
widget="plane",
invert=False,
grid_spacing=(1, 1, 3),
)
p.camera_position = camera_position
p.show()
p = hypercoast.image_cube(
dataset,
variable="temperature_2m",
clim=(270, 310),
title="Temperature",
cmap="coolwarm",
widget="plane",
invert=False,
grid_spacing=(1, 1, 3),
)
p.camera_position = camera_position
p.show()
In [ ]:
Copied!
p = hypercoast.image_cube(
dataset,
variable="temperature_2m",
clim=(270, 310),
title="Temperature",
cmap="coolwarm",
widget="slice",
grid_spacing=(1, 1, 3),
)
p.camera_position = camera_position
p.show()
p = hypercoast.image_cube(
dataset,
variable="temperature_2m",
clim=(270, 310),
title="Temperature",
cmap="coolwarm",
widget="slice",
grid_spacing=(1, 1, 3),
)
p.camera_position = camera_position
p.show()
In [ ]:
Copied!
p = hypercoast.image_cube(
dataset,
variable="temperature_2m",
clim=(270, 310),
title="Temperature",
cmap="coolwarm",
widget="threshold",
)
p.camera_position = camera_position
p.show()
p = hypercoast.image_cube(
dataset,
variable="temperature_2m",
clim=(270, 310),
title="Temperature",
cmap="coolwarm",
widget="threshold",
)
p.camera_position = camera_position
p.show()