Issue #2246 Set the frameoffset to +- 5 mins
Former-commit-id: 4fbc811cd469775cdfc75c8b678abbf1c36effea
This commit is contained in:
parent
051a83e8f4
commit
34f3bbe3e7
1 changed files with 8 additions and 2 deletions
|
@ -65,6 +65,7 @@ import com.raytheon.viz.pointdata.util.PointDataInventory;
|
||||||
* Date Ticket# Engineer Description
|
* Date Ticket# Engineer Description
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* Sep 17, 2013 2391 mpduff Initial creation
|
* Sep 17, 2013 2391 mpduff Initial creation
|
||||||
|
* Sept 22, 2013 2246 dhladky Setup binoffset for time into +-5 min intervals
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -110,6 +111,11 @@ public class DataDeliveryProductBrowserDataDefinition
|
||||||
GridInventory.MODEL_NAME_QUERY, GridInventory.PARAMETER_QUERY,
|
GridInventory.MODEL_NAME_QUERY, GridInventory.PARAMETER_QUERY,
|
||||||
GridInventory.MASTER_LEVEL_QUERY, GridInventory.LEVEL_ID_QUERY };
|
GridInventory.MASTER_LEVEL_QUERY, GridInventory.LEVEL_ID_QUERY };
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setup as 5 mins +- (60x5=300) from a reference time
|
||||||
|
*/
|
||||||
|
private final int frameOffset = 300;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*/
|
*/
|
||||||
|
@ -246,7 +252,7 @@ public class DataDeliveryProductBrowserDataDefinition
|
||||||
public AbstractRequestableResourceData getResourceData() {
|
public AbstractRequestableResourceData getResourceData() {
|
||||||
if (selectedDataType.equalsIgnoreCase(DataType.POINT.name())) {
|
if (selectedDataType.equalsIgnoreCase(DataType.POINT.name())) {
|
||||||
resourceData = new PlotResourceData();
|
resourceData = new PlotResourceData();
|
||||||
resourceData.setBinOffset(new BinOffset(900, 900));
|
resourceData.setBinOffset(new BinOffset(frameOffset, frameOffset));
|
||||||
resourceData.setRetrieveData(false);
|
resourceData.setRetrieveData(false);
|
||||||
resourceData.setUpdatingOnMetadataOnly(true);
|
resourceData.setUpdatingOnMetadataOnly(true);
|
||||||
((PlotResourceData) resourceData).setTopOfTheHour(false);
|
((PlotResourceData) resourceData).setTopOfTheHour(false);
|
||||||
|
|
Loading…
Add table
Reference in a new issue