Merge branch 'omaha_14.3.1' of ssh://awips2omaha.com:29418/AWIPS2_baseline into master_14.3.1
Former-commit-id: 63cb45303d0afb6923e0065164022eac2fdb1053
This commit is contained in:
commit
641f5714eb
4 changed files with 36 additions and 17 deletions
|
@ -65,6 +65,7 @@ import com.raytheon.viz.grid.rsc.general.D2DGridResource;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* May 5, 2014 3026 mpduff Initial creation
|
||||
* Dec 16, 2014 3026 mpduff Change location of text
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -121,7 +122,7 @@ public class HpeLabelResource extends
|
|||
.getResourcesByTypeAsType(D2DGridResource.class);
|
||||
if (!list.isEmpty()) {
|
||||
double[] pixel = paintProps.getView().getDisplayCoords(
|
||||
new double[] { 125, 50 }, target);
|
||||
new double[] { 125, 100 }, target);
|
||||
RGB color = getCapability(ColorableCapability.class).getColor();
|
||||
for (D2DGridResource rsc : list) {
|
||||
GridRecord currentGridRec = rsc.getCurrentGridRecord();
|
||||
|
|
|
@ -185,6 +185,7 @@ import com.vividsolutions.jts.geom.Point;
|
|||
* May 05, 2014 3026 mpduff Display Hpe bias source.
|
||||
* May 19, 2014 DR 16096 gzhang Make getBasin() protected for FFMPDataGenerator.
|
||||
* Nov 10, 2014 3026 dhladky HPE BIAS displays.
|
||||
* Dec 16, 2014 3026 mpduff Change location of text
|
||||
* </pre>
|
||||
*
|
||||
* @author dhladky
|
||||
|
@ -1466,7 +1467,7 @@ public class FFMPResource extends
|
|||
private void paintProductString(IGraphicsTarget target,
|
||||
PaintProperties paintProps) throws VizException {
|
||||
double[] pixel = paintProps.getView().getDisplayCoords(
|
||||
new double[] { 110, 50 }, target);
|
||||
new double[] { 110, 100 }, target);
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (isAutoRefresh || isQuery) {
|
||||
sb.append("FFMP ").append(df.format(getTime())).append(" hour ")
|
||||
|
@ -3152,7 +3153,7 @@ public class FFMPResource extends
|
|||
boolean guid = false;
|
||||
Date oldestRefTime = getOldestTime();
|
||||
Date mostRecentRefTime = getPaintTime().getRefTime();
|
||||
|
||||
|
||||
Date barrierTime = getTableTime();// DR 16148
|
||||
Date minUriTime = getTimeOrderedKeys().get(0);// DR 16148
|
||||
|
||||
|
@ -3167,10 +3168,11 @@ public class FFMPResource extends
|
|||
|
||||
if (rateBasin != null) {
|
||||
for (Date date : rateBasin.getValues().keySet()) {
|
||||
|
||||
if (date.before(minUriTime) || date.before(barrierTime) || date.after(mostRecentRefTime))
|
||||
|
||||
if (date.before(minUriTime) || date.before(barrierTime)
|
||||
|| date.after(mostRecentRefTime))
|
||||
continue;// DR 16148
|
||||
|
||||
|
||||
double dtime = FFMPGuiUtils.getTimeDiff(mostRecentRefTime,
|
||||
date);
|
||||
fgd.setRate(dtime, (double) rateBasin.getValue(date));
|
||||
|
@ -3195,8 +3197,9 @@ public class FFMPResource extends
|
|||
if (qpeBasin != null) {
|
||||
|
||||
for (Date date : qpeBasin.getValues().keySet()) {
|
||||
|
||||
if (date.before(minUriTime) || date.before(barrierTime) || date.after(mostRecentRefTime))
|
||||
|
||||
if (date.before(minUriTime) || date.before(barrierTime)
|
||||
|| date.after(mostRecentRefTime))
|
||||
continue;// DR 16148
|
||||
|
||||
double dtime = FFMPGuiUtils.getTimeDiff(mostRecentRefTime,
|
||||
|
@ -4141,8 +4144,9 @@ public class FFMPResource extends
|
|||
}
|
||||
|
||||
/**
|
||||
* This method creates the upper left legend text for HPE derived QPE sources.
|
||||
* It is only used for HPE QPE sources.
|
||||
* This method creates the upper left legend text for HPE derived QPE
|
||||
* sources. It is only used for HPE QPE sources.
|
||||
*
|
||||
* @param date
|
||||
* @return
|
||||
*/
|
||||
|
@ -4160,18 +4164,18 @@ public class FFMPResource extends
|
|||
}
|
||||
|
||||
/**
|
||||
* HPE source lookup job
|
||||
* HPE source lookup job
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Nov 11, 2014 3026 dhladky Initial creation
|
||||
*
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* @author dhladky
|
||||
* @version 1.0
|
||||
*/
|
||||
|
|
|
@ -41,6 +41,7 @@ import com.raytheon.uf.edex.plugin.hpe.util.HpeEnums.HpeDataSource;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Mar 26, 2014 3026 mpduff Initial creation
|
||||
* Dec 16, 2014 3026 mpduff Add default value if numPairs < npairBiasSelect
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -172,7 +173,11 @@ public class HpeLabelGenerator {
|
|||
sb.append(bias).append(SLASH)
|
||||
.append((int) rec.getNumPairs());
|
||||
sb.append(StringUtil.NEWLINE);
|
||||
|
||||
return sb.toString();
|
||||
} else {
|
||||
sb.append("1.00").append(SLASH)
|
||||
.append((int) rec.getNumPairs());
|
||||
sb.append(StringUtil.NEWLINE);
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,6 +64,11 @@ getCamelAndWrapperPids() {
|
|||
if [ "$_camel_pid" != "" ]; then
|
||||
# grab wrapper pid from edex process, run throw awk to throw away leading white space
|
||||
_wrapper_pid=`ps --no-headers -p $_camel_pid -o ppid | awk '{print $1}'`
|
||||
# if wrapper died, camel's parent will be 1, don't report that as the wrapper
|
||||
if [ "$_wrapper_pid" == "1" ]
|
||||
then
|
||||
_wrapper_pid=""
|
||||
fi
|
||||
else
|
||||
# camel not up, double check wrapper pid file
|
||||
pidfile=${EDEX_INSTALL}/bin/${1}.pid
|
||||
|
@ -138,7 +143,11 @@ stopEDEX() {
|
|||
savepid=$_wrapper_pid
|
||||
while [ "${_wrapper_pid}${_camel_pid}" != "" ]; do
|
||||
if [ "$_wrapper_pid" != "$savepid" ]; then
|
||||
echo "WARNING: EDEX ${1} instance running under new pid, started by another user?"
|
||||
# only display warning when other wrapper starts (not if wrapper died)
|
||||
if [ -n "$_wrapper_pid" ]
|
||||
then
|
||||
echo "WARNING: EDEX ${1} instance running under new pid, started by another user?"
|
||||
fi
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue