Issue #2044 Fix topo retrieval in ifpnetCDF
Change-Id: I3e15f9ed8a5e7577332fade9cfabeb9734fd1d20 Former-commit-id:2ec3c5eb95
[formerlyd850a79cbd
] [formerly807b4ee431
] [formerly2ec3c5eb95
[formerlyd850a79cbd
] [formerly807b4ee431
] [formerlyf6f19065e6
[formerly807b4ee431
[formerly 9bacbf50094476cfb01be5b9ae1f535ca4afd1c9]]]] Former-commit-id:f6f19065e6
Former-commit-id:72f4e4f14f
[formerly754e521085
] [formerly efa321e63a18527d354b11a2b5486ade82a7fce3 [formerlye5551d529a
]] Former-commit-id: 01883b98514926168430c3b3bf9783e276542c3e [formerly59924c01b5
] Former-commit-id:26e98bdc0b
This commit is contained in:
parent
5fcf50976f
commit
08da44e136
1 changed files with 5 additions and 3 deletions
|
@ -40,7 +40,7 @@ from com.raytheon.edex.plugin.gfe.config import IFPServerConfigManager
|
|||
from com.raytheon.uf.common.dataplugin.gfe.config import ProjectionData_ProjectionType as ProjectionType
|
||||
from com.raytheon.edex.plugin.gfe.smartinit import IFPDB
|
||||
from com.raytheon.edex.plugin.gfe.util import CartDomain2D
|
||||
from com.raytheon.edex.plugin.gfe.server.database import TopoDatabaseManager
|
||||
from com.raytheon.edex.plugin.gfe.server import IFPServer
|
||||
from com.raytheon.uf.common.dataplugin.gfe.db.objects import DatabaseID
|
||||
from com.raytheon.uf.common.dataplugin.gfe.reference import ReferenceID
|
||||
from com.raytheon.uf.common.dataplugin.gfe.reference import ReferenceData
|
||||
|
@ -465,11 +465,13 @@ def storeTopoGrid(client, file, databaseID, maskGrid, clipArea):
|
|||
"Stores the topo grid in the database"
|
||||
|
||||
# Get the grid location and projection information
|
||||
gridLoc = IFPServerConfigManager.getServerConfig(DatabaseID(databaseID).getSiteId()).dbDomain()
|
||||
ifpServer = IFPServer.getActiveServer(DatabaseID(databaseID).getSiteId())
|
||||
|
||||
gridLoc = ifpServer.getConfig().dbDomain()
|
||||
pDict = gridLoc.getProjection()
|
||||
|
||||
# Get the topo grid
|
||||
topoGrid = TopoDatabaseManager.getTopoData(gridLoc).getPayload().get(0).__numpy__[0]
|
||||
topoGrid = ifpServer.getTopoMgr().getTopoData(gridLoc).getPayload().__numpy__[0]
|
||||
topoGrid = clipToExtrema(topoGrid, clipArea)
|
||||
topoGrid = numpy.flipud(topoGrid)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue