ASM #14130 Satellite: Derived Products Plots problems for SSM/I Point Data

Change-Id: Id3c2189c017bf6341bc09236dbd39aaff937e2c8

Former-commit-id: 10de233231 [formerly 56ff684e6425b43883603f46ef16127e8356450a]
Former-commit-id: 7f731a767f
This commit is contained in:
Kiran.Shrestha 2014-12-17 21:03:18 +00:00
parent e9d9b1c7bd
commit 5f7e529f37
3 changed files with 24 additions and 17 deletions

View file

@ -29,7 +29,7 @@ xmlns:xlink="http://www.w3.org/1999/xlink" style="stroke: rgb(255,255,255);">
<text id="lat" plotMode="sample" class="text" plotParam="latitude" plotSymbol="deg" plotFormat="%3.2f">0</text>
<text id="lon" plotMode="sample" class="text" plotParam="longitude" plotSymbol="deg" plotFormat="%3.2f">0</text>
<text id="sample5" plotMode="sample" class="text" plotLookupTable="output_formats.txt" plotParam="vertIntegWater" plotFormat="%2.1f" plotSymbol="kg/(m**2)">75</text>
<text id="vilText" plotMode="range" class="text" plotLookupTable="output_formats.txt" plotParam="vertIntegWater" plotFormat="%2.1f">0</text>
<text id="vilText" plotMode="range" class="text" plotLookupTable="output_formats.txt" plotParam="vertIntegWater" plotFormat="%2.2f">0</text>
</symbol>

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -93,6 +93,7 @@ import com.raytheon.viz.pointdata.rsc.PlotResourceData;
* Mar 21, 2014 2868 njensen Refactored python usage to PythonJobCoordinator
* Jun 06, 2014 2061 bsteffen Rename and add support for data formats in sampling.
* Aug 07, 2014 3478 bclement removed PointDataDescription.Type.Double
* Dec 16, 2014 16193 kshrestha Updated range limits
*
* </pre>
*
@ -1096,7 +1097,9 @@ public class PlotModelFactory {
if (element.lookup != null && sValue != null) {
String lu = null;
if (!sValue.equals("?")){
lu = element.lookup.lookup(sValue);
}
if (lu != null) {
sValue = lu.trim();
}
@ -1119,8 +1122,6 @@ public class PlotModelFactory {
case LONG:
Number value = ob.getNumber(element.parameter);
if (value != null && value.doubleValue() != -9999.0) {
if (value.doubleValue() >= lowerLimit
&& value.doubleValue() <= upperLimit) {
double displayValue = 0.0;
if (element.unit != null) {
if (element.converter == null) {
@ -1139,6 +1140,8 @@ public class PlotModelFactory {
} else {
displayValue = value.doubleValue();
}
if (isValidValue(displayValue)){
if (element.format != null) {
StringBuilder sb = new StringBuilder();
Formatter testing = new Formatter(sb);
@ -1157,14 +1160,18 @@ public class PlotModelFactory {
default:
element.plotNode.setNodeValue(" ");
}
if (element.lookup != null) {
sValue = element.lookup.lookup(sValue);
if (element.lookup != null && sValue != null) {
String lu = null;
lu = element.lookup.lookup(sValue);
if (!lu.equals(""))
sValue = lu;
}
if (sValue != null) {
element.plotNode.setNodeValue(sValue.substring(element.trim));
return !sValue.trim().isEmpty();
} else if (plotMissingData) {
element.plotNode.setNodeValue("m");
setPlotMissingData(false);
return true;
} else {
element.plotNode.setNodeValue(" ");

View file

@ -36,7 +36,7 @@
plotModelFile="${svg}"
retrieveData="false" isUpdatingOnMetadataOnly="false"
isRequeryNecessaryOnTimeMatch="true"
lowerLimit="0" upperLimit="34" plotMissingData="true">
lowerLimit="0" upperLimit="34">
<binOffset posOffset="1800" negOffset="1800" virtualOffset="0"/>
<metadataMap>
<mapping key="pluginName">
@ -102,7 +102,7 @@
plotModelFile="${svg}"
retrieveData="false" isUpdatingOnMetadataOnly="false"
isRequeryNecessaryOnTimeMatch="true"
lowerLimit="-1.1" upperLimit="-0.9">
lowerLimit="-1.1" upperLimit="-0.9" plotMissingData="true">
<binOffset posOffset="1800" negOffset="1800" virtualOffset="0"/>
<metadataMap>
<mapping key="pluginName">