Skip to content
Snippets Groups Projects

Resolve "add tracability attributes to grid (and maybe tile) files"

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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