Skip to content

WB2 Latitude Flipping #64

@stefanwayon

Description

@stefanwayon

Hello, I’ve been using the data_process/convert_makani_output_to_wb2.py script to convert roll-outs output from inference to Zarr, and I am unsure if the output latitudes are correct. I can see there is some flipping involved, with a comment about colatitudes. However, if I plot the data in the Zarr file, it appears flipped, which to me suggests the original latitudes (coming from ARCO ERA5) didn’t need flipping.

Am I missing something in the WB2 conventions?

Below a script to visualise a field in the output Zarr.

import cartopy.crs as ccrs
import cartopy
import matplotlib.pyplot as plt

def _plot(da):
    fig = plt.figure(figsize=(10, 10))
    ax = plt.axes(projection=ccrs.Robinson())
    ax.coastlines(resolution="10m")
    plot = da.plot(
        cmap=plt.cm.coolwarm, transform=ccrs.PlateCarree(), cbar_kwargs={"shrink": 0.6}
    )

ds_global = xr.open_zarr("/raid/stefan/fcn3/runs/fcn3_ensemble/eval_rollouts/scores/rollouts_global.zarr")
_plot(ds_global.isel(time=0, number=0, prediction_timedelta=19)["2m_temperature"])
Image

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