Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-445

NetCDF store should be robust to localization grid crossing anti-meridian

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0
    • Component/s: Referencing, Storage
    • Labels:
      None

      Description

      NetCDF files often have a "longitude" and "latitude" variables (names may vary) containing longitude and latitude values of every pixels. For raster data in Pacific ocean, the range of longitude sometime cross the anti-meridian, where longitude values suddenly drop from +180° to -180°. This discontinuity breaks our attempt to compute an affine transform approximation in LocalizationGridBuilder, produces wrong results when interpolating values in this area of the grid, and makes more difficult to converge when performing an inverse transformation.

      The proposed fix is to detect when such discontinuity happens, and add or subtract 360° on one side in order to get continuous values. Inconvenient is that some values become outside the [-180 … 180] range. In some case it can be outside the [0 … 360] range too (i.e. the data may turn around the Earth more than one lap).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                desruisseaux Martin Desruisseaux
                Reporter:
                desruisseaux Martin Desruisseaux
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: