Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplestac
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
umr-tetis
STAC
simplestac
Commits
d97ddcfc
Commit
d97ddcfc
authored
4 months ago
by
de Boissieu Florian
Browse files
Options
Downloads
Patches
Plain Diff
another fix for previous commit
parent
7bedd6c0
No related branches found
Branches containing commit
Tags
v1.2.0
Tags containing commit
No related merge requests found
Pipeline
#255298
passed
4 months ago
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_local.py
+2
-1
2 additions, 1 deletion
tests/test_local.py
with
2 additions
and
1 deletion
tests/test_local.py
+
2
−
1
View file @
d97ddcfc
...
...
@@ -48,7 +48,8 @@ def test_xarray_to_stac(s2scene_dir):
# test for preparation of a function xarray_to_stac or xarray_to_items or a method ItemCollection.add_xarray
col
=
build_item_collection
(
s2scene_dir
,
collection_format
())
x
=
col
.
drop_non_raster
().
to_xarray
()
y
=
apply_formula
(
x
,
formula
=
"
((B08-B04)/(B08+B04))
"
)
with
xr
.
set_options
(
keep_attrs
=
True
):
y
=
apply_formula
(
x
,
formula
=
"
((B08-B04)/(B08+B04))
"
)
output_dir
=
s2scene_dir
.
parent
/
"
NDVI
"
output_dir
.
rmtree_p
().
mkdir_p
()
gdf
=
col
.
to_geodataframe
(
include_items
=
True
)
...
...
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