Skip to content

Warning: saving variable air with floating point data as an integer dtype without any _FillValue to use for NaNs #109

@scottyhq

Description

@scottyhq

@dcherian Doing a bit of cleanup of https://tutorial.xarray.dev/overview/xarray-in-45-min.html#reading-and-writing-files I'm surprised by the serialization warning: Why is it saving floating point data as integer dtype?

import xarray as xr
ds = xr.tutorial.load_dataset("air_temperature")
ds.to_netcdf("my-example-dataset.nc")
/var/folders/gt/fg1fy12n5wg2b027zy5qmcr40000gn/T/ipykernel_90730/1274509432.py:3: SerializationWarning: saving variable air with floating point data as an integer dtype without any _FillValue to use for NaNs
  ds.to_netcdf("my-example-dataset.nc")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions