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/39#issuecomment-38417320,https://api.github.com/repos/pydata/xarray/issues/39,38417320,MDEyOklzc3VlQ29tbWVudDM4NDE3MzIw,1217238,2014-03-24T07:21:02Z,2014-03-24T07:21:02Z,MEMBER,"I believe this was fixed by #54.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,28600785
https://github.com/pydata/xarray/issues/39#issuecomment-36484609,https://api.github.com/repos/pydata/xarray/issues/39,36484609,MDEyOklzc3VlQ29tbWVudDM2NDg0NjA5,514053,2014-03-03T06:28:32Z,2014-03-03T06:28:32Z,CONTRIBUTOR,"@shoyer You're right I can serialize the latitude object directly from that opendap url ... but after some manipulation I run into this:
```
ipdb> print fcst
dimensions:
latitude = 31
longitude = 46
time = 7
variables:
object latitude(latitude)
units:degrees_north
_CoordinateAxisType:Lat
object longitude(longitude)
units:degrees_east
_CoordinateAxisType:Lon
datet... time(time)
standard_name:time
_CoordinateAxisType:Time
units:hours since 2014-03-03 00:0...
ipdb> fcst.dump('./test.nc')
*** TypeError: illegal primitive data type, must be one of ['i8', 'f4', 'u8', 'i1', 'U1', 'S1', 'i2', 'u1', 'i4', 'u2', 'f8', 'u4'], got object
```
Currently tracking down exactly whats going on here.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,28600785
https://github.com/pydata/xarray/issues/39#issuecomment-36484363,https://api.github.com/repos/pydata/xarray/issues/39,36484363,MDEyOklzc3VlQ29tbWVudDM2NDg0MzYz,1794715,2014-03-03T06:21:33Z,2014-03-03T06:21:33Z,CONTRIBUTOR,"Indices also have an .inferred_type getter. unfortunately it doesn't seem
to return true type names...
In [13]: pandas.Index([1,2,3]).inferred_type
Out[13]: 'integer'
In [14]: pandas.Index([1,2,3.5]).inferred_type
Out[14]: 'mixed-integer-float'
In [15]: pandas.Index([""ab"",""cd""]).inferred_type
Out[15]: 'string'
In [16]: pandas.Index([""ab"",""cd"",3]).inferred_type
Out[16]: 'mixed-integer'
On Sun, Mar 2, 2014 at 10:14 PM, Stephan Hoyer notifications@github.comwrote:
> This is because coordinates are loaded as pandas.Index objects... which
> don't always faithfully preserve the type of the underlying object (see
> pydata/pandas#6471 https://github.com/pydata/pandas/issues/6471).
>
> I believe serialization should still work though thanks to a work around I
> added for dtype=object. Do let me know if this is not the case. One
> solution to make this less awkward would be to wrap pandas.Index in
> something that keeps track of the dtype of the original arguments for use
> in mathematical expression.
>
> ##
>
> Reply to this email directly or view it on GitHubhttps://github.com/akleeman/xray/issues/39#issuecomment-36484122
> .
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,28600785
https://github.com/pydata/xarray/issues/39#issuecomment-36484122,https://api.github.com/repos/pydata/xarray/issues/39,36484122,MDEyOklzc3VlQ29tbWVudDM2NDg0MTIy,1217238,2014-03-03T06:14:38Z,2014-03-03T06:14:38Z,MEMBER,"This is because coordinates are loaded as pandas.Index objects... which don't always faithfully preserve the type of the underlying object (see https://github.com/pydata/pandas/issues/6471).
I believe serialization should still work though thanks to a work around I added for dtype=object. Do let me know if this is not the case. One solution to make this less awkward would be to wrap pandas.Index in something that keeps track of the dtype of the original arguments for use in mathematical expression.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,28600785