issues: 383791450
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
383791450 | MDU6SXNzdWUzODM3OTE0NTA= | 2565 | CF conventions: time_bnds and time units | 10050469 | closed | 0 | 4 | 2018-11-23T11:32:37Z | 2019-01-08T22:28:37Z | 2019-01-08T22:28:37Z | MEMBER | ProblemHere is the dump of a NetCDF file (download): ``` netcdf cesm.TREFHT.160001-200512.selection { dimensions: time = UNLIMITED ; // (4872 currently) lat = 3 ; lon = 3 ; nbnd = 2 ; variables: float TREFHT(time, lat, lon) ; TREFHT:units = "K" ; TREFHT:long_name = "Reference height temperature" ; TREFHT:cell_methods = "time: mean" ; double lat(lat) ; lat:long_name = "latitude" ; lat:units = "degrees_north" ; double lon(lon) ; lon:long_name = "longitude" ; lon:units = "degrees_east" ; double time(time) ; time:long_name = "time" ; time:units = "days since 0850-01-01 00:00:00" ; time:calendar = "noleap" ; time:bounds = "time_bnds" ; double time_bnds(time, nbnd) ; time_bnds:long_name = "time interval endpoints" ; // global attributes: :Conventions = "CF-1.0" ; :source = "CAM" ; ... } ``` When xarray decodes the time coordinates it also deletes the
The problem is that I have no way to actually decode the SolutionI actually don't know what we should do here. I see a couple of ways:
1. we don't care and leave it to the user (here: me) to open the file with netCDF4 to decode the time bounds
2. we don't delete the Thoughts? cc @spencerkclark @jhamman |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2565/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |