issues: 292585285
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
292585285 | MDU6SXNzdWUyOTI1ODUyODU= | 1865 | Dimension Co-ordinates incorectly saving _FillValue attribute | 6153603 | closed | 0 | 6 | 2018-01-29T22:31:43Z | 2018-02-13T18:34:36Z | 2018-02-13T18:34:36Z | CONTRIBUTOR | Code Sample, a copy-pastable example if possible```python import xarray as xr import pandas as pd import numpy as np temp = 273.15 + 25 * np.random.randn(2, 2) lon = [0.0, 5.0] lat = [10.0, 20.0] ds = xr.Dataset({'temperature': (['lat', 'lon'], temp)}, coords={'lat': lat, 'lon': lon}) ds['lat'].attrs = { 'standard_name': 'latitude', 'long_name': 'latitude', 'units': 'degrees_north', 'axis': 'Y'} ds['lon'].attrs = { 'standard_name': 'longitude', 'long_name': 'longitude', 'units': 'degrees_east', 'axis': 'X'} ds['temperature'].attrs = { 'standard_name': 'air_temperature', 'units': 'K'} ds.attrs = { ('title', 'non-conforming CF 1.6 data produced by xarray 0.10'), ('Conventions', 'CF-1.6')} ds.to_netcdf('/tmp/test.nc') ``` Problem descriptionAccording to the last sentence of the first paragraph of 2.5.1. Missing data, valid and actual range of data in NetCDF Climate and Forecast (CF) Metadata Conventions 1.7:
When I use the conformance checker it issues an INFO message to this point for the co-ordinate variables. Output of CF-Checker follows...
Checking variable: temperatureChecking variable: latINFO: attribute _FillValue is being used in a non-standard way Checking variable: lonINFO: attribute _FillValue is being used in a non-standard way ERRORS detected: 0 WARNINGS given: 0 INFORMATION messages: 2 ``` Expected OutputCo-ordinate variables should not store a _FillValue attribute Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1865/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |