kite icon indicating copy to clipboard operation
kite copied to clipboard

ImportError: Could not recognize format for ascending

Open Suansuan0922 opened this issue 2 years ago • 5 comments

Based on the example given, run spool --load ascending, but an error occurs

Traceback (most recent call last): File "/home/u/anaconda3/bin/spool", line 8, in sys.exit(main()) File "/home/u/anaconda3/lib/python3.10/site-packages/kite/spool/main.py", line 111, in main spool(import_file=ns.load) File "/home/u/anaconda3/lib/python3.10/site-packages/kite/spool/spool.py", line 393, in spool spool_app = Spool(*args, **kwargs) File "/home/u/anaconda3/lib/python3.10/site-packages/kite/spool/spool.py", line 46, in init self.importScene(import_file) File "/home/u/anaconda3/lib/python3.10/site-packages/kite/spool/spool.py", line 61, in importScene self.spool_win.model.importFile(filename) File "/home/u/anaconda3/lib/python3.10/site-packages/kite/spool/scene_model.py", line 171, in importFile self.setScene(Scene.import_data(filename)) File "/home/u/anaconda3/lib/python3.10/site-packages/kite/scene.py", line 459, in dynclassmethod return func(Scene(), *args, **kwargs) File "/home/u/anaconda3/lib/python3.10/site-packages/kite/scene.py", line 972, in _import_data raise ImportError("Could not recognize format for %s" % path) ImportError: Could not recognize format for ascending

Suansuan0922 avatar Nov 15 '23 09:11 Suansuan0922

That means your data does not conform to the datatype format required. What data do you try to import?

hvasbath avatar Nov 15 '23 10:11 hvasbath

That means your data does not conform to the datatype format required. What data do you try to import?

I run ariaExtract.py -w ascending -f S1-GUNW-A-R-064-tops-20190710_20180703-015013-36885N_35006N-PP-9955-v2_0_2.nc -d download -l unwrappedPhase,incidenceAngle,azimuthAngle and get the ascending folder.

1700047499(1)

These are files of type.hrd,.vrt,.xml, .json, .dem

Suansuan0922 avatar Nov 15 '23 11:11 Suansuan0922

For the ARIA scene_io class you need to have osgeo ie. gdal installed. Please do so and try again!

hvasbath avatar Nov 15 '23 11:11 hvasbath

I have already installed gdal, but still have this problem.

Requirement already satisfied: gdal in ./anaconda3/lib/python3.10/site-packages (3.6.2)

Suansuan0922 avatar Nov 15 '23 12:11 Suansuan0922

Thank you for your report! I will try to get rid of the gdal dependency in a patch and will keep you posted!

hvasbath avatar Nov 21 '23 12:11 hvasbath