issues: 507658070
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
507658070 | MDU6SXNzdWU1MDc2NTgwNzA= | 3407 | Save 'S1' array without the char_dim_name dimension | 30388627 | closed | 0 | 2 | 2019-10-16T07:04:47Z | 2019-10-16T08:55:02Z | 2019-10-16T08:55:01Z | NONE | MCVE Code Sample```python import numpy as np import xarray as xr tstr='2019-07-25_00:00:00' Times = xr.DataArray(np.array([" ".join(tstr).split()], dtype = 'S1'), dims = ['Time', 'DateStrLen']) ds = xr.Dataset({'Times':Times}) ds.to_netcdf('test.nc', format='NETCDF4',encoding={'Times': {'zlib':True, 'complevel':5}}, unlimited_dims={'Time':True}) ``` Expected OutputBecause I want to use the nc file as the input of WRF model,
I just need
``` netcdf test { dimensions: Time = UNLIMITED ; // (1 currently) DateStrLen = 19 ; variables: char Times(Time, DateStrLen) ; }
Problem DescriptionThis is the actual output of Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3407/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |