issues: 177754433
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
177754433 | MDU6SXNzdWUxNzc3NTQ0MzM= | 1008 | How to avoid the auto convert variable dtype from float32 to float64 when read netCDF file use open_dataset? | 12339722 | closed | 0 | 6 | 2016-09-19T10:51:29Z | 2018-03-28T22:37:00Z | 2018-03-28T22:37:00Z | NONE |
Use xarry.open_dataset
will yield output as follow
Variables dtype of dbz, vr and sw in this file have been convert to float64, which actually is float32. Use netCDF4.Dataset
will yield output as follow
The netCDF4.Dataset produce the right variable type, while the xarray.open_dataset not. |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1008/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |