Opened 3 years ago

Closed 3 years ago

#2549 closed defect (fixed)

wcst_import - if input file is broken, with "skip": true, wcst_import should continue

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

Description

instead of this error:

An error has occured in the execution of the program. Error Message: [Errno -51] NetCDF: Unknown file format: b'/eodata/CLMS/Global/Vegetation/Soil_Water_Index/BioPar_SWI1_V3_Global/c_gls_SWI1km_201501011200_CEURO_SCATSAR_V1.0.1/c_gls_SWI1km_201501011200_CEURO_SCATSAR_V1.0.1.nc'
Stack Trace: Traceback (most recent call last):
  File "/opt/rasdaman/share/rasdaman/wcst_import/wcst_import.py", line 201, in main
    reg.run_recipe(session)
  File "/opt/rasdaman/share/rasdaman/wcst_import/master/recipe/recipe_registry.py", line 272, in run_recipe
    self.__run_recipe(session, recipe)
  File "/opt/rasdaman/share/rasdaman/wcst_import/master/recipe/recipe_registry.py", line 218, in __run_recipe
    recipe.describe()
  File "/opt/rasdaman/share/rasdaman/wcst_import/recipes/general_coverage/recipe.py", line 151, in describe
    importer = self._get_importer()
  File "/opt/rasdaman/share/rasdaman/wcst_import/recipes/general_coverage/recipe.py", line 791, in _get_importer
    coverages = self._get_coverages()
  File "/opt/rasdaman/share/rasdaman/wcst_import/recipes/general_coverage/recipe.py", line 668, in _get_coverages
    coverages = self._get_netcdf_coverage(recipe_type)
  File "/opt/rasdaman/share/rasdaman/wcst_import/recipes/general_coverage/recipe.py", line 725, in _get_netcdf_coverage
    number_of_dimensions = len(netCDF4.Dataset(input_files[0], 'r').variables[first_band_variable_identifier].dimensions)
  File "src/netCDF4/_netCDF4.pyx", line 2307, in netCDF4._netCDF4.Dataset.__init__
  File "src/netCDF4/_netCDF4.pyx", line 1925, in netCDF4._netCDF4._ensure_nc_success
OSError: [Errno -51] NetCDF: Unknown file format: b'/eodata/CLMS/Global/Vegetation/Soil_Water_Index/BioPar_SWI1_V3_Global/c_gls_SWI1km_201501011200_CEURO_SCATSAR_V1.0.1/c_gls_SWI1km_201501011200_CEURO_SCATSAR_V1.0.1.nc'

Change History (2)

comment:1 by Bang Pham Huu, 3 years ago

test

comment:2 by Bang Pham Huu, 3 years ago

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