Commit 6f5bc9ae authored by R.K.Garcia's avatar R.K.Garcia
Browse files

CMIP rockfall self-test runs, next connect to goesr.rockfall.nc_write

parent cd2b33e1
......@@ -347,8 +347,11 @@ class HimawariAHIasCMIP(object):
yield self.p('%s_image_bounds' % name), vrange, self.d(DEFAULT_YX_BOUNDS_NAME), a
# y and x variables and their bounds and centerpoints
yx_pvda('y', y,,
yx_pvda('x', x,, mb.bx)
for each in yx_pvda('y', y,,
yield each
for each in yx_pvda('x', x,, mb.bx):
yield each
def pvda_nav(self):
nav = self._hs.navigation
......@@ -374,7 +377,7 @@ class HimawariAHIasCMIP(object):
nsh = nav.distance_from_earth_center_to_satellite - nav.earth_equatorial_radius
assert(nsh >= 1000.0)
yield self.p('nominal_satellite_height', np.float32(nsh), {}, a)
yield self.p('nominal_satellite_height'), np.float32(nsh), {}, a
# FIXME geospatial
......@@ -420,14 +423,18 @@ class HimawariAHIasCMIP(object):
yield self.p(), None, self._pug_global_dims, self._pug_global_attrs
# nav structure
yield self.p(DEFAULT_CMIP_PROJECTION_NAME), np.int32(0), {}, self.projection_attrs
yield self.p(self._projection_name), np.int32(0), {}, self.projection_attrs
# y and x variables and friends
for each in self.pvda_yx():
yield each
for each in self.pvda_nav():
yield each
# misc
for each in self.pvda_misc():
yield each
# we almost forgot! the data itself
v =
......@@ -483,7 +490,7 @@ def main():
levels = [logging.ERROR, logging.WARN, logging.INFO, logging.DEBUG]
logging.basicConfig(level=levels[min(3, args.verbosity)])
if args.debug:
if args.debug or not args.inputs:
sys.excepthook = _debug
if not args.inputs:
Markdown is supported
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