pyrocko / kite

InSAR unwrapped surface displacement processing for earthquake modelling.
https://pyrocko.org/kite/
GNU General Public License v3.0
79 stars 34 forks source link

ImportError: Could not recognize format for ascending #112

Open Suansuan0922 opened 10 months ago

Suansuan0922 commented 10 months ago

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

hvasbath commented 10 months ago

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

Suansuan0922 commented 10 months ago

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

hvasbath commented 10 months ago

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

Suansuan0922 commented 10 months ago

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

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

hvasbath commented 10 months ago

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