home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 207460668

This data as json

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/pull/814#issuecomment-207460668 https://api.github.com/repos/pydata/xarray/issues/814 207460668 MDEyOklzc3VlQ29tbWVudDIwNzQ2MDY2OA== 6215361 2016-04-08T14:47:08Z 2016-04-08T14:47:08Z NONE

OK the latest commit tries to do the cell methods:

``` python

print(cube) sea_water_potential_temperature / (degC) (-- : 148; -- : 180) Auxiliary coordinates: latitude x x longitude x x Scalar coordinates: depth: 4.99994 m, bound=(0.0, 10.0) m time: 1-01-01 12:00:00 Attributes: Conventions: CF-1.5 Cell methods: mean: time_counter print(xarray.DataArray.from_iris(cube)) <xarray.DataArray u'votemper' (dim0: 148, dim1: 180)> array([[ nan, nan, nan, ..., nan, nan, nan], [ nan, nan, nan, ..., nan, nan, nan], [ nan, nan, nan, ..., nan, nan, nan], ..., [ nan, nan, nan, ..., nan, nan, nan], [ nan, nan, nan, ..., nan, nan, nan], [ nan, nan, nan, ..., nan, nan, nan]], dtype=float32) Coordinates: deptht float64 5.0 time_counter object 1-01-01 12:00:00 nav_lat (dim0, dim1) float32 -78.1906 -78.1906 -78.1906 -78.1906 ... nav_lon (dim0, dim1) float32 80.0 82.0 83.9999 85.9999 87.9999 ... * dim0 (dim0) int64 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ... * dim1 (dim1) int64 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ... Attributes: units: degC long_name: Temperature standard_name: sea_water_potential_temperature cell_methods: time_counter: mean Conventions: CF-1.5 print(xarray.DataArray.from_iris(cube).to_iris()) sea_water_potential_temperature / (degC) (dim0: 148; dim1: 180) Dimension coordinates: dim0 x - dim1 - x Auxiliary coordinates: latitude x x longitude x x Scalar coordinates: depth: 4.99993801117 m time: 1-01-01 12:00:00 Attributes: Conventions: CF-1.5 Cell methods: mean: time_counter ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  145140657
Powered by Datasette · Queries took 0.611ms · About: xarray-datasette