Advertisement
Guest User

Eoreader saocom error

a guest
Aug 8th, 2022
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.44 KB | None | 0 0
  1. Executing processing graph
  2. Absolute radiometric calibration has already been applied to the product
  3.  done.
  4.  
  5.  
  6. Error: [NodeId: Calibration] Absolute radiometric calibration has already been applied to the product
  7.  
  8. ---------------------------------------------------------------------------
  9. FileNotFoundError                         Traceback (most recent call last)
  10. File /usr/local/lib/python3.8/site-packages/eoreader/products/sar/sar_product.py:421, in SarProduct.get_band_paths(self, band_list, resolution, **kwargs)
  11.     420     band_id = self.bands[band].id
  12. --> 421     band_paths[band] = files.get_file_in_dir(
  13.     422         self._get_band_folder(),
  14.     423         f"*{self.condensed_name}_{band_id}.tif",
  15.     424         exact_name=True,
  16.     425     )
  17.     426 except FileNotFoundError:
  18.  
  19. File /usr/local/lib/python3.8/site-packages/sertit/files.py:1093, in get_file_in_dir(directory, pattern_str, extension, filename_only, get_list, exact_name)
  20.    1092 if len(file_list) == 0:
  21. -> 1093     raise FileNotFoundError(
  22.    1094         f"File with pattern {glob_pattern} not found in {directory}"
  23.    1095     )
  24.    1097 # Return list, file path or file name
  25.  
  26. FileNotFoundError: File with pattern *20200801T103425_SAOCOM_VV_HH_VH_HV_SM_L1A_VV.tif not found in /tmp/tmpzibzzm1_/tmp_20200801T103425_SAOCOM_VV_HH_VH_HV_SM_L1A
  27.  
  28. During handling of the above exception, another exception occurred:
  29.  
  30. RuntimeError                              Traceback (most recent call last)
  31. File /usr/local/lib/python3.8/site-packages/eoreader/products/sar/sar_product.py:807, in SarProduct._pre_process_sar(self, band, resolution, **kwargs)
  32.     806 try:
  33. --> 807     misc.run_cli(cmd_list)
  34.     808 except RuntimeError as ex:
  35.  
  36. File /usr/local/lib/python3.8/site-packages/sertit/misc.py:355, in run_cli(cmd, timeout, check_return_value, in_background, cwd)
  37.     354 if check_return_value and retval != 0:
  38. --> 355     raise RuntimeError(f"Exe {cmd[0]} has failed.")
  39.     357 return retval, output
  40.  
  41. RuntimeError: Exe gpt has failed.
  42.  
  43. The above exception was the direct cause of the following exception:
  44.  
  45. RuntimeError                              Traceback (most recent call last)
  46. Input In [19], in <cell line: 1>()
  47. ----> 1 saocom_vv = saocom_prod.load(bands=[VV])
  48.  
  49. File /usr/local/lib/python3.8/site-packages/eoreader/products/product.py:910, in Product.load(self, bands, resolution, size, **kwargs)
  50.     908 # Load bands (only once ! and convert the bands to be loaded to correct format)
  51.     909 unique_bands = list(set(to_band(bands)))
  52. --> 910 band_dict = self._load(unique_bands, resolution, size, **kwargs)
  53.     912 # Manage the case of arrays of different size -> collocate arrays if needed
  54.     913 band_dict = self._collocate_bands(band_dict)
  55.  
  56. File /usr/local/lib/python3.8/site-packages/eoreader/products/sar/sar_product.py:681, in SarProduct._load(self, bands, resolution, size, **kwargs)
  57.     678     self._check_dem_path(bands, **kwargs)
  58.     680 # Load bands
  59. --> 681 bands = self._load_bands(band_list, resolution=resolution, size=size, **kwargs)
  60.     683 # Add DEM
  61.     684 bands.update(
  62.     685     self._load_dem(dem_list, resolution=resolution, size=size, **kwargs)
  63.     686 )
  64.  
  65. File /usr/local/lib/python3.8/site-packages/eoreader/products/sar/sar_product.py:618, in SarProduct._load_bands(self, bands, resolution, size, **kwargs)
  66.     616 if resolution is None and size is not None:
  67.     617     resolution = self._resolution_from_size(size)
  68. --> 618 band_paths = self.get_band_paths(bands, resolution, **kwargs)
  69.     620 # Open bands and get array (resampled if needed)
  70.     621 band_arrays = {}
  71.  
  72. File /usr/local/lib/python3.8/site-packages/eoreader/products/sar/sar_product.py:443, in SarProduct.get_band_paths(self, band_list, resolution, **kwargs)
  73.     441                 band_paths[band] = self._despeckle_sar(speckle_band, **kwargs)
  74.     442             else:
  75. --> 443                 band_paths[band] = self._pre_process_sar(
  76.     444                     band, resolution, **kwargs
  77.     445                 )
  78.     447 return band_paths
  79.  
  80. File /usr/local/lib/python3.8/site-packages/eoreader/products/sar/sar_product.py:809, in SarProduct._pre_process_sar(self, band, resolution, **kwargs)
  81.     807         misc.run_cli(cmd_list)
  82.     808     except RuntimeError as ex:
  83. --> 809         raise RuntimeError("Something went wrong with SNAP!") from ex
  84.     811 # Convert DIMAP images to GeoTiff
  85.     812 LOGGER.debug("Converting DIMAP to GeoTiff")
  86.  
  87. RuntimeError: Something went wrong with SNAP!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement