Class LongitudeFilter

java.lang.Object
noaa.coastwatch.util.LongitudeFilter
All Implemented Interfaces:
Filter

public class LongitudeFilter extends Object implements Filter
The longitude filter is a filter with special considerations for longitude values. In some cases, longitude values may cross the 180 to -180 boundary in a computation that requires data values to be continuous. The longitude filter detects a boundary crossing and adjusts the longitude values. Values which are less than 0 are shifted positive 360 degrees.
Since:
3.1.1
Author:
Peter Hollemans
  • Constructor Details

    • LongitudeFilter

      public LongitudeFilter()
  • Method Details

    • filter

      public void filter(double[] values)
      Detects a longitude boundary crossing and adjusts the values if necessary. The assumption is that if the minimum and maximum longitudes differ by more than 180 degrees, then a boundary crossing has occurred.
      Specified by:
      filter in interface Filter
      Parameters:
      values - the longitude values for adjustment.