Пример #1
0
Файл: base.py Проект: NCPP/ocgis
    def create_dimension_map(self, group_metadata, **kwargs):
        """
        Create a dimension map for a group from its metadata.

        :param dict group_metadata: Group metadata to use when creating the dimension map.
        :rtype: :class:`~ocgis.DimensionMap`
        """
        ret = DimensionMap()
        ret.set_driver(self.key)
        return ret
Пример #2
0
    def create_dimension_map(self, group_metadata, **kwargs):
        """
        Create a dimension map for a group from its metadata.

        :param dict group_metadata: Group metadata to use when creating the dimension map.
        :rtype: :class:`~ocgis.DimensionMap`
        """
        ret = DimensionMap()
        ret.set_driver(self.key)
        return ret
Пример #3
0
 def test_set_driver(self):
     dmap = DimensionMap()
     dmap.set_driver(DriverNetcdfUGRID)
     self.assertEqual(dmap.get_driver(), DriverNetcdfUGRID.key)
Пример #4
0
 def test_set_driver(self):
     dmap = DimensionMap()
     dmap.set_driver(DriverNetcdfUGRID)
     self.assertEqual(dmap.get_driver(), DriverNetcdfUGRID.key)