MintPy via Conda on MacOS Monterey

114 views
Skip to first unread message

Sven Borgstrom

unread,
Sep 8, 2022, 7:54:25 AM9/8/22
to MintPy
Hi Yunjun,
I've just installed MintPy on MacOS Monterey via Conda.

I made a test to unpack TSX data but I got only one file (data.db) besides the SLC of course, instead of the usual three files (data.bak, data.dat and data.dir).

As far as I can understand I cannot do anything more with this for further processing, is it right?

How can I fix this?
Should I install Mintpy via MacPorts?

I use Conda on Linux Ubuntu and I'm really satisfied with it, so if I can fix for conda I would prefer.

Cheers,
Sven.

Zhang Yunjun

unread,
Sep 9, 2022, 1:14:15 AM9/9/22
to MintPy
Hi Sven,

It seems like you are referring to isce2, not mintpy? As for isce2, I had both one and three pickle files (data.*) generated before, but don't remember the details. I would say just go ahead until you reach an error. The conda version of isce2+ mintpy should work on macOS. There are some complications recently with isce2 on conda-forge, you may find more up-to-date information on isce2 github repo.

Regards,
Yunjun

Sven Borgstrom

unread,
Sep 10, 2022, 5:29:59 AM9/10/22
to MintPy
Hi Yunjun,

processing was ok until the "prep_isce" step excluded.
In the attached file the screenshot: the script doesn't accept the "data.db" file.
How can I fix this? 

Sorry for disturbance.
Sven.

prep_isce_StripmapStack.png

Zhang Yunjun

unread,
Sep 11, 2022, 4:17:24 PM9/11/22
to MintPy
Hi Sven,

Could you try the following change to see if it works?


from
stripmap_meta_files = [os.path.join(meta_dir, i) for i in ['data.dat', 'data']]

to 
stripmap_meta_files = [os.path.join(meta_dir, i) for i in ['data.dat', 'data', 'data.db']]

The path to mintpy installed through conda can be found as below:
python -c "import mintpy; print(mintpy.__path__)"

Cheers,
Yunjun

Bhuvan Varugu

unread,
Sep 11, 2022, 6:12:34 PM9/11/22
to min...@googlegroups.com
Hello Sven,
In case the above solution didn’t work, try renaming the ‘data.db’ as ‘data’ in referenceShelve folder. I got this issue with UAVSAR before and renaming worked for me.

-Bhuvan.


-- 
You received this message because you are subscribed to the Google Groups "MintPy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mintpy+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mintpy/6f00773c-57ad-437f-90cb-83076d3b6f75n%40googlegroups.com.

Sven Borgstrom

unread,
Sep 12, 2022, 2:32:39 PM9/12/22
to MintPy
Hi Yunjun and Bhuvan,
the workaround proposed by Yunjun works perfectly, the one proposed by Bhuvan doesn't work b.t.w thank you for suggestion Bhuvan
I have now a problem with mdx.py which doesn't work: I asked on the isce2 GitHub forum but no answer till now.
May I explain to you my problem (another post, of course) or should I wait the answer from the GitHub forum?
Cheers,
Sven.

Zhang Yunjun

unread,
Sep 13, 2022, 12:17:54 AM9/13/22
to MintPy
Thanks for the reporting and testing Sven. The fix is now committed (https://github.com/insarlab/MintPy/pull/846) and will be available to the conda-forge channel in the next release.

I am not sure abou the mdx.py in isce2, its functionality is limited anyway. There will be a new plotting program in isce3, which should be more powerful and flexible. For now, I would recommend using view.py from mintpy, it works on all the isce2 data files as far as I am aware of.

Cheers,
Yunjun
Reply all
Reply to author
Forward
0 new messages