Omaha #4819 Added comment on storms over the dataline.

Former-commit-id: 55e8bfb47292884eae10295ed8890af8d4402440
This commit is contained in:
Roger Ferrel 2015-09-22 13:34:34 -05:00
parent b7e1e522b4
commit c498c72057

View file

@ -173,6 +173,11 @@ public class HWRFPostProcessor implements IDecoderPostProcessor {
for (GridInfoRecord gi : giList) {
Geometry resultGeo = gi.getLocation().getGeometry();
/*
* TODO It is possible a storm might be over the dataline, I would
* expect this approach of intersecting to fail horribly if a
* hurricane approached and then crossed the dateline.
*/
double intersect = geo.intersection(resultGeo).getArea();
if ((intersect / area) > 0.95) {
return gi.getDatasetId();