Opened 5 years ago

Closed 5 years ago

#2165 closed defect (fixed)

WCST_Import - Error in gdal general recipe with non datetime irergular axi

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 10.0
Component: wcst_import Version: 9.8
Keywords: Cc: Dimitar Misev, vmerticairu
Complexity: Medium

Description

Using gdal general recipe with 3 axes (Lat, Long and Index1D as irregular axis, it will have this problem in wcst_import)

An error has occured in the execution of the program. Error Message: Invalid literal for Decimal: 'None'
Stack Trace: Traceback (most recent call last):
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/wcst_import.py", line 190, in main
    reg.run_recipe(session)
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/master/recipe/recipe_registry.py", line 217, in run_recipe
    self.__run_recipe(session, recipe)
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/master/recipe/recipe_registry.py", line 166, in __run_recipe
    recipe.describe()
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/recipes/general_coverage/recipe.py", line 169, in describe
    importer = self._get_importer()
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/recipes/general_coverage/recipe.py", line 711, in _get_importer
    self.importer = Importer(self.resumer, self._get_coverage(), self.options['wms_import'], self.options['scale_levels'],
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/recipes/general_coverage/recipe.py", line 621, in _get_coverage
    coverage = self._get_gdal_coverage(recipe_type)
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/recipes/general_coverage/recipe.py", line 649, in _get_gdal_coverage
    self.options['import_order']).to_coverage()
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/recipes/general_coverage/abstract_to_coverage_converter.py", line 498, in to_coverage
    coverage_slices = self._create_coverage_slices(crs_axes)
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/recipes/general_coverage/abstract_to_coverage_converter.py", line 450, in _create_coverage_slices
    FileUtil.ignore_coverage_slice_from_file_if_possible(file.get_filepath(), ex)
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/recipes/general_coverage/abstract_to_coverage_converter.py", line 447, in _create_coverage_slices
    coverage_slice = self._create_coverage_slice(file, crs_axes, evaluator_slice, axis_resolutions)
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/recipes/general_coverage/abstract_to_coverage_converter.py", line 481, in _create_coverage_slice
    axis_subset = self._axis_subset(crs_axes[i], evaluator_slice, resolution)
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/recipes/general_coverage/gdal_to_coverage_converter.py", line 170, in _axis_subset
    number_of_grid_points = decimal.Decimal(str(user_axis.interval.high)) \
  File "/usr/lib64/python2.7/decimal.py", line 548, in __new__
    "Invalid literal for Decimal: %r" % value)
  File "/usr/lib64/python2.7/decimal.py", line 3872, in _raise_error
    raise error(explanation)
InvalidOperation: Invalid literal for Decimal: 'None'

Change History (1)

comment:1 by Bang Pham Huu, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.