html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/1106#issuecomment-260029785,https://api.github.com/repos/pydata/xarray/issues/1106,260029785,MDEyOklzc3VlQ29tbWVudDI2MDAyOTc4NQ==,1217238,2016-11-11T19:00:52Z,2016-11-11T19:00:52Z,MEMBER,"It's the same environment, I'm literally typing ""git checkout master"" or ""git checkout v0.8.2"" in my xarray-dev conda environment (on Python 3.5) On Fri, Nov 11, 2016 at 10:59 AM, Fabien Maussion notifications@github.com wrote: > Because you have a RuntimeWarning when reading already > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > https://github.com/pydata/xarray/issues/1106#issuecomment-260029534, or mute > the thread > https://github.com/notifications/unsubscribe-auth/ABKS1iqw2jD48U-qC5Kjed0Ut3Lz_BS4ks5q9LsjgaJpZM4Ku57C > . ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,188565022 https://github.com/pydata/xarray/issues/1106#issuecomment-260028968,https://api.github.com/repos/pydata/xarray/issues/1106,260028968,MDEyOklzc3VlQ29tbWVudDI2MDAyODk2OA==,1217238,2016-11-11T18:57:17Z,2016-11-11T18:57:17Z,MEMBER,"I get the same error attempting to same RASM on xarray v0.8.2. On xarray master, I get a different error, related to encoding datetimes: ``` In [1]: import xarray as xr In [2]: ds = xr.tutorial.load_dataset('rasm') /Users/shoyer/dev/xarray/xarray/conventions.py:386: RuntimeWarning: Unable to decode time axis into full numpy.datetime64 objects, continuing using dummy netCDF4.datetime objects instead, reason: dates out of range result = decode_cf_datetime(example_value, units, calendar) In [3]: ds.to_netcdf('rasm.nc', format='NETCDF3_CLASSIC', engine='scipy') --------------------------------------------------------------------------- TypeError Traceback (most recent call last) in () ----> 1 ds.to_netcdf('rasm.nc', format='NETCDF3_CLASSIC', engine='scipy') /Users/shoyer/dev/xarray/xarray/core/dataset.py in to_netcdf(self, path, mode, format, group, engine, encoding) 801 from ..backends.api import to_netcdf 802 return to_netcdf(self, path, mode, format=format, group=group, --> 803 engine=engine, encoding=encoding) 804 805 def __unicode__(self): /Users/shoyer/dev/xarray/xarray/backends/api.py in to_netcdf(dataset, path, mode, format, group, engine, writer, encoding) 513 store = store_cls(path, mode, format, group, writer) 514 try: --> 515 dataset.dump_to_store(store, sync=sync, encoding=encoding) 516 if isinstance(path, BytesIO): 517 return path.getvalue() /Users/shoyer/dev/xarray/xarray/core/dataset.py in dump_to_store(self, store, encoder, sync, encoding) 747 variables, attrs = encoder(variables, attrs) 748 --> 749 store.store(variables, attrs, check_encoding) 750 if sync: 751 store.sync() /Users/shoyer/dev/xarray/xarray/backends/common.py in store(self, variables, attributes, check_encoding_set) 230 # All NetCDF files get CF encoded by default, without this attempting 231 # to write times, for example, would fail. --> 232 cf_variables, cf_attrs = cf_encoder(variables, attributes) 233 AbstractWritableDataStore.store(self, cf_variables, cf_attrs, 234 check_encoding_set) /Users/shoyer/dev/xarray/xarray/conventions.py in cf_encoder(variables, attributes) 1067 """""" 1068 new_vars = OrderedDict((k, encode_cf_variable(v, name=k)) -> 1069 for k, v in iteritems(variables)) 1070 return new_vars, attributes /Users/shoyer/dev/xarray/xarray/conventions.py in (.0) 1067 """""" 1068 new_vars = OrderedDict((k, encode_cf_variable(v, name=k)) -> 1069 for k, v in iteritems(variables)) 1070 return new_vars, attributes /Users/shoyer/dev/xarray/xarray/conventions.py in encode_cf_variable(var, needs_copy, name) 721 var, needs_copy = maybe_encode_offset_and_scale(var, needs_copy) 722 var, needs_copy = maybe_encode_fill_value(var, needs_copy) --> 723 var = maybe_encode_dtype(var, name) 724 var = maybe_encode_bools(var) 725 var = ensure_dtype_not_object(var) /Users/shoyer/dev/xarray/xarray/conventions.py in maybe_encode_dtype(var, name) 634 data = string_to_char(np.asarray(data, 'S')) 635 dims = dims + ('string%s' % data.shape[-1],) --> 636 data = data.astype(dtype=dtype) 637 var = Variable(dims, data, attrs, encoding) 638 return var TypeError: float() argument must be a string or a number, not 'datetime.datetime' ``` ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,188565022 https://github.com/pydata/xarray/issues/1106#issuecomment-259803141,https://api.github.com/repos/pydata/xarray/issues/1106,259803141,MDEyOklzc3VlQ29tbWVudDI1OTgwMzE0MQ==,1217238,2016-11-10T20:48:28Z,2016-11-10T20:48:28Z,MEMBER,"I have not seen that one before! Maybe it's an issue because that file already exists? ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,188565022 https://github.com/pydata/xarray/issues/1106#issuecomment-259788839,https://api.github.com/repos/pydata/xarray/issues/1106,259788839,MDEyOklzc3VlQ29tbWVudDI1OTc4ODgzOQ==,1217238,2016-11-10T19:48:04Z,2016-11-10T19:48:04Z,MEMBER,"Yes, please open a PR in xarray-data! ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,188565022 https://github.com/pydata/xarray/issues/1106#issuecomment-259764394,https://api.github.com/repos/pydata/xarray/issues/1106,259764394,MDEyOklzc3VlQ29tbWVudDI1OTc2NDM5NA==,1217238,2016-11-10T18:12:00Z,2016-11-10T18:12:00Z,MEMBER,"Another option would be to switch all the example files (https://github.com/pydata/xarray-data) to use netCDF3. That's probably a good idea for maximum compatibility in any case, because we can read netCDF3 with only scipy installed. cc @jhamman ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,188565022