Skip to content

Commit

Permalink
MNT: Remove unneeded xarray workarounds in GiniFile
Browse files Browse the repository at this point in the history
  • Loading branch information
dopplershift committed Sep 30, 2020
1 parent 59de645 commit 1835eca
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/metpy/io/gini.py
Expand Up @@ -14,10 +14,7 @@
import numpy as np
from xarray import Variable
from xarray.backends.common import AbstractDataStore
try:
from xarray.core.utils import FrozenDict
except ImportError:
from xarray.core.utils import FrozenOrderedDict as FrozenDict
from xarray.core.utils import FrozenDict

from ._tools import Bits, IOBuffer, NamedStruct, open_as_needed, zlib_decompress_all_frames
from ..package_tools import Exporter
Expand Down Expand Up @@ -405,11 +402,3 @@ def get_attrs(self):
"""
return FrozenDict(satellite=self.prod_desc.creating_entity,
sector=self.prod_desc.sector_id)

def get_dimensions(self):
"""Get the file's dimensions.
This is used by `xarray.open_dataset`.
"""
return FrozenDict(x=self.prod_desc.nx, y=self.prod_desc.ny)

0 comments on commit 1835eca

Please sign in to comment.