Skip to content

Commit

Permalink
#30: add no_mask_value kwarg to export2thredds, and updated metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenwh committed Jul 11, 2019
1 parent cb4fcd8 commit 70befc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geospaas_wind/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ def process(self, uri, force=False, *args, **kwargs):

# Set global metadata
metadata['data_center'] = json.dumps(pti.get_gcmd_provider('nersc'))
metadata['entry_title'] = 'Wind field from '+metadata['entry_title']
metadata['entry_title'] = 'Wind field from '+os.path.basename(uri)
metadata.pop('file_creation_date')
metadata['history'] = metadata['history'] + timezone.now().isoformat() + \
metadata['history'] = metadata['history'] + ' ' + timezone.now().isoformat() + \
'. Calculated wind field from NRCS and Arome Arctic forecast wind directions.'
metadata.pop('institution')
metadata['keywords'] += ', ['
Expand All @@ -83,7 +83,7 @@ def process(self, uri, force=False, *args, **kwargs):

# Export
#ww.export2thredds(thredds_fn, mask_name='swathmask', bands={'U':{},'V':{}}, metadata=metadata)
ww.export2thredds(thredds_fn, mask_name='swathmask', metadata=metadata)
ww.export2thredds(thredds_fn, mask_name='swathmask', metadata=metadata, no_mask_value=1)
wds, cr = super(WindManager, self).get_or_create(wind_uri)

#os.unlink(tmp_filename)
Expand Down

0 comments on commit 70befc0

Please sign in to comment.