Omaha #3344 Updated import for GRID_FILL_VALUE.

Former-commit-id: 88aa28c46b [formerly d490bc82905d37ad284485d30a493c1fd7e3ed6f]
Former-commit-id: 3ce6447418
This commit is contained in:
Roger Ferrel 2014-07-14 17:00:43 -05:00
parent 27b08f8bcd
commit 8fdfb4b6e2

View file

@ -17,6 +17,14 @@
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
# further licensing information.
##
#
# SOFTWARE HISTORY
#
# Date Ticket# Engineer Description
# ------------ ---------- ----------- --------------------------
# ??? Initial creation
# Jul 07, 2014 3344 rferrel Change GRID_FILL_VALUE to new plugin location.
#
import grib2
import numpy
@ -49,7 +57,7 @@ from com.raytheon.uf.common.dataplugin.level import LevelFactory
from com.raytheon.edex.plugin.grib.spatial import GribSpatialCache
from com.raytheon.edex.util.grib import GribTableLookup
from com.raytheon.edex.util import Util
from com.raytheon.uf.common.util import GridUtil
from com.raytheon.edex.util.grib import GribParamTranslator
@ -333,7 +341,7 @@ class GribDecoder():
subGridDataArray = numpy.zeros((subny, subnx), numpy.float32)
midx = nx - startx
subGridDataArray[0:subny, 0:midx] = numpyDataArray[starty:endY, startx:nx]
subGridDataArray[0:subny, midx:subnx] = Util.GRID_FILL_VALUE
subGridDataArray[0:subny, midx:subnx] = GridUtil.GRID_FILL_VALUE
numpyDataArray = subGridDataArray
else:
numpyDataArray = numpyDataArray[starty:endY, startx:endX]