home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 248942085

This data as json

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
248942085 MDU6SXNzdWUyNDg5NDIwODU= 1505 A problem about xarray.concat 12339722 closed 0     2 2017-08-09T07:33:50Z 2017-08-10T00:25:07Z 2017-08-10T00:25:07Z NONE      

Hi, today i use xr.concat to concat my wrf model splitted netcdf datasets, in this model output data, it typically has two kinds of meshgrid, includes one stagged meshgrid and mass meshgrid, different variables have located on the different kind of grid.

For example, below is some variables in a dataset, some have dimension west_east and other take west_east_stag, MAPFAC_M (Time, south_north, west_east) float32 1.06697 ... MAPFAC_U (Time, south_north, west_east_stag) float32 1.06697 ... MAPFAC_V (Time, south_north_stag, west_east) float32 1.06698 ... MAPFAC_MX (Time, south_north, west_east) float32 1.06697 ... MAPFAC_MY (Time, south_north, west_east) float32 1.06697 ... MAPFAC_UX (Time, south_north, west_east_stag) float32 1.06697 ... MAPFAC_UY (Time, south_north, west_east_stag) float32 1.06697 ... MAPFAC_VX (Time, south_north_stag, west_east) float32 1.06698 ... MF_VX_INV (Time, south_north_stag, west_east) float32 0.937228 ... MAPFAC_VY (Time, south_north_stag, west_east) float32 1.06698 ... i want concat along dimension west_east and west_east_stag, so that these piece of datasets can be concatenate fully. When i use xr.concat to concatenate these datasets, the argument dim can just use one dimension ?

Is it possible to concat with multiple independent dimensions, like following, python xr.concat([ds_col_0, ds_col_1, ds_col_2], dim=['west_east', 'west_east_stag'])

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1505/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 2 rows from issue in issue_comments
Powered by Datasette · Queries took 1.374ms · About: xarray-datasette