Skip to content

Commit

Permalink
Bug fix for metadata content in netcdf file with already calculated wind
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenwh committed Dec 4, 2014
1 parent 39dead2 commit b1706e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openwind/sar_wind.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def __init__(self, sar_image, wind_direction='ncep_wind_online',

self.SAR_image_time = self.get_time(
self.sigma0_bandNo).replace(tzinfo=None)
self._set_wind_direction_source(wind_direction)
if not self.get_metadata().has_key('WIND_DIRECTION_SOURCE'):
self._set_wind_direction_source(wind_direction)

if pixelsize != 'fullres':
print 'Resizing SAR image to ' + str(pixelsize) + ' m pixel size'
Expand Down

0 comments on commit b1706e1

Please sign in to comment.