ASM #336 MPEFieldResource updated to add case for PRISM data unit conversion.
Change-Id: I8f129902079c051ca4fb508e43b8bf892cb19e0e Former-commit-id:e7d6b6d08b
[formerlyc877c8b61b
] [formerly915e3c2c66
] [formerlye7d6b6d08b
[formerlyc877c8b61b
] [formerly915e3c2c66
] [formerly7432b146ed
[formerly915e3c2c66
[formerly 482547a4f4eaff0fc24b6d3f1103a38a9f3aa314]]]] Former-commit-id:7432b146ed
Former-commit-id:3da7f90763
[formerly36e3819aad
] [formerly a4c90943789c41fe516b27147c94972a79097682 [formerly796ba75949
]] Former-commit-id: 8e023a369cb1cd81a0bb80e10957d6b5c0e16ae0 [formerlyf390c8ce3c
] Former-commit-id:74ea78b1a5
This commit is contained in:
parent
6e7e337bec
commit
2d5c04afe2
1 changed files with 14 additions and 1 deletions
|
@ -79,7 +79,9 @@ import com.raytheon.viz.mpe.ui.rsc.MPEFieldResourceData.MPEFieldFrame;
|
||||||
* hour less than the file time stamp.
|
* hour less than the file time stamp.
|
||||||
* Jul 02, 2013 2160 mpduff Changed how edited data are called for return.
|
* Jul 02, 2013 2160 mpduff Changed how edited data are called for return.
|
||||||
* Sep 17, 2013 16563 snaples Updated createFrameImage to handle trace precip
|
* Sep 17, 2013 16563 snaples Updated createFrameImage to handle trace precip
|
||||||
* properly when mapping to screen.
|
* properly when mapping to screen.
|
||||||
|
* Mar 10, 2014 17059 snaples Added case for Prism data for unit conversion correction.
|
||||||
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author mschenke
|
* @author mschenke
|
||||||
|
@ -435,6 +437,17 @@ public class MPEFieldResource extends
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Prism:
|
||||||
|
for (int i = 0; i < length; ++i) {
|
||||||
|
short value = data[i];
|
||||||
|
if (value < 0) {
|
||||||
|
imageData[i] = 0;
|
||||||
|
} else {
|
||||||
|
imageData[i] = (short) dataToImage.convert(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default :
|
default :
|
||||||
for (int i = 0; i < length; ++i) {
|
for (int i = 0; i < length; ++i) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue