Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
isce2_insar
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Narayanarao Bhogapurapu
isce2_insar
Commits
331a61d1
Commit
331a61d1
authored
1 year ago
by
Narayanarao Bhogapurapu
Browse files
Options
Downloads
Patches
Plain Diff
first test
parent
5f25026b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
algorithm_config.yaml
+19
-0
19 additions, 0 deletions
algorithm_config.yaml
build.sh
+87
-0
87 additions, 0 deletions
build.sh
isce2_insar.sh
+20
-0
20 additions, 0 deletions
isce2_insar.sh
src/isce2_insar/insar_processer.py
+40
-0
40 additions, 0 deletions
src/isce2_insar/insar_processer.py
with
166 additions
and
0 deletions
algorithm_config.yaml
0 → 100644
+
19
−
0
View file @
331a61d1
description
:
Estimates canopy height from InSAR coherence and LiDAR data
algo_name
:
ich
version
:
0.1.1
environment
:
ubuntu
repository_url
:
https://repo.maap-project.org/bnarayanarao/isce2_insar.git
docker_url
:
mas.maap-project.org/root/maap-workspaces/base_images/vanilla:v3.1.5
queue
:
maap-dps-worker-16gb
build_command
:
isce2_insar/build.sh
run_command
:
isce2_insar/isce2_insar.sh
disk_space
:
20GB
inputs
:
-
name
:
slc_folder
download
:
False
-
name
:
dem_file
download
:
False
-
name
:
lower_limit
download
:
False
This diff is collapsed.
Click to expand it.
build.sh
0 → 100644
+
87
−
0
View file @
331a61d1
#!/usr/bin/env bash
set
-xeuo
pipefail
basedir
=
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
# Make sure conda is updated to a version that supports the --no-capture-output option
# conda install -y -n base -c conda-forge "conda>=4.13.0"
start
=
`
date
+%s
`
apt-get update
apt-get
install
-y
sudo
sudo
apt-get
install
-y
nano
sudo
apt-get update
sudo
apt-get
install
-y
scons libfftw3-dev libxm4 libmotif-dev python3-dev python3-pip
sudo
apt-get
install
-y
python3-scipy python-opencv python3-numpy python3-h5py cython3 gdal-bin gfortran libgdal-dev python3-gdal libhdf5-dev
sudo
pip3
install
cython opencv-python opencv-contrib-python shapely requests
-y
cd
home
mkdir
pkgs
cd
pkgs
# git clone https://github.com/isce-framework/isce2 -b v2.5.3
git clone https://repo.maap-project.org/bnarayanarao/isce2
# mkdir isce2
cd
~
cd
..
cd
..
# cp -R projects/my-private-bucket/iscefiles/isce2/ home/pkgs/
cd
home/pkgs/
ln
-s
isce2 isce
cd
..
cd
..
cd
home
mkdir
.isce
cd
~
cd
..
# cp projects/my-private-bucket/iscefiles/ISCE_config.sh home/pkgs/isce2/
# cp projects/my-private-bucket/iscefiles/read_calibration_slc.py home/pkgs/isce2/contrib/stack/topsStack/
# cp projects/my-private-bucket/iscefiles/SConfigISCE home/.isce/
cp
home/pkgs/isce2/infiles_dps/ISCE_config.sh home/pkgs/isce2/
cp
home/pkgs/isce2/infiles_dps/read_calibration_slc.py home/pkgs/isce2/contrib/stack/topsStack/
cp
home/pkgs/isce2/infiles_dps/SConfigISCE home/.isce/
cd
~
cd
..
cd
..
cd
..
sudo
sh
-c
'echo "export SCONS_CONFIG_DIR=/home/.isce" >> ~/.bashrc'
sudo
sh
-c
'echo "export PATH=\"/home/pkgs/isce/contrib/stack/topsStack:\$PATH\" " >> ~/.bashrc'
sudo
sh
-c
'echo "source /home/pkgs/isce/ISCE_config.sh" >> ~/.bashrc'
alias
brc
=
'source ~/.bashrc'
chmod
a+x ~/.bashrc
PS1
=
'$ '
source
~/.bashrc
cd
~
cd
..
cd
home/pkgs/isce2
scons
install
chmod
a+x ~/.bashrc
PS1
=
'$ '
source
~/.bashrc
# chmod a+x /root/.bashrc
# PS1='$ '
# source /root/.bashrc
# mkdir /home/pkgs/isce/isce/helper
conda deactivate
conda deactivate
conda deactivate
isceApp.py
-h
end
=
`
date
+%s
`
runtime
=
$((
end-start
))
echo
$runtime
'sec'
This diff is collapsed.
Click to expand it.
isce2_insar.sh
0 → 100644
+
20
−
0
View file @
331a61d1
#!/usr/bin/env bash
set
-xuo
pipefail
basedir
=
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
insar_py
=
"python
${
basedir
}
/src/isce2_insar/insar_processer.py"
slc_folder
=
"
$(
ls
input/
*
_corr.tif
)
"
dem_file
=
"
$(
ls
input/
*
_lidar.tif
)
"
options
=()
[[
"
${
1
:-
-
}
"
!=
"-"
]]
&&
options
=(
"
${
options
[@]
}
"
--lower_limit
"
${
1
:-
-
}
"
)
# [[ "${2:--}" != "-" ]] && options=("${options[@]}" --upper_limit "${2:--}")
# [[ "${3:--}" != "-" ]] && options=("${options[@]}" --window "${3:--}")
# [[ "${4:--}" != "-" ]] && options=("${options[@]}" --validation "${4:--}")
# [[ "${4:--}" != "-" ]] && options=("${options[@]}" --overlap "${5:--}")
${
insar_py
}
--slc
"
${
slc_folder
}
"
--dem
"
${
dem_file
}
"
"
${
options
[@]
}
"
This diff is collapsed.
Click to expand it.
src/isce2_insar/insar_processer.py
0 → 100644
+
40
−
0
View file @
331a61d1
import
numpy
as
np
import
glob
,
os
gdal
.
UseExceptions
()
warnings
.
filterwarnings
(
'
ignore
'
)
warnings
.
filterwarnings
(
'
error
'
)
np
.
seterr
(
divide
=
'
ignore
'
,
invalid
=
'
ignore
'
)
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
"
-slc
"
,
"
--slc_folder
"
,
dest
=
"
slc
"
,
help
=
"
SLC folder
"
)
parser
.
add_argument
(
"
-dem
"
,
"
--dem_file
"
,
dest
=
"
demFile
"
,
help
=
"
path to dem file
"
)
parser
.
add_argument
(
"
-ll
"
,
"
--lower_limit
"
,
dest
=
"
htl
"
,
default
=
0
,
help
=
"
options
"
,
type
=
int
)
# parser.add_argument("-ul", "--upper_limit",dest = "htg", default = 40,help="upper limit of canopy height (m)", type=int)
# parser.add_argument("-w", "--window",dest = "window_size", default = 10, help="Size", type=int)
# parser.add_argument("-val", "--validation",dest = "validation", default = 0, help="fraction to split cross validation", type=float)
# parser.add_argument("-ol", "--overlap",dest = "window_overlap", default = 0, help="window overlap fraction", type=float)
args
=
parser
.
parse_args
()
if
__name__
==
"
__main__
"
:
os
.
system
(
'"
isceApp.py -h
"'
)
os
.
system
(
'"
dem.py -h
"'
)
os
.
system
(
'"
topsApp.py -h
"'
)
os
.
system
(
'"
insarApp.py -h
"'
)
os
.
system
(
'"
alos2App.py -h
"'
)
os
.
system
(
'"
stripmapApp.py -h
"'
)
os
.
system
(
'"
stackSentinel.py -h
"'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment