ASM #18095 Fixed hour substitued for satellite field precip when drawing polygon
Change-Id: Ice50dd9f3d04abdee9171a7e8a17e2c9a1f1fba6 Former-commit-id: 5452bcb4abb33ed994f33e7754ff8fb3c91d6a41
This commit is contained in:
parent
4985033e8c
commit
ea35c0314b
1 changed files with 16 additions and 6 deletions
|
@ -83,6 +83,7 @@ import com.raytheon.viz.mpe.ui.rsc.MPEFieldResourceData.MPEFieldFrame;
|
|||
* properly when mapping to screen.
|
||||
* Mar 10, 2014 17059 snaples Added case for Prism data for unit conversion correction.
|
||||
* Mar 19, 2014 17109 snaples Removed code that added an hour to SATPRE, the base file reference time has been adjusted.
|
||||
* Nov 05, 2015 18095 lbousaidi Fixed hour substitued for satellite field precip when drawing polygon.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -182,8 +183,18 @@ public class MPEFieldResource extends
|
|||
subData = dataMap.get(edit.getSubDrawSource());
|
||||
if (subData == null) {
|
||||
try {
|
||||
XmrgFile subFile = MPEDisplayManager.getXmrgFile(
|
||||
edit.getSubDrawSource(), frame.getDate());
|
||||
Date date=frame.getDate();
|
||||
//SATPRE MPE file time stamp is the start time of the hour
|
||||
//i.e. a 12z -13z product has a time stamp of 12z.
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(date);
|
||||
if (edit.getSubDrawSource().name().contains("satPre")) {
|
||||
cal.add(Calendar.HOUR, - 1);
|
||||
}
|
||||
|
||||
XmrgFile subFile = MPEDisplayManager.getXmrgFile(
|
||||
edit.getSubDrawSource(), cal.getTime());
|
||||
|
||||
subFile.load();
|
||||
subData = subFile.getData();
|
||||
dataMap.put(edit.getSubDrawSource(), subData);
|
||||
|
@ -330,15 +341,14 @@ public class MPEFieldResource extends
|
|||
timeToLoad.setTime(currTime.getRefTime());
|
||||
timeToLoad.add(Calendar.HOUR, -i);
|
||||
|
||||
|
||||
if (displayField==DisplayFieldData.satPre) {
|
||||
//SATPRE MPE file time stamp is the start time of the hour
|
||||
//i.e. a 12z -13z product has a time stamp of 12z.
|
||||
timeToLoad.add(Calendar.HOUR, -1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (displayField.isAComparisonField() )
|
||||
{
|
||||
ComparisonFields comparisonFields = displayField.getComparisonFields();
|
||||
|
|
Loading…
Add table
Reference in a new issue