ASM #15699 - Fix Grib decoder error
Change-Id: Ieabe763de544960f6e7bae0e2cf940eaa2493511 Former-commit-id:9f20c63f97
[formerly67e44f145a
] [formerly7e78946ee0
[formerly e8c156d166cedc1553f9ffd8867633651443872d]] Former-commit-id:7e78946ee0
Former-commit-id:356d0e04f6
This commit is contained in:
parent
ab21a0f8e9
commit
248205a78f
1 changed files with 4 additions and 2 deletions
|
@ -49,7 +49,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
|
||||
|
||||
|
@ -123,6 +123,8 @@ logHandler = UFStatusHandler.UFStatusHandler("com.raytheon.edex.plugin.grib", "E
|
|||
# grib files.
|
||||
# Feb 11, 2014 2765 bsteffen Better handling of probability parameters.
|
||||
# Apr 28, 2014 3084 bsteffen Use full grid for looking up parameter aliases.
|
||||
# Aug 15, 2014 15699 MPorricelli Import GridUtil and update reference
|
||||
# to GRID_FILL_VALUE
|
||||
#
|
||||
class GribDecoder():
|
||||
|
||||
|
@ -333,7 +335,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]
|
||||
|
|
Loading…
Add table
Reference in a new issue