nasa / RHEAS

Regional Hydrologic Extremes Assessment System
MIT License
73 stars 54 forks source link

Handle missing data in forcings #100

Closed kandread closed 5 years ago

samburu commented 5 years ago

When i adopt the above commit i get the following error: psycopg2.ProgrammingError: relation "precip.ncep" does not exist LINE 1: ...as x, st_worldtorastercoordy(rast,geom) as y from precip.nce... I tried to solve the issue by making the following changes: tmax = self._handleMissingData(tmax, "tmax.{0}".format(self.temp)) #replace "precip.{0}" with "tmax.{0}"

tmin = self._handleMissingData(tmin, "tmin.{0}".format(self.temp)) #replace "precip.{0}" with "tmin.{0}"

wind = self._handleMissingData(wind, "wind.{0}".format(self.wind)) #replace "precip.{0}" with "wind.{0}"

But then i get the following error: IOError: File ./tmpxA91Ee/output/wb_3.625_30.625 does not exist

kandread commented 5 years ago

This should be fixed with a1952703bcc39c7489fb4bdcf63e4235e01425e3 We are testing a a bit more, but will merge to the master branch soon. Switch to the develop branch if you need this now.

samburu commented 5 years ago

When i switch to develop do i've to repeat the following steps:

kandread commented 5 years ago

Nope. Just do ./bin/buildout install paths to be safe

samburu commented 5 years ago

After switching to develop I'm getting this warning IOError: File ./tmp7y8kKs/output/wb_3.625_30.625 does not exist is there a minimum number of year of data required to do a forecast?