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

Question on SeaiceDrift #28

Open
QianShisysu opened this issue Jan 28, 2024 · 4 comments
Open

Question on SeaiceDrift #28

QianShisysu opened this issue Jan 28, 2024 · 4 comments

Comments

@QianShisysu
Copy link

When I run the example of sea ice drift retrieval routine, it stops in "sid = SeaIceDrift(f1, f2)" and shows "RuntimeError: Line 147: doesn't have matching ." Has anyone also encountered this problem?

@akorosov
Copy link
Member

Can you provide filenames?

@QianShisysu
Copy link
Author

I run the example in the https://github.com/nansencenter/sea_ice_drift and the filename1='S1B_EW_GRDM_1SDH_20200123T120618.tif' and filename2='S1B_EW_GRDM_1SDH_20200125T114955.tif'

@akorosov
Copy link
Member

I have just tried and it works. Did you download the files? Can you copy the entire stack output here?

@QianShisysu
Copy link
Author

Yes, I have downloaded those SAR images. Here is the entire output: (base) sq@sq-virtual-machine:~/桌面/sea_ice_drift/examples$ python example.py
Traceback (most recent call last):
File "/home/sq/桌面/sea_ice_drift/examples/example.py", line 10, in
sid = SeaIceDrift(filename1, filename2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sq/anaconda3/lib/python3.11/site-packages/sea_ice_drift-0.7.1-py3.11.egg/sea_ice_drift/seaicedrift.py", line 38, in init
File "/home/sq/anaconda3/lib/python3.11/site-packages/sea_ice_drift-0.7.1-py3.11.egg/sea_ice_drift/lib.py", line 316, in get_n
File "/home/sq/anaconda3/lib/python3.11/site-packages/nansat/nansat.py", line 440, in resize
self.vrt = self.vrt.get_subsampled_vrt(dst_shape[1], dst_shape[0], resample_alg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sq/anaconda3/lib/python3.11/site-packages/nansat/vrt.py", line 1367, in get_subsampled_vrt
subsamp_vrt = self.get_super_vrt()
^^^^^^^^^^^^^^^^^^^^
File "/home/sq/anaconda3/lib/python3.11/site-packages/nansat/vrt.py", line 1349, in get_super_vrt
super_vrt.vrt = self.copy()
^^^^^^^^^^^
File "/home/sq/anaconda3/lib/python3.11/site-packages/nansat/vrt.py", line 881, in copy
new_vrt.write_xml(new_vrt_xml)
File "/home/sq/anaconda3/lib/python3.11/site-packages/nansat/vrt.py", line 1053, in write_xml
self.dataset = gdal.Open(self.filename)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sq/anaconda3/lib/python3.11/site-packages/osgeo/gdal.py", line 4716, in Open
return _gdal.Open(*args)
^^^^^^^^^^^^^^^^^
RuntimeError: Line 147: doesn't have matching .

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