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 294852957,MDU6SXNzdWUyOTQ4NTI5NTc=,1892,Not able to save raster to netcdf ,5759776,closed,0,,,3,2018-02-06T17:49:15Z,2018-02-06T18:53:35Z,2018-02-06T18:51:31Z,NONE,,,,"Code Sample, a copy-pastable example if possible ``` # Your code here import xarray as xr rio = xr.open_rasterio(r'C:\DEV\B04_10m.tif') print(rio) rio.to_netcdf(r'C:\DEV\B04_10m.nc') ``` Problem description my files are in unit16, I got the error messages: ``` Traceback (most recent call last): ValueError: NetCDF 3 does not support type uint16 ``` [this should explain why the current behavior is a problem and why the expected output is a better solution.] Expected Output It should be able to save tif to netcdf, is there some process missing here? Output of xr.show_versions()
# Paste the output here xr.show_versions() here INSTALLED VERSIONS ------------------ commit: None python: 3.6.3.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 158 Stepping 9, GenuineIntel byteorder: little LC_ALL: None LANG: en LOCALE: None.None xarray: 0.10.0 pandas: 0.22.0 numpy: 1.13.3 scipy: 1.0.0 netCDF4: None h5netcdf: None Nio: None bottleneck: None cyordereddict: None dask: 0.16.1 matplotlib: 2.1.1 cartopy: 0.15.1 seaborn: None setuptools: 36.5.0.post20170921 pip: 9.0.1 conda: None pytest: None IPython: 6.2.1 sphinx: 1.6.6 <\details>","{""url"": ""https://api.github.com/repos/pydata/xarray/issues/1892/reactions"", ""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,completed,13221727,issue