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

Collocation uses an infinite fill_value by default

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Resolved
    • Affects Version/s: 1.3
    • Fix Version/s: 1.4
    • Component/s: Co-location
    • Labels:
      None

      Description

      By default, [Binning]CubeCellConstraint? appears to assume fill_value=infinity, even if the source dataset already defines a _FillValue.

      Although NetCDF files use IEEE 854 floating point representations and so can contain infinities and NaNs, many tools that work with such files are poorly equipped to handle them. (For example, ncview is liable to crash when displaying such files.) I'm not sure whether such values are formally permitted by the NetCDF standard or CF conventions.

      It would probably make more sense to default to using a _FillValue declared by the source dataset, where one is available. If this is not done, then NaN is rather more appropriate than infinity as a default representation of missing data -- although most NetCDF tools will default to a very large but finite positive or negative value.

        Attachments

          Activity

            People

            Assignee:
            duncan.watson-parris@physics.ox.ac.uk Duncan Watson-Parris
            Reporter:
            kipling@atm.ox.ac.uk Zak Kipling
            Participants:
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: