Output to GIS formats

216 views
Skip to first unread message

Ekbal Hussain

unread,
Oct 16, 2020, 10:34:30 AM10/16/20
to MintPy

Hi,

Is there a way to output the products (velocity, coherence and time series maps) to a GIS format like GeoTiff please?

Thanks,
Ekbal

xiaoming

unread,
Oct 16, 2020, 11:45:03 AM10/16/20
to MintPy
Hi Ekbal,

Try ` save_qgis.py` , which will extract all the necessary information (vel, time-series, etc) into a shapefile.  Then you can play with them in QGIS/ArcGIS whatever you want.

Regards,
-xiaoming

Ozzy Tirmizi

unread,
Dec 13, 2020, 12:09:55 PM12/13/20
to MintPy
Hello,

I've tried using save_qgis.py but I'm getting the following error:

(mintpy) ozzy@otLinux:/media/ozzy/ozzy10tb/InSAR/MintPy/6thRun_downsampled$ save_qgis.py --help
Traceback (most recent call last):
  File "/home/ozzy/tools/MintPy/mintpy/save_qgis.py", line 15, in <module>
    from osgeo import ogr, gdal
ImportError: cannot import name 'ogr' from 'osgeo' (/home/ozzy/anaconda3/envs/mintpy/lib/python3.8/site-packages/osgeo/__init__.py)

I'd appreciate any advice in case someone else has run into this error before and knows how to resolve it.

Thanks!
Ozzy

Ozzy Tirmizi

unread,
Dec 16, 2020, 12:29:47 PM12/16/20
to MintPy
Good morning,

After much tinkering, I managed to resolve the issue by installing a compatible version of pygdal with the following command:

pip install pygdal=="`gdal-config --version`.*"

Wanted to leave this here in case anyone else has this issue in the future!

Ozzy
Reply all
Reply to author
Forward
0 new messages