Commit c57c2ea2 authored by Javier Vegas-Regidor's avatar Javier Vegas-Regidor
Browse files

Fix dim names in density

parent f9549907
......@@ -5,7 +5,7 @@ import numpy as np
import iris
from earthdiagnostics.modelingrealm import ModelingRealms
from earthdiagnostics.utils import TempFile
from earthdiagnostics.utils import TempFile, Utils
from earthdiagnostics.diagnostic import Diagnostic
......@@ -147,4 +147,12 @@ class Density(Diagnostic):
iris.save(sigma_cube, temp, zlib=True, fill_value=1e20)
del sigma_cube
del sigma_values
Utils.rename_variables(
temp,
{
"dim2": "j",
"dim3": "i",
},
must_exist=False,
)
self.sigma[sigma].set_local_file(temp)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment