Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cspp-geo-gridded-glm
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
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
cspp_geo
cspp-geo-gridded-glm
Merge requests
!6
Something went wrong on our end
Resolve "add tracability attributes to grid (and maybe tile) files"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "add tracability attributes to grid (and maybe tile) files"
3-add-tracability-attributes-to-grid-and-maybe-tile-files
into
master
Overview
0
Commits
5
Pipelines
0
Changes
1
Merged
Nick Bearson
requested to merge
3-add-tracability-attributes-to-grid-and-maybe-tile-files
into
master
4 years ago
Overview
0
Commits
5
Pipelines
0
Changes
1
Expand
Closes #3
0
0
Merge request reports
Viewing commit
59c0611f
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
59c0611f
use input file basenames rather than full path.
· 59c0611f
Nick Bearson
authored
4 years ago
gridded_glm/libexec/_minute_gridder.py
+
1
−
1
Options
@@ -201,7 +201,7 @@ def add_gglm_attrs(netcdf_filename, input_filenames):
nc
=
Dataset
(
netcdf_filename
,
'
a
'
)
setattr
(
nc
,
'
cspp_geo_gglm_version
'
,
get_cspp_gglm_version
())
setattr
(
nc
,
'
cspp_geo_gglm_production_host
'
,
socket
.
gethostname
())
setattr
(
nc
,
'
cspp_geo_gglm_input_files
'
,
"
,
"
.
join
(
input_filenames
))
# this probably needs to be added somewhere else?
setattr
(
nc
,
'
cspp_geo_gglm_input_files
'
,
"
,
"
.
join
(
[
os
.
path
.
basename
(
f
)
for
f
in
input_filenames
]))
nc
.
close
()
except
:
log
.
error
(
"
could not add CSPP Geo GGLM attributes to {}
"
.
format
(
netcdf_filename
))
Loading