Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GeoPEAS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
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
esde
toar-data
GeoPEAS
Commits
2e517c11
Commit
2e517c11
authored
5 years ago
by
leufen1
Browse files
Options
Downloads
Patches
Plain Diff
extract no data flag value and mark as numpy nan
parent
a6d3755c
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!5
New App; stable_night_lights
,
!4
Lukas issue004 feat new app stable night lights
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stable_night_lights/nightlights_file_extraction.py
+2
-0
2 additions, 0 deletions
stable_night_lights/nightlights_file_extraction.py
with
2 additions
and
0 deletions
stable_night_lights/nightlights_file_extraction.py
+
2
−
0
View file @
2e517c11
...
...
@@ -37,6 +37,8 @@ def read_proxydata(filename, dummy=DEBUG and USE_DUMMY_STABLE_NIGHT_LIGHTS_DATA)
# construct data array and lonvec, latvec
data
=
rst
.
bands
[
0
].
data
()
nodata_value
=
rst
.
bands
[
0
].
nodata_value
data
[
data
==
nodata_value
]
=
np
.
nan
lonvec
=
np
.
linspace
(
xmin
,
xmax
,
cols
)
latvec
=
np
.
linspace
(
ymin
,
ymax
,
rows
)
...
...
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