Omaha #3344 Updated import for GRID_FILL_VALUE.
Former-commit-id:88aa28c46b
[formerly d490bc82905d37ad284485d30a493c1fd7e3ed6f] Former-commit-id:3ce6447418
This commit is contained in:
parent
27b08f8bcd
commit
8fdfb4b6e2
1 changed files with 10 additions and 2 deletions
|
@ -17,6 +17,14 @@
|
||||||
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||||
# further licensing information.
|
# 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 grib2
|
||||||
import numpy
|
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.plugin.grib.spatial import GribSpatialCache
|
||||||
from com.raytheon.edex.util.grib import GribTableLookup
|
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
|
from com.raytheon.edex.util.grib import GribParamTranslator
|
||||||
|
|
||||||
|
@ -333,7 +341,7 @@ class GribDecoder():
|
||||||
subGridDataArray = numpy.zeros((subny, subnx), numpy.float32)
|
subGridDataArray = numpy.zeros((subny, subnx), numpy.float32)
|
||||||
midx = nx - startx
|
midx = nx - startx
|
||||||
subGridDataArray[0:subny, 0:midx] = numpyDataArray[starty:endY, startx:nx]
|
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
|
numpyDataArray = subGridDataArray
|
||||||
else:
|
else:
|
||||||
numpyDataArray = numpyDataArray[starty:endY, startx:endX]
|
numpyDataArray = numpyDataArray[starty:endY, startx:endX]
|
||||||
|
|
Loading…
Add table
Reference in a new issue