isce2 on conda-forge

Added by Piyush Agram over 1 year ago

Hi everyone,
The latest github release of isce should be available via conda-forge for linux x86-84 platforms.

For more details, see https://anaconda.org/conda-forge/isce2
All the dependencies for the software are installed using conda-forge.

The automated build / deploy recipe for isce2 can be found here: https://github.com/conda-forge/isce2-feedstock

The package automatically setups two environment variables.

1. ISCE_HOME : you might want to add ISCE_HOME/bin and ISCE_HOME/applications to your path
2. ISCE_STACK: this points to the contrib/stack folder

If you are interested in working on including support for os x / want to update the automated recipe - please reach out via github issues.

Piyush


Replies (14)

RE: isce2 on conda-forge - Added by Matt Cook over 1 year ago

Hi Piyush,

Thanks for creating the automated build for isce2!

I've just got into InSAR processing and want to start using isce. I used your automated build to install isce onto my computer but I get an error message on the 'stanford license'. Have you come across this before?

This is what happened when I first tried to run isce. I don't have any xml data files yet to run on the script but just wanted to see if it worked. Before I cam run the scrip do I need to get a suitable license? Or once I run an xml data file with the script should the error go away? Sorry if I'm not making much sense I'm new to Linux and just starting out.

mcoo951@sc-cer00279:~$ $ISCE_HOME/applications/insarApp.py
This is the Open Source version of ISCE.
Some of the workflows depend on a separate licensed package.
To obtain the licensed package, please make a request for ISCE
through the website: https://download.jpl.nasa.gov/ops/request/index.cfm.
Alternatively, if you are a member, or can become a member of WinSAR
you may be able to obtain access to a version of the licensed sofware at
https://winsar.unavco.org/software/isce
Traceback (most recent call last):
File "/data/anaconda3/lib/python3.7/site-packages/isce/applications/insarApp.py", line 1200, in <module>
if not isce.stanford_license:
AttributeError: module 'isce' has no attribute 'stanford_license'

Thanks!

RE: isce2 on conda-forge - Added by Piyush Agram over 1 year ago

Check your environment. You might be importing isce (different version) from somewhere else in your setup.

python3 -c "import isce; print(isce.__file__)" 

RE: isce2 on conda-forge - Added by Matt Cook over 1 year ago

Piyush Agram wrote:

Check your environment. You might be importing isce (different version) from somewhere else in your setup.

[...]

Hi Piyush,

thanks for the fast reply.

I did as you suggested:

mcoo951@sc-cer00279:~$ python3 -c "import isce; print(isce.__file__)"

This is the Open Source version of ISCE.
Some of the workflows depend on a separate licensed package.
To obtain the licensed package, please make a request for ISCE
through the website: https://download.jpl.nasa.gov/ops/request/index.cfm.
Alternatively, if you are a member, or can become a member of WinSAR
you may be able to obtain access to a version of the licensed sofware at
https://winsar.unavco.org/software/isce
/opt/anaconda/lib/python3.7/site-packages/isce/__init__.py

Seems to be getting ISCE through conda. Is this right?

Thanks

RE: isce2 on conda-forge - Added by Piyush Agram over 1 year ago

Oh ... you are trying to use insarApp.py which has been deprecated. You should use stripmapApp.py
Else, you can replace the check for stanford_license in insarApp.py with try/except. This application is not being actively maintained.

RE: isce2 on conda-forge - Added by Matt Cook over 1 year ago

Ahh yes thats done the trick!

Thank you for your help Piyush.

RE: isce2 on conda-forge - Added by Felix Keßler over 1 year ago

Hey Piyush,
I managed to install etc. and use topsApp.py for production of my Interferogram.
Is there a way to manipulate the Polarizations that are taken into account, so basically, can I produce VV-VV and VH-VH-Interferograms somehow?

Edit: I found some code where they use <property name="referencepolarization">vv</property>, but this seems to not work with the conda-forge installation.

Edit2: The correct property name is polarization for Sentinel1, therefore my question is answered already!

WIth best regards,
Felix

RE: isce2 on conda-forge - Added by Piyush Agram over 1 year ago

Glad you solved it ... this was answered in an earlier post:
http://earthdef.caltech.edu/boards/4/topics/1242?r=1246#message-1246

RE: isce2 on conda-forge - Added by Panagiotis Elias over 1 year ago

Hi Piyush,

we have granted license for ISCE (National Observatory of Athens). How I am going to apply the license it in the conda installation?

thank you

Panagiotis Elias

RE: isce2 on conda-forge - Added by 成龙 代 about 1 year ago

Hi I have the same problem as you
“This is the Open Source version of ISCE.
Some of the workflows depend on a separate licensed package.
To obtain the licensed package, please make a request for ISCE
through the website: https://download.jpl.nasa.gov/ops/request/index.cfm.
Alternatively, if you are a member, or can become a member of WinSAR
you may be able to obtain access to a version of the licensed sofware at
https://winsar.unavco.org/software/isce
/home/dcl/anaconda3/lib/python3.7/site-packages/isce/__init__.py”

How did you solve it in detail ?
Thanks !

RE: isce2 on conda-forge - Added by Chengyan Fan 11 months ago

Hi Piyush,

Thanks for your work. It becomes very easy to install the isce, and saving a lot of time at the same time.

But I want to know if the isce installed in this way support the cuda?

Thanks!

RE: isce2 on conda-forge - Added by Yahui Chong 3 months ago

Hi Piyush,

I want to install isce-2.2.0 on ubuntu 20.04, but when I running the scons, I meet an error message as follws:

Error: Actual argument contains too few elements for dummy argument ‘sinml’ (361/65341) at (1)
build/isce/components/contrib/demUtils/correct_geoid_i2_srtm/src/correct_geoid_i2_srtm.f:239:17:

Warning: Possible change of value in conversion from REAL to REAL at (1) [-Wconversion]
scons: *** [build/isce/components/contrib/demUtils/correct_geoid_i2_srtm/src/correct_geoid_i2_srtm.o] Error 1
scons: done reading SConscript files.
scons: Building targets ...
Install file: "__init__.py" as "install/isce/__init__.py"
scons: done building targets.

I don't know how to solve this problem, can you give me some suggestions? Thank you very much!

RE: isce2 on conda-forge - Added by Eric Fielding 3 months ago

Hi Yahui,

Do you specifically need ISCE v2.2.0? That version is more than two years old and not maintained. It might not be compatible with the latest versions of compilers.

I would recommend switching to the maintained version from GitHub, now at v2.4.0. If you really need v2.2.0, you might be able to back-port the maintained code from v2.4.

RE: isce2 on conda-forge - Added by Yahui Chong 3 months ago

Hi Eric,

Thank you very much for your reply! I installed isce-2.2.0 because I have obtained a license for this version, I worry that if I install the isce-2.4, I won't be able to use some workflows(such as the range splitspectrum).

RE: isce2 on conda-forge - Added by Eric Fielding 3 months ago

Hi Yahui,

The range split-spectrum method for ionospheric corrections is not in v2.2, only in v2.3 and v2.4. The workflows that were only in v2.2 have been replaced with new workflows that are more accurate.

(1-14/14)