Commit 1d025103 authored by BorjaEst's avatar BorjaEst
Browse files

Bugfix standaization of coordinates

parent cc82b554
......@@ -23,10 +23,10 @@ def standardize_tco3(dataset, variable, coordinates):
return array.to_dataset()
def rename_coords_vmro3(array, time, plev, lat, lon):
"""Renames a vmro3 array variable and coordinates"""
logger.debug("Renaming '{0}' coordinates".format('vmro3_zm'))
return array.rename({'time': time, 'plev': plev, 'lat': lat, 'lon': lon})
def rename_coords_tco3(array, time, lat, lon):
"""Renames a tco3 array variable and coordinates"""
logger.debug("Renaming '{0}' coordinates".format('tco3_zm'))
return array.rename({time: 'time', lat: 'lat', lon: 'lon'})
@utils.return_on_failure("Error when loading '{0}'".format('vmro3_zm'),
......@@ -41,10 +41,10 @@ def standardize_vmro3(dataset, variable, coordinates):
return array.to_dataset()
def rename_coords_tco3(array, time, lat, lon):
"""Renames a tco3 array variable and coordinates"""
logger.debug("Renaming '{0}' coordinates".format('tco3_zm'))
return array.rename({'time': time, 'lat': lat, 'lon': lon})
def rename_coords_vmro3(array, time, plev, lat, lon):
"""Renames a vmro3 array variable and coordinates"""
logger.debug("Renaming '{0}' coordinates".format('vmro3_zm'))
return array.rename({time: 'time', plev: 'plev', lat: 'lat', lon: 'lon'})
def squeeze(array):
......
Supports Markdown
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