Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
GeoSentinel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoSentinel
Commits
3221d5e1
Commit
3221d5e1
authored
May 23, 2018
by
Mario Chirinos Colunga
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndvi sh
parent
fa80f108
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
3 additions
and
3 deletions
+3
-3
combination_sentinel_raster
examples/bk/combination_sentinel_raster
+0
-0
download_images
examples/bk/download_images
+0
-0
find_sentinel_files
examples/bk/find_sentinel_files
+0
-0
unzip_sentinel_files
examples/bk/unzip_sentinel_files
+0
-0
DownloadIma.py
geosentinel/bk/DownloadIma.py
+0
-0
Index.py
geosentinel/bk/Index.py
+0
-0
JP2ToJPGSubset.py
geosentinel/bk/JP2ToJPGSubset.py
+0
-0
Merge.py
geosentinel/bk/Merge.py
+0
-0
Resampling.py
geosentinel/bk/Resampling.py
+0
-0
SubSet.py
geosentinel/bk/SubSet.py
+0
-0
UnZip.py
geosentinel/bk/UnZip.py
+0
-0
arguments.py
geosentinel/bk/arguments.py
+0
-0
exceptions.py
geosentinel/bk/exceptions.py
+0
-0
products.py
geosentinel/bk/products.py
+0
-0
readProduct.py
geosentinel/bk/readProduct.py
+0
-0
tools.py
geosentinel/bk/tools.py
+0
-0
ui_utils.py
geosentinel/bk/ui_utils.py
+0
-0
ndvi.py
geosentinel/ndvi.py
+1
-1
productListToNDVI.sh
tools/productListToNDVI.sh
+2
-2
No files found.
examples/combination_sentinel_raster
→
examples/
bk/
combination_sentinel_raster
View file @
3221d5e1
File moved
examples/download_images
→
examples/
bk/
download_images
View file @
3221d5e1
File moved
examples/find_sentinel_files
→
examples/
bk/
find_sentinel_files
View file @
3221d5e1
File moved
examples/unzip_sentinel_files
→
examples/
bk/
unzip_sentinel_files
View file @
3221d5e1
File moved
geosentinel/DownloadIma.py
→
geosentinel/
bk/
DownloadIma.py
View file @
3221d5e1
File moved
geosentinel/Index.py
→
geosentinel/
bk/
Index.py
View file @
3221d5e1
File moved
geosentinel/JP2ToJPGSubset.py
→
geosentinel/
bk/
JP2ToJPGSubset.py
View file @
3221d5e1
File moved
geosentinel/Merge.py
→
geosentinel/
bk/
Merge.py
View file @
3221d5e1
File moved
geosentinel/Resampling.py
→
geosentinel/
bk/
Resampling.py
View file @
3221d5e1
File moved
geosentinel/SubSet.py
→
geosentinel/
bk/
SubSet.py
View file @
3221d5e1
File moved
geosentinel/UnZip.py
→
geosentinel/
bk/
UnZip.py
View file @
3221d5e1
File moved
geosentinel/arguments.py
→
geosentinel/
bk/
arguments.py
View file @
3221d5e1
File moved
geosentinel/exceptions.py
→
geosentinel/
bk/
exceptions.py
View file @
3221d5e1
File moved
geosentinel/products.py
→
geosentinel/
bk/
products.py
View file @
3221d5e1
File moved
geosentinel/readProduct.py
→
geosentinel/
bk/
readProduct.py
View file @
3221d5e1
File moved
geosentinel/tools.py
→
geosentinel/
bk/
tools.py
View file @
3221d5e1
File moved
geosentinel/ui_utils.py
→
geosentinel/
bk/
ui_utils.py
View file @
3221d5e1
File moved
geosentinel/ndvi.py
View file @
3221d5e1
...
...
@@ -36,7 +36,7 @@ def geoint_pr_ndvi(nir_fn, vir_fn, outfile):
# driverJP2 = gdal.GetDriverByName('JP2OpenJPEG')
# driverJP2ECW = gdal.GetDriverByName('JP2ECW')
# raster = np.zeros((rows, cols), dtype=np.uint8)
output
=
driverTiff
.
Create
(
outfile
+
".tiff"
,
cols
,
rows
,
1
,
gdal
.
GDT_Byte
)
output
=
driverTiff
.
Create
(
outfile
,
cols
,
rows
,
1
,
gdal
.
GDT_Byte
)
# output = driverTiff.CreateCopy(outfile+".tiff", nir, strict=0)
# output = driverJP2.CreateCopy(outfile, nir, strict=0)
output
.
GetRasterBand
(
1
)
.
SetNoDataValue
(
-
99
)
...
...
tools/productListToNDVI.sh
View file @
3221d5e1
...
...
@@ -48,14 +48,14 @@ do
fileout1
=
$(
echo
$filepattern
|
cut
-d
"_"
-f1
)
fileout2
=
$(
echo
$filepattern
|
cut
-d
"_"
-f2
)
python
/home/geoint/git/GeoSentinel/geosentinel/ndvi.py
$NIR
$VIR
ndvi/
$fileout2
"_"
$fileout1
".jp2
"
python
$HOME
/git/GeoSentinel/geosentinel/ndvi.py
$NIR
$VIR
ndvi/
$fileout2
"_"
$fileout1
".tiff
"
# convert $filepattern"04.jpg" $filepattern"03.jpg" $filepattern"02.jpg" -resize 640x480\! -combine video/$fileout2"_"$fileout1".jpg"
if
[
!
-d
"video"
]
;
then
mkdir
video
fi
# gdal_translate -projwin $3 -projwin_srs WGS84 -ot Byte -scale 0 4096 0 255 -of JPEG ndvi/$fileout2"_"$fileout1".jp2
" video/$fileout2"_"$fileout1".jpg"
gdal_translate
-projwin
$3
-projwin_srs
WGS84
-ot
Byte
-scale
0 4096 0 255
-of
JPEG ndvi/
$fileout2
"_"
$fileout1
".tiff
"
video/
$fileout2
"_"
$fileout1
".jpg"
cd
..
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment