Uploaded image for project: 'JASMIN CIS'
  1. JASMIN CIS
  2. JASCIS-236

Gridded -> Gridded box and lin,nn produce different output shapes if extra dimension in data

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Co-location
    • Labels:
      None

      Description

      The case here is performing a gridded -> gridded colocation when the data has an extra dimension not present in the sample (e.g. time). How this is dealt with differs depending on the type of colocation. The GriddedColocator will always include the extra dimension in the output (see JASCIS-201). So colocating (time, lat, lon) onto (lat, lon) results in (time, lat, lon).

      However the GeneralGriddedColocator doesn't add this dimension to the output (see JASCIS-204) - colocating (time, lat, lon) onto (lat, lon) results in (lat, lon). This is understandable since unlike the GriddedColocator, the GeneralGriddedColocator has to colocate ungridded data onto gridded (as well as gridded -> gridded box), and it's not possible to copy the extra dimension to the output when the data is ungridded.

      However this does have the effect that doing a gridded to gridded colocation with nn and lin will produce a different shape output to doing the same colocation with box, when an extra dimension is present in the data. This is because nn and lin use GriddedColocator whilst box uses GeneralGriddedColocator.

        Attachments

          Activity

            People

            Assignee:
            matthew.kendall@tessella.com Matthew Kendall
            Reporter:
            matthew.kendall@tessella.com Matthew Kendall
            Participants:
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: