ISCE conda mamba 直装

首先需要安装ubuntu 版本不宜过高,ubuntu18或20,python3.6-3.8

安装anaconda

参考链接:https://zhuanlan.zhihu.com/p/269183148

直装ISCE

https://blog.csdn.net/weixin_42464154/article/details/128364234

https://anaconda.org/conda-forge/isce2

建议安装miniconda

https://docs.conda.io/en/latest/miniconda.html

进入这个网站,找到python3.8对应的miniconda版本

cd Downloads
bash Miniconda3-py38_23.1.0-1-Linux-x86_64.sh
gedit ~/.bashrc
export PATH="/home/pc/miniconda3/bin:$PATH"
source ~/.bashrc

安装完毕,开始检查conda是否安装成功

conda --version
conda list

创建python环境,建议直接安装python最新版本既可

conda create -n isce_ev python=3.8 -y

激活环境和退出环境

# To activate this environment, use:
source activate isce_ev(高版本的是conda activate)
# To deactivate an active environment, use:
source deactivate

使用conda安装isce2,直接在终端中执行:

conda install isce2 -c conda-forge -y

建议:若上述过程过慢可以考虑使用mamba,首先安装mamba

 conda install mamba -n base -c conda-forge

将conda替换为mamba再执行:

mamba install isce2 -c conda-forge -y

缺少contib文件夹,要从源码包里面进行复制到下载路径

sudo apt install git
git clone https://github.com/isce-framework/isce2

将ISCE放到环境变量中
可以通过python导入isce包查看ISCE2安装位置:

import isce
print(isce.__file__)

设置环境(根据isce2的安装位置,在环境中进行配置)

#isce
export ISCE_HOME=/home/pc/miniconda3/envs/isce_ev/lib/python3.8/site-packages/isce
export PATH=$PATH:$ISCE_HOME/bin:$ISCE_HOME/applications:$ISCE_HOME/components/contrib/stack/topsStack:$ISCE_HOME/components/contrib/timeseries/prepStackToStaMPS/bin
export PYTHONPATH="/home/pc/isce2/contrib/stack:$PYTHONPATH"
export PYTHONPATH="/home/pc/isce2/contrib/timeseries:$PYTHONPATH"
export ISCE_STACK=/home/pc/isce2
export prepStackToStaMPS=/home/pc/isce2/contrib/timeseries/prepStackToStaMPS
export PATH="/home/pc/isce2/contrib/timeseries/prepStackToStaMPS/bin:$PATH"
export PATH=$prepStackToStaMPS/bin:/home/pc/isce2/contrib/stack/topsStack:$PATH

测试安装版本

#显示isce版本
python3
import isce
isce.version.release_version

测试安装是否成功

topsApp.py -h

显示以下信息

==================== ===============
demstitcher          DataManager    
reference            GRDSensor      
rununwrapper         N/A            
rununwrapper2stage   N/A            
secondary            GRDSensor      
topsproc             N/A 
stackSentinel.py -H

显示以下信息

##############################################

#Examples:

stackSentinel.py can be run for different workflows including: a stack of interferogram, a stack of correlation files, a stack of offsets or a coregistered stack of SLC. Workflow can be chosen with -W option.

%%%%%%%%%%%%%%%
Example 1:
# interferogram workflow with 2 nearest neighbor connections (default coregistration is NESD):

stackSentinel.py -s ../SLC/ -d ../../MexicoCity/demLat_N18_N20_Lon_W100_W097.dem.wgs84 -b '19 20 -99.5 -98.5' -a ../../AuxDir/ -o ../../Orbits -c 2

%%%%%%%%%%%%%%%
Example 2:
# interferogram workflow with all possible interferograms and coregistration with only geometry:

stackSentinel.py -s ../SLC/ -d ../../MexicoCity/demLat_N18_N20_Lon_W100_W097.dem.wgs84 -b '19 20 -99.5 -98.5' -a ../../AuxDir/ -o ../../Orbits -C geometry -c all

%%%%%%%%%%%%%%%
Example 3:
# correlation workflow with all possible correlation pairs and coregistration with geometry:

stackSentinel.py -s ../SLC/ -d ../../MexicoCity/demLat_N18_N20_Lon_W100_W097.dem.wgs84 -b '19 20 -99.5 -98.5' -a ../../AuxDir/ -o ../../Orbits -C geometry -c all -W correlation

%%%%%%%%%%%%%%%
Example 4:
# slc workflow that produces a coregistered stack of SLCs

stackSentinel.py -s ../SLC/ -d ../../MexicoCity/demLat_N18_N20_Lon_W100_W097.dem.wgs84 -b '19 20 -99.5 -98.5' -a ../../AuxDir/ -o ../../Orbits -C NESD  -W slc

##############################################

#Note:

For all workflows, coregistration can be done using only geometry or with geometry plus refined azimuth offsets through NESD approach.
Existing workflows: slc, interferogram, correlation, offset

后续进行时序处理时可能会缺少某些依赖,直接用mamba进行安装即可

  • 7
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值