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/1025#issuecomment-251057046,https://api.github.com/repos/pydata/xarray/issues/1025,251057046,MDEyOklzc3VlQ29tbWVudDI1MTA1NzA0Ng==,10050469,2016-10-03T08:54:41Z,2016-10-03T08:54:41Z,MEMBER,"Glad that it worked out for you. Maybe you can close this issue?
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,180503054
https://github.com/pydata/xarray/issues/1025#issuecomment-251045880,https://api.github.com/repos/pydata/xarray/issues/1025,251045880,MDEyOklzc3VlQ29tbWVudDI1MTA0NTg4MA==,12929592,2016-10-03T07:48:53Z,2016-10-03T07:48:53Z,NONE,"Brilliant - thank you!
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,180503054
https://github.com/pydata/xarray/issues/1025#issuecomment-251042556,https://api.github.com/repos/pydata/xarray/issues/1025,251042556,MDEyOklzc3VlQ29tbWVudDI1MTA0MjU1Ng==,10050469,2016-10-03T07:25:30Z,2016-10-03T07:25:30Z,MEMBER,"Without knowing how your data looks like it's difficult to say, but maybe you are getting a `KeyError` because of floating point precision issues. Maybe the keyword `method='nearest'` will be useful to you?
See the doc for other examples: http://xarray.pydata.org/en/stable/indexing.html#nearest-neighbor-lookups
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,180503054
https://github.com/pydata/xarray/issues/1025#issuecomment-251040498,https://api.github.com/repos/pydata/xarray/issues/1025,251040498,MDEyOklzc3VlQ29tbWVudDI1MTA0MDQ5OA==,12929592,2016-10-03T07:08:48Z,2016-10-03T07:08:48Z,NONE,"Thanks for your response.
I am not wanting a range of values that is why I don't want to use slice - I just want the value at the given time, latitude and longitude.
If I use .isel() I receive an 'Assertion Error' on this line:
MaxTempatpoint=MaxTempattime.isel(latitude=-39.14952469, longitude=140.84791565)
and if I use .sel() I receive a 'Key Error' - KeyError: -39.14952469 on this line:
MaxTempatpoint=MaxTempattime.sel(latitude=-39.14952469, longitude=140.84791565)
I haven't pasted entire error message because I am assuming the issue I am having is simple??
Should I some how convert the latitude and longitude to a different data type and then access? Or is there some way of accessing an index for the latitude and longitude?
Any feedback will be greatly appreciated.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,180503054
https://github.com/pydata/xarray/issues/1025#issuecomment-250962829,https://api.github.com/repos/pydata/xarray/issues/1025,250962829,MDEyOklzc3VlQ29tbWVudDI1MDk2MjgyOQ==,10050469,2016-10-02T09:41:41Z,2016-10-02T09:41:41Z,MEMBER,"Hi @slharris ,
Note that `.isel()` is for integer indexing while `.sel()` is for indexing by value (probably what you want).
if you want a range of values you should give a slice as argument, as indicated in the [documentation](http://xarray.pydata.org/en/stable/indexing.html#indexing-with-labeled-dimensions): e.g. `.sel(longitude=slice(34, 67))`
(PS: when you report a problem it would be useful to also post the error message, which is more informative than ""#this is where the problem occurs"")
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,180503054