Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: Could not recognize format for ascending #112

Open
Suansuan0922 opened this issue Nov 15, 2023 · 5 comments
Open

ImportError: Could not recognize format for ascending #112

Suansuan0922 opened this issue Nov 15, 2023 · 5 comments

Comments

@Suansuan0922
Copy link

Suansuan0922 commented Nov 15, 2023

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
Copy link
Member

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

@Suansuan0922
Copy link
Author

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
Copy link
Member

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

@Suansuan0922
Copy link
Author

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants