Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
InSAR_forest_height
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
InSAR_forest_height
Commits
a66dc532
Commit
a66dc532
authored
9 months ago
by
Narayanarao Bhogapurapu
Browse files
Options
Downloads
Patches
Plain Diff
Update build.sh
parent
631609e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.sh
+31
-41
31 additions, 41 deletions
build.sh
with
31 additions
and
41 deletions
build.sh
+
31
−
41
View file @
a66dc532
...
@@ -2,58 +2,48 @@
...
@@ -2,58 +2,48 @@
set
-xeuo
pipefail
set
-xeuo
pipefail
# Get the base directory of the script
basedir
=
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
basedir
=
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
#
Make
sure conda is updated to a version that supports the --no-capture-output option
#
En
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"
# conda install -y -n base -c conda-forge "conda>=4.13.0"
conda
install
-y
-n
base
-c
conda-forge gdal
pip
install
pandas scikit-image empatches scikit-learn scipy numpy matplotlib tqdm futures
#
pip install Pyarrow
#
Install essential packages in the base environment
# pip
install -
-upgrade numpy
conda
install
-
y
-n
base
-c
conda-forge gdal
# Install Python packages using pip
pip
install
pandas scikit-image empatches scikit-learn scipy numpy matplotlib tqdm futures
# Create conda env
containing only conda-lock
# Create
a new
conda env
ironment for your project (uncomment if needed)
# conda create -y -n ich gdal matplotlib scipy scikit-image tqdm pandas
# conda create -y -n ich gdal matplotlib scipy scikit-image tqdm pandas
# Install dependencies from lock file for speed and reproducibility
# Install dependencies from lock file for speed and reproducibility
(uncomment if needed)
# conda-lock install -n ich "${basedir}/environment/conda-lock.yml"
# conda-lock install -n ich "${basedir}/environment/conda-lock.yml"
# Install
maap-py, since i
t can
no
t be specified in the lock file
# Install
additional packages tha
t can
'
t be specified in the lock file
(uncomment if needed)
# conda env update -n ich --file "${basedir}/environments/environment-maappy.yml"
# conda env update -n ich --file "${basedir}/environments/environment-maappy.yml"
# Install the current project in editable mode (uncomment if needed)
# conda run --no-capture-output -n ich PIP_REQUIRE_VENV=0 python -m pip install -e "${basedir}"
# conda run --no-capture-output -n ich PIP_REQUIRE_VENV=0 python -m pip install -e "${basedir}"
# Fail build if finicky mix of fiona and gdal isn't correct, so that we don't
# Verify the GDAL installation and other package availability
# have to wait to execute a DPS job to find out.
conda run
--no-capture-output
-n
ich python
-c
'
# conda run --no-capture-output -n ich python -c '
try:
# from osgeo import gdal
from osgeo import gdal
# import warnings
import warnings
# import argparse,os,sys,warnings
import argparse
import os
# import numpy as np, pandas as pd
import sys
# from osgeo import gdal
from skimage.util.shape import view_as_blocks
# from scipy import interpolate
from mpl_toolkits.axes_grid1 import make_axes_locatable
# import matplotlib.pyplot as plt
from scipy.interpolate import griddata
# from matplotlib import cm
from tqdm import tqdm
# from matplotlib.colors import Normalize
from concurrent.futures import ProcessPoolExecutor, as_completed
print("All modules imported successfully.")
# from scipy.stats import linregress
except ImportError as e:
# from skimage.util.shape import view_as_blocks
print(f"Import error: {e}")
# from mpl_toolkits.axes_grid1 import make_axes_locatable
sys.exit(1)
# from scipy.interpolate import griddata
'
# from tqdm import tqdm
# from scipy.interpolate import interpn
# Optionally, you can include additional checks or commands below
# gdal.UseExceptions()
# For example, checking for specific versions of packages or running a test script.
# warnings.filterwarnings("ignore")
# warnings.filterwarnings("error")
# np.seterr(divide="ignore", invalid="ignore")
# # Make sure pip install worked
# from maap.maap import MAAP
# warnings.filterwarnings("ignore", message=".*initial implementation of Parquet.*")
# '
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