Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Climax
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
earth_observation_public
Climax
Commits
1ceba131
Commit
1ceba131
authored
3 years ago
by
Frisinghelli Daniel
Browse files
Options
Downloads
Patches
Plain Diff
Remove projection variable.
parent
662477c2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
climax/main/preprocess/preprocess_OBS.py
+4
-1
4 additions, 1 deletion
climax/main/preprocess/preprocess_OBS.py
with
4 additions
and
1 deletion
climax/main/preprocess/preprocess_OBS.py
+
4
−
1
View file @
1ceba131
...
...
@@ -15,7 +15,7 @@ import xarray as xr
# locals
from
climax.core.cli
import
preprocess_obs_parser
from
climax.core.constants
import
CORDEX_VARIABLES
from
climax.core.constants
import
CORDEX_VARIABLES
,
PROJECTION
from
pysegcnn.core.logging
import
log_conf
from
pysegcnn.core.utils
import
search_files
from
pysegcnn.core.trainer
import
LogConfig
...
...
@@ -88,6 +88,9 @@ if __name__ == '__main__':
ds
[
'
time
'
]
=
np
.
asarray
([
t
.
astype
(
'
datetime64[D]
'
)
for
t
in
ds
.
time
.
values
])
# drop projection variable, if present
ds
=
ds
.
drop_vars
(
PROJECTION
)
if
PROJECTION
in
ds
.
data_vars
else
ds
# set NetCDF file compression for each variable
for
_
,
var
in
ds
.
data_vars
.
items
():
var
.
encoding
[
'
zlib
'
]
=
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