Commit 7713984c authored by Ingrid Luijkx's avatar Ingrid Luijkx
Browse files

Changed sampling strategy for TM5 for hourly datasets

parent 6e6dc782
......@@ -306,7 +306,6 @@ class ObsPackObservations(Observations):
if 'site.incalt' in key:
identifier, incalt = value.split(';')
site_incalt[identifier.strip()] = (int(incalt))
logging.debug('test')
for obs in self.datalist: # loop over all available data points
......@@ -319,6 +318,7 @@ class ObsPackObservations(Observations):
if site_info.has_key(identifier):
if site_hourly.has_key(identifier):
obs.samplingstrategy = 2
hourf, hourt = site_hourly[identifier]
if int(obs.xdate.hour) >= hourf and int(obs.xdate.hour) <= hourt:
logging.warning("Observations in hourly dataset INCLUDED, while sampling time %s was between %s:00-%s:00"%(obs.xdate.time(),hourf,hourt))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment