home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 1221809615

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
1221809615 I_kwDOAMm_X85I01XP 6547 these two should equals ,but not , latitude was wrong 90036937 closed 0     1 2022-04-30T11:34:11Z 2022-04-30T17:31:49Z 2022-04-30T17:31:42Z NONE      

these two should equals ,but not , latitude was wrong

import numpy as np import xarray as xr data1 = xr.open_dataset('test1111111.nc') ```

wrong code

np.array(data1.sel(time='1990-1' , isobaricInhPa=200 ).z[: , ::-10 , ::10]) Out[37]: array([[[109890.25, 109890.75, 109890.75, ..., 109888.25, 109889.25, 109889.75], [110014.75, 110017.75, 110020.75, ..., 110006.75, 110009.75, 110012.25], [110109.75, 110115.25, 110119.75, ..., 110098.25, 110101.75, 110106.25], ..., [107800.25, 107824.75, 107845.75, ..., 107719.75, 107747.25, 107775.25], [107684.25, 107697.75, 107709.75, ..., 107641.25, 107656.25, 107670.25], [107585.75, 107587.75, 107589.75, ..., 107578.75, 107581.25, 107583.25]]], dtype=float32) ```

```

right code

np.array( data1.sel(time='1990-1' , isobaricInhPa=200 ).z)[: , ::-10 , ::10] Out[38]: array([[[109798.75, 109798.75, 109798.75, ..., 109798.75, 109798.75, 109798.75], [109915.75, 109916.75, 109917.25, ..., 109912.75, 109914.25, 109915.25], [110037.75, 110040.25, 110043.75, ..., 110028.25, 110030.25, 110034.25], ..., [107776.25, 107797.25, 107818.75, ..., 107702.75, 107727.25, 107753.25], [107662.25, 107673.25, 107683.25, ..., 107626.75, 107638.75, 107650.75], [107571.25, 107571.25, 107571.25, ..., 107571.25, 107571.25, 107571.25]]], dtype=float32) ```

The latitude is really messed up. test1111111.zip

Originally posted by @jesieleo in https://github.com/pydata/xarray/discussions/6546

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

Links from other tables

  • 1 row from issues_id in issues_labels
  • 1 row from issue in issue_comments
Powered by Datasette · Queries took 0.697ms · About: xarray-datasette