home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

59 rows where user = 17162724 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: reactions, created_at (date), updated_at (date)

issue >30

  • DOC: add examples to concat 5
  • add storage_options arg to to_zarr 4
  • DOC: Add resample e.g. Edit rolling e.g. Add groupby e.g. 3
  • xr.where not picking up nan from another NetCDF file 2
  • DOC: Added examples to rolling.py 2
  • Rolling mean of dask array conflicting sizes for data and coordinate in rolling operation 2
  • Calling pd.to_datetime on cftime variable 2
  • Feature request: xr.set_option('display.max_data_vars', N) 2
  • Opening remote file with OpenDAP protocol returns "_FillValue type mismatch" error 2
  • to_array to create a dimension as last axis 2
  • open_dataarray docs still contains *args, **kwargs 1
  • DOC: Added parameter list to open_dataarray 1
  • Broken link to github on ReadTheDocs 1
  • WRF output : cannot serialize variable 1
  • DOC: Removed a line in setting up toy weather data 1
  • DOC: Add contributing section in README.rst and README.rst in doc/ 1
  • rolling: allow control over padding 1
  • rolling: periodic 1
  • Fixes centerized rolling with bottleneck 1
  • DOC: add interp example 1
  • Example on using `preprocess` with `mfdataset` 1
  • GRIB Data Example notebook - dataset not found 1
  • update installation instruction 1
  • xarray.Dataset.from_dataframe link to pandas.DataFrame.to_xarray 1
  • [community] Bi-weekly community developers meeting 1
  • doc: reading via cfgrib 1
  • DOC: drop eccodes in docs 1
  • Segmentation fault when reading example GRIB file with xarray 1
  • quick overview example not working with `to_zarr` function with gcs store 1
  • Allow fsspec URLs in open_(mf)dataset 1
  • …

user 1

  • raybellwaves · 59 ✖

author_association 1

  • CONTRIBUTOR 59
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1176378382 https://github.com/pydata/xarray/issues/6754#issuecomment-1176378382 https://api.github.com/repos/pydata/xarray/issues/6754 IC_kwDOAMm_X85GHhwO raybellwaves 17162724 2022-07-06T15:41:43Z 2022-07-06T15:41:43Z CONTRIBUTOR

What's the advantage of this over the transpose call?

I would say very little. I'm a lazy programmer.

I appreciate the arguments here of not blending methods which could make them more prone to bugs. I doubt there's any noticeable overhead of computation cost with the extra transpose call.

Welcome to close.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  to_array to create a dimension as last axis 1294978633
1175730605 https://github.com/pydata/xarray/issues/6754#issuecomment-1175730605 https://api.github.com/repos/pydata/xarray/issues/6754 IC_kwDOAMm_X85GFDmt raybellwaves 17162724 2022-07-06T03:12:52Z 2022-07-06T03:12:52Z CONTRIBUTOR

We could follow the axis kwarg to DataArray.expand_dims as precedent. It specifies the axis number for the new dimension.

Thanks. Made a PR before seeing your comment. Welcome to chime in on the PR

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  to_array to create a dimension as last axis 1294978633
991418508 https://github.com/pydata/xarray/pull/6070#issuecomment-991418508 https://api.github.com/repos/pydata/xarray/issues/6070 IC_kwDOAMm_X847F9iM raybellwaves 17162724 2021-12-11T02:48:30Z 2021-12-11T02:48:30Z CONTRIBUTOR

Dup of https://github.com/pydata/xarray/pull/6067 but this have a clearer title. Same solution so I don’t mind which one goes in

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix whatsnew rst formatting 1077336054
954053236 https://github.com/pydata/xarray/issues/5882#issuecomment-954053236 https://api.github.com/repos/pydata/xarray/issues/5882 IC_kwDOAMm_X8443bJ0 raybellwaves 17162724 2021-10-28T17:29:51Z 2021-10-28T17:29:51Z CONTRIBUTOR

Thanks for trying out! I have installed xarray with conda in a newly conda environment (both python 3.6 and 3.8), but I still receive the error:

@raybellwaves which python version are you using?

Output of xr.open_dataset("http://opendap.tudelft.nl/thredds/dodsC/IDRA/2019/10/01/IDRA_2019-10-01_11-00_raw_data.nc")

I'm on 3.9 sorry I can do a full list of my env as I pull from an internal source but the core ones around netcdf I see

netcdf-fortran 4.5.3
netcdf4 1.5.7 libnetcdf 4.8.1

Works in the pangeo docker (https://github.com/pangeo-data/pangeo-docker-images/blob/master/pangeo-notebook/environment.yml) if that helps

docker run -it pangeo/pangeo-notebook /bin/bash python import xarray as xr xr.open_dataset("http://opendap.tudelft.nl/thredds/dodsC/IDRA/2019/10/01/IDRA_2019-10-01_11-00_raw_data.nc")

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Opening remote file with OpenDAP protocol returns "_FillValue type mismatch" error 1032694511
949880645 https://github.com/pydata/xarray/issues/5882#issuecomment-949880645 https://api.github.com/repos/pydata/xarray/issues/5882 IC_kwDOAMm_X844ngdF raybellwaves 17162724 2021-10-22T18:45:02Z 2021-10-22T18:45:02Z CONTRIBUTOR

Seemed ok for me. You could try installing with conda: http://xarray.pydata.org/en/stable/getting-started-guide/installing.html#instructions

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Opening remote file with OpenDAP protocol returns "_FillValue type mismatch" error 1032694511
932662235 https://github.com/pydata/xarray/issues/5836#issuecomment-932662235 https://api.github.com/repos/pydata/xarray/issues/5836 IC_kwDOAMm_X843l0vb raybellwaves 17162724 2021-10-02T02:01:01Z 2021-10-02T02:03:30Z CONTRIBUTOR

I see this is probably intentional

return zstore https://github.com/pydata/xarray/blob/main/xarray/backends/api.py#L1436

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  to_zarr returns <xarray.backends.zarr.ZarrStore at ...> 1013881639
926847914 https://github.com/pydata/xarray/issues/5816#issuecomment-926847914 https://api.github.com/repos/pydata/xarray/issues/5816 IC_kwDOAMm_X843PpOq raybellwaves 17162724 2021-09-24T18:46:45Z 2021-09-24T18:46:45Z CONTRIBUTOR

See https://github.com/pydata/xarray/blob/main/xarray/core/dataset.py#L2022

for how to link the doc string to other parts of the docs

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Link API docs to user guide and other examples 1006588071
901583625 https://github.com/pydata/xarray/pull/5704#issuecomment-901583625 https://api.github.com/repos/pydata/xarray/issues/5704 IC_kwDOAMm_X841vRMJ raybellwaves 17162724 2021-08-19T03:37:09Z 2021-08-19T03:37:19Z CONTRIBUTOR

See https://github.com/pydata/xarray/discussions/5689 for reference to this PR

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Allow in-memory arrays with open_mfdataset 970245117
898714488 https://github.com/pydata/xarray/pull/5615#issuecomment-898714488 https://api.github.com/repos/pydata/xarray/issues/5615 IC_kwDOAMm_X841kUt4 raybellwaves 17162724 2021-08-13T20:52:26Z 2021-08-13T20:52:42Z CONTRIBUTOR

test currently failing with zarr==2.4 in min-all-deps (https://github.com/pydata/xarray/blob/main/ci/requirements/py37-min-all-deps.yml#L49) storage_options was added to zarr in 2.5

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  add storage_options arg to to_zarr 946543524
894471702 https://github.com/pydata/xarray/pull/5615#issuecomment-894471702 https://api.github.com/repos/pydata/xarray/issues/5615 IC_kwDOAMm_X841UI4W raybellwaves 17162724 2021-08-06T19:24:31Z 2021-08-06T19:24:31Z CONTRIBUTOR

still need to think about a test

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  add storage_options arg to to_zarr 946543524
892116559 https://github.com/pydata/xarray/pull/5615#issuecomment-892116559 https://api.github.com/repos/pydata/xarray/issues/5615 IC_kwDOAMm_X841LJ5P raybellwaves 17162724 2021-08-03T19:45:29Z 2021-08-03T19:45:29Z CONTRIBUTOR

Friendly ping on a review.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  add storage_options arg to to_zarr 946543524
881678771 https://github.com/pydata/xarray/pull/5615#issuecomment-881678771 https://api.github.com/repos/pydata/xarray/issues/5615 IC_kwDOAMm_X840jVmz raybellwaves 17162724 2021-07-16T19:46:48Z 2021-07-16T19:48:13Z CONTRIBUTOR

test currently failing https://github.com/pydata/xarray/blob/main/xarray/tests/test_backends.py#L5117

========================================================= short test summary info ========================================================== FAILED xarray/tests/test_backends.py::test_open_fsspec - AttributeError: 'bytes' object has no attribute 'items'

Outside of this PR as it on this previous PR.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  add storage_options arg to to_zarr 946543524
878400366 https://github.com/pydata/xarray/issues/5596#issuecomment-878400366 https://api.github.com/repos/pydata/xarray/issues/5596 MDEyOklzc3VlQ29tbWVudDg3ODQwMDM2Ng== raybellwaves 17162724 2021-07-12T16:01:46Z 2021-07-12T16:01:46Z CONTRIBUTOR

Closing as it works for one bucket but not another. Could be a bucket policy thing.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  permission error on writing zarr to s3 942198905
864127033 https://github.com/pydata/xarray/issues/4916#issuecomment-864127033 https://api.github.com/repos/pydata/xarray/issues/4916 MDEyOklzc3VlQ29tbWVudDg2NDEyNzAzMw== raybellwaves 17162724 2021-06-18T15:43:48Z 2021-06-18T15:43:48Z CONTRIBUTOR

Just came across some of the xr.backends.PydapDataStore stuff here: http://xarray.pydata.org/en/stable/user-guide/io.html#opendap

Haven't tested on the above example

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Feature request: add opendap/netcdf authorization to backend_kwargs in open_[mf]dataset 809630390
863373965 https://github.com/pydata/xarray/pull/5427#issuecomment-863373965 https://api.github.com/repos/pydata/xarray/issues/5427 MDEyOklzc3VlQ29tbWVudDg2MzM3Mzk2NQ== raybellwaves 17162724 2021-06-17T16:13:00Z 2021-06-17T16:13:00Z CONTRIBUTOR

FYI larger issue is open at https://github.com/pydata/xarray/issues/5082

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: zarr note on encoding 909046909
861850521 https://github.com/pydata/xarray/issues/5028#issuecomment-861850521 https://api.github.com/repos/pydata/xarray/issues/5028 MDEyOklzc3VlQ29tbWVudDg2MTg1MDUyMQ== raybellwaves 17162724 2021-06-15T21:37:15Z 2021-06-15T21:37:15Z CONTRIBUTOR

Works. Thanks @joshmoore !

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Saving zarr to remote location lower cases all data_vars 830507003
860136253 https://github.com/pydata/xarray/issues/5082#issuecomment-860136253 https://api.github.com/repos/pydata/xarray/issues/5082 MDEyOklzc3VlQ29tbWVudDg2MDEzNjI1Mw== raybellwaves 17162724 2021-06-13T01:34:00Z 2021-06-13T01:34:00Z CONTRIBUTOR

I tend to do ds["var"].encoding = {} before saving. See also https://github.com/pydata/xarray/discussions/5407

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Move encoding from xarray.Variable to duck arrays? 842438533
835499783 https://github.com/pydata/xarray/issues/5278#issuecomment-835499783 https://api.github.com/repos/pydata/xarray/issues/5278 MDEyOklzc3VlQ29tbWVudDgzNTQ5OTc4Mw== raybellwaves 17162724 2021-05-08T20:26:51Z 2021-05-08T20:26:51Z CONTRIBUTOR

FWIW. This showed up in xskillscore as we were doing np.clip(xarray object, min, min). We updated the code to do xarray object.clip(min, max) which we probably should have been doing in the first place (https://github.com/xarray-contrib/xskillscore/pull/309#issue-634256273)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DataArray.clip() no longer supports the out argument 879033384
819698070 https://github.com/pydata/xarray/issues/5160#issuecomment-819698070 https://api.github.com/repos/pydata/xarray/issues/5160 MDEyOklzc3VlQ29tbWVudDgxOTY5ODA3MA== raybellwaves 17162724 2021-04-14T17:40:46Z 2021-04-14T17:40:46Z CONTRIBUTOR

This exists in the current docs

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: add dropdown for User Guide -> Reading and Writing Files 858115471
819679226 https://github.com/pydata/xarray/issues/5150#issuecomment-819679226 https://api.github.com/repos/pydata/xarray/issues/5150 MDEyOklzc3VlQ29tbWVudDgxOTY3OTIyNg== raybellwaves 17162724 2021-04-14T17:09:52Z 2021-04-14T17:09:52Z CONTRIBUTOR

Not sure if https://github.com/conda-forge/python-eccodes-feedstock/pull/71 helps Came across this via https://github.com/ecmwf/cfgrib/issues/226

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  error with cfgrib + eccodes 856915051
790690845 https://github.com/pydata/xarray/issues/4992#issuecomment-790690845 https://api.github.com/repos/pydata/xarray/issues/4992 MDEyOklzc3VlQ29tbWVudDc5MDY5MDg0NQ== raybellwaves 17162724 2021-03-04T15:14:50Z 2021-03-04T15:14:50Z CONTRIBUTOR

Thanks. Works great. Closing.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Feature request: xr.set_option('display.max_data_vars', N) 822202759
790683253 https://github.com/pydata/xarray/issues/4992#issuecomment-790683253 https://api.github.com/repos/pydata/xarray/issues/4992 MDEyOklzc3VlQ29tbWVudDc5MDY4MzI1Mw== raybellwaves 17162724 2021-03-04T15:04:37Z 2021-03-04T15:04:37Z CONTRIBUTOR

Thanks @Illviljan. I missed that issue. Is the syntax above off slightly? Is it in the docs as well?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Feature request: xr.set_option('display.max_data_vars', N) 822202759
785399232 https://github.com/pydata/xarray/pull/4949#issuecomment-785399232 https://api.github.com/repos/pydata/xarray/issues/4949 MDEyOklzc3VlQ29tbWVudDc4NTM5OTIzMg== raybellwaves 17162724 2021-02-24T21:33:44Z 2021-02-24T21:33:44Z CONTRIBUTOR

Thanks for the FYI. Guessed it would go one way or the other.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: rm np import 815770082
779771902 https://github.com/pydata/xarray/issues/4472#issuecomment-779771902 https://api.github.com/repos/pydata/xarray/issues/4472 MDEyOklzc3VlQ29tbWVudDc3OTc3MTkwMg== raybellwaves 17162724 2021-02-16T11:20:48Z 2021-02-16T11:20:48Z CONTRIBUTOR

Works ok for me on my mac ``` conda create -n test_env python=3.8 --y conda activate test_env conda install -c conda-forge xarray cfgrib ipython wget http://download.ecmwf.int/test-data/cfgrib/era5-levels-members.grib

ipython import xarray as xr ds = xr.open_dataset('era5-levels-members.grib', engine='cfgrib') ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Segmentation fault when reading example GRIB file with xarray 711061803
779768204 https://github.com/pydata/xarray/issues/4556#issuecomment-779768204 https://api.github.com/repos/pydata/xarray/issues/4556 MDEyOklzc3VlQ29tbWVudDc3OTc2ODIwNA== raybellwaves 17162724 2021-02-16T11:13:38Z 2021-02-16T11:13:38Z CONTRIBUTOR

@skgbanga can this be closed on latest(s) xarray, zarr, fsspec, gcsfs?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  quick overview example not working with `to_zarr` function with gcs store 733201109
779556647 https://github.com/pydata/xarray/issues/4001#issuecomment-779556647 https://api.github.com/repos/pydata/xarray/issues/4001 MDEyOklzc3VlQ29tbWVudDc3OTU1NjY0Nw== raybellwaves 17162724 2021-02-16T03:26:07Z 2021-02-16T03:26:07Z CONTRIBUTOR

Any interest in adding this to docs similar to https://docs.dask.org/en/latest/support.html I'm also fine if it's purpose is just for core devs

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  [community] Bi-weekly community developers meeting 606530049
778554202 https://github.com/pydata/xarray/issues/2313#issuecomment-778554202 https://api.github.com/repos/pydata/xarray/issues/2313 MDEyOklzc3VlQ29tbWVudDc3ODU1NDIwMg== raybellwaves 17162724 2021-02-13T03:20:58Z 2021-02-13T03:20:58Z CONTRIBUTOR

Edit: Copied and pasted from a duplicate issue I opened. Closing that and moving convo here.

@jhamman's SO answer circa 2018 helped me this week https://stackoverflow.com/a/51714004/6046019

I wonder if it's worth (not sure where) providing an example of how to use preprocesses with open_mfdataset?

Add an Examples entry to the doc string? (http://xarray.pydata.org/en/latest/generated/xarray.open_mfdataset.html / https://github.com/pydata/xarray/blob/5296ed18272a856d478fbbb3d3253205508d1c2d/xarray/backends/api.py#L895)

While not a small example (as the remote files are large) this is how I used it:

``` import xarray as xr import s3fs

def preprocess(ds): return ds.expand_dims('time')

fs = s3fs.S3FileSystem(anon=True) f1 = fs.open('s3://fmi-opendata-rcrhirlam-surface-grib/2021/02/03/00/numerical-hirlam74-forecast-MaximumWind-20210203T000000Z.grb2') f2 = fs.open('s3://fmi-opendata-rcrhirlam-surface-grib/2021/02/03/06/numerical-hirlam74-forecast-MaximumWind-20210203T060000Z.grb2')

ds = xr.open_mfdataset([f1, f2], engine="cfgrib", preprocess=preprocess, parallel=True) ```

with one file looking like: xr.open_dataset("LOCAL_numerical-hirlam74-forecast-MaximumWind-20210203T000000Z.grb2", engine="cfgrib") <xarray.Dataset> Dimensions: (latitude: 947, longitude: 5294, step: 55) Coordinates: time datetime64[ns] ... * step (step) timedelta64[ns] 01:00:00 ... 2 days 07:00:00 heightAboveGround int64 ... * latitude (latitude) float64 25.65 25.72 25.78 ... 89.86 89.93 90.0 * longitude (longitude) float64 -180.0 -179.9 -179.9 ... 179.9 180.0 valid_time (step) datetime64[ns] ... Data variables: fg10 (step, latitude, longitude) float32 ... Attributes: GRIB_edition: 2 GRIB_centre: ecmf GRIB_centreDescription: European Centre for Medium-Range Weather Forecasts GRIB_subCentre: 0 Conventions: CF-1.7 institution: European Centre for Medium-Range Weather Forecasts history: 2021-02-12T18:06:52 GRIB to CDM+CF via cfgrib-0....

A smaller example could be (WIP; note I was hoping ds would concat along t but it doesn't do what I expect) ``` import numpy as np import xarray as xr

f1 = xr.DataArray(np.arange(2), coords=[np.arange(2)], dims=["a"], name="f1") f1 = f1.assign_coords(t=0) f1.to_dataset().to_zarr("f1.zarr") # What's the best way to store small files to open again with mf_dataset? csv via xarray objects? can you use open_mfdataset on pkl objects?

f2 = xr.DataArray(np.arange(2), coords=[np.arange(2)], dims=["a"], name="f2") f2 = f2.assign_coords(t=1) f2.to_dataset().to_zarr("f2.zarr")

Concat along t

def preprocess(ds): return ds.expand_dims('t') ds = xr.open_mfdataset(["f1.zarr", "f2.zarr"], engine="zarr", concat_dim="t", preprocess=preprocess)

ds <xarray.Dataset> Dimensions: (a: 2, t: 1) Coordinates: * t (t) int64 0 * a (a) int64 0 1 Data variables: f1 (t, a) int64 dask.array<chunksize=(1, 2), meta=np.ndarray> f2 (t, a) int64 dask.array<chunksize=(1, 2), meta=np.ndarray> ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Example on using `preprocess` with `mfdataset` 344614881
777706069 https://github.com/pydata/xarray/pull/4823#issuecomment-777706069 https://api.github.com/repos/pydata/xarray/issues/4823 MDEyOklzc3VlQ29tbWVudDc3NzcwNjA2OQ== raybellwaves 17162724 2021-02-11T18:42:59Z 2021-02-11T18:42:59Z CONTRIBUTOR

I think my Q on SO is related to this PR https://stackoverflow.com/questions/66145459/open-mfdataset-on-remote-zarr-store-giving-zarr-errors-groupnotfounderror

Was looking at reading a remote zarr store using open_mfdataset

@martindurant suggested putting the single "file" (mapping) in a list which works ds = xr.open_mfdataset([file], engine="zarr")

but I also wanted to test the other suggestion

ds = xr.open_mfdataset(uri, engine="zarr", backend_kwargs=dict(storage_options={'anon': True}))

On current xarray master I get Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/ray.bell/Documents/PYTHON_dev/xarray/xarray/backends/api.py", line 884, in open_mfdataset raise OSError("no files to open") OSError: no files to open

On this branch it works ``` git clone https://github.com/martindurant/xarray.git git checkout fsspec_mk2 conda create -c conda-forge -n xarray-tests python=3.8 conda env update -f ci/requirements/environment.yml conda activate xarray-tests pip install -e . pip install s3fs

import xarray as xr uri = "s3://era5-pds/zarr/2020/12/data/eastward_wind_at_10_metres.zarr" ds = xr.open_mfdataset(uri, engine="zarr", backend_kwargs=dict(storage_options={'anon': True})) ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Allow fsspec URLs in open_(mf)dataset 788398518
745343820 https://github.com/pydata/xarray/pull/4645#issuecomment-745343820 https://api.github.com/repos/pydata/xarray/issues/4645 MDEyOklzc3VlQ29tbWVudDc0NTM0MzgyMA== raybellwaves 17162724 2020-12-15T14:53:09Z 2020-12-15T14:53:09Z CONTRIBUTOR

Not sure if I can do anything for the doctest failing https://dev.azure.com/xarray/xarray/_build/results?buildId=4491&view=logs&j=e1da92ae-4a54-5c20-3ee1-ef7b06ffcd80&t=5640f7da-bb07-517b-ec85-0b3cfe0ccaa3&l=62 - * y (y) int32 10 20 30 + * y (y) int64 10 20 30

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: add examples to concat 755626157
744708979 https://github.com/pydata/xarray/pull/4645#issuecomment-744708979 https://api.github.com/repos/pydata/xarray/issues/4645 MDEyOklzc3VlQ29tbWVudDc0NDcwODk3OQ== raybellwaves 17162724 2020-12-14T21:03:23Z 2020-12-14T21:03:23Z CONTRIBUTOR

I can add to the Whats-new. Not sure how to "update of the doctest output"

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: add examples to concat 755626157
744662895 https://github.com/pydata/xarray/pull/4645#issuecomment-744662895 https://api.github.com/repos/pydata/xarray/issues/4645 MDEyOklzc3VlQ29tbWVudDc0NDY2Mjg5NQ== raybellwaves 17162724 2020-12-14T19:34:48Z 2020-12-14T19:34:48Z CONTRIBUTOR

More than welcome to push to mine.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: add examples to concat 755626157
744504122 https://github.com/pydata/xarray/pull/4645#issuecomment-744504122 https://api.github.com/repos/pydata/xarray/issues/4645 MDEyOklzc3VlQ29tbWVudDc0NDUwNDEyMg== raybellwaves 17162724 2020-12-14T15:09:41Z 2020-12-14T15:09:41Z CONTRIBUTOR

I would also run pre-commit run --files doc/combining.rst xarray/core/concat.py once, but that's optional.

I'm doing this PR in my windows machine unfortunately, and pre-commit is a pain on windows. Hopefully it's fine as is.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: add examples to concat 755626157
737616528 https://github.com/pydata/xarray/pull/4645#issuecomment-737616528 https://api.github.com/repos/pydata/xarray/issues/4645 MDEyOklzc3VlQ29tbWVudDczNzYxNjUyOA== raybellwaves 17162724 2020-12-03T02:16:43Z 2020-12-03T02:16:43Z CONTRIBUTOR

Thanks for the feedback.

It was a copy-paste from http://xarray.pydata.org/en/stable/combining.html#concatenate

I'll implement your suggestions in https://github.com/pydata/xarray/blob/master/doc/combining.rst as well.

i.e. use arange for the creation and isel for the index.

{
    "total_count": 2,
    "+1": 1,
    "-1": 0,
    "laugh": 1,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: add examples to concat 755626157
731743767 https://github.com/pydata/xarray/issues/4598#issuecomment-731743767 https://api.github.com/repos/pydata/xarray/issues/4598 MDEyOklzc3VlQ29tbWVudDczMTc0Mzc2Nw== raybellwaves 17162724 2020-11-22T12:54:18Z 2020-11-22T12:54:18Z CONTRIBUTOR

Why not pandas.date_range

Good point. Given the "normal" spacing of the data that makes sense.

The problematic variable in this dataset is "tau"

Ah thanks for the digging into this for me.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Calling pd.to_datetime on cftime variable 748229907
731741542 https://github.com/pydata/xarray/issues/4598#issuecomment-731741542 https://api.github.com/repos/pydata/xarray/issues/4598 MDEyOklzc3VlQ29tbWVudDczMTc0MTU0Mg== raybellwaves 17162724 2020-11-22T12:37:15Z 2020-11-22T12:37:15Z CONTRIBUTOR

Which functionality are you looking for in xarray that pandas Timestamp objects provide, but cftime objects do not?

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.tz_localize.html

For a bit more reference. I'm working with HyCOM data and want to keep track of 'local time'.

ds = xr.open_dataset('https://tds.hycom.org/thredds/dodsC/GLBy0.08/latest', decode_times=False) reference_date = ds.time.attrs['units'][12:25] ds['time'] = xr.cftime_range(start=reference_date, periods=len(ds.time), freq='3H')

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Calling pd.to_datetime on cftime variable 748229907
645117109 https://github.com/pydata/xarray/pull/4162#issuecomment-645117109 https://api.github.com/repos/pydata/xarray/issues/4162 MDEyOklzc3VlQ29tbWVudDY0NTExNzEwOQ== raybellwaves 17162724 2020-06-17T02:56:51Z 2020-06-17T02:57:03Z CONTRIBUTOR

Tested the docs build:

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: drop eccodes in docs 640100500
643557200 https://github.com/pydata/xarray/issues/4151#issuecomment-643557200 https://api.github.com/repos/pydata/xarray/issues/4151 MDEyOklzc3VlQ29tbWVudDY0MzU1NzIwMA== raybellwaves 17162724 2020-06-13T02:41:35Z 2020-06-13T02:41:35Z CONTRIBUTOR

Looks as though it does

``` ray@ray-MS-7B43:~$ conda install -c conda-forge cfgrib Collecting package metadata (current_repodata.json): done Solving environment: done

Package Plan

environment location: /home/ray/local/bin/anaconda3/envs/rcclwx-dev

added / updated specs: - cfgrib

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
cffi-1.14.0                |   py38he30daa8_1         225 KB
cfgrib-0.9.8.2             |             py_0          42 KB  conda-forge
eccodes-2.17.0             |       hf05d9b7_2         3.9 MB  conda-forge
------------------------------------------------------------
                                       Total:         4.2 MB

The following NEW packages will be INSTALLED:

attrs conda-forge/noarch::attrs-19.3.0-py_0 cffi pkgs/main/linux-64::cffi-1.14.0-py38he30daa8_1 cfgrib conda-forge/noarch::cfgrib-0.9.8.2-py_0 eccodes conda-forge/linux-64::eccodes-2.17.0-hf05d9b7_2 jasper conda-forge/linux-64::jasper-1.900.1-h07fcdf6_1006 libaec conda-forge/linux-64::libaec-1.0.4-he1b5a44_1 pycparser conda-forge/noarch::pycparser-2.20-py_0 ```

May be able to drop the suggestion of installing eccodes from the docs.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  doc: reading via cfgrib 638080883
604567657 https://github.com/pydata/xarray/issues/3895#issuecomment-604567657 https://api.github.com/repos/pydata/xarray/issues/3895 MDEyOklzc3VlQ29tbWVudDYwNDU2NzY1Nw== raybellwaves 17162724 2020-03-26T17:29:58Z 2020-03-26T17:29:58Z CONTRIBUTOR

Sure. Can update the docs. but won't be able to for a week or so.

Curious is there is much/any difference? is worth deprecating and pointing maintenance/development to the pandas version instead?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  xarray.Dataset.from_dataframe link to pandas.DataFrame.to_xarray 588118015
596526154 https://github.com/pydata/xarray/pull/3849#issuecomment-596526154 https://api.github.com/repos/pydata/xarray/issues/3849 MDEyOklzc3VlQ29tbWVudDU5NjUyNjE1NA== raybellwaves 17162724 2020-03-09T13:33:18Z 2020-03-09T13:33:18Z CONTRIBUTOR

LGTM

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  update installation instruction 577830239
581203038 https://github.com/pydata/xarray/issues/3742#issuecomment-581203038 https://api.github.com/repos/pydata/xarray/issues/3742 MDEyOklzc3VlQ29tbWVudDU4MTIwMzAzOA== raybellwaves 17162724 2020-02-03T01:29:10Z 2020-02-03T01:29:10Z CONTRIBUTOR

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  GRIB Data Example notebook - dataset not found 558742452
408230809 https://github.com/pydata/xarray/pull/2312#issuecomment-408230809 https://api.github.com/repos/pydata/xarray/issues/2312 MDEyOklzc3VlQ29tbWVudDQwODIzMDgwOQ== raybellwaves 17162724 2018-07-26T20:50:22Z 2018-07-26T20:50:22Z CONTRIBUTOR

@fujiisoup I would like to add another example on how to update a DataArray with the interpolated data. I looked in http://xarray.pydata.org/en/stable/combining.html but couldn't work out how best to do it.

I tried using merge but it requires the DataArray's to be named.

I used concat in this example but it is not correct as I would like the coordinates to be in order (in-place may be the right word).

``` import xarray as xr import pandas as pd import numpy as np

da_dt64 = xr.DataArray([1, 3], [('time', pd.date_range('1/1/2000', '1/3/2000', periods=2))]) a = da_dt64.interp(time=np.datetime64('2000-01-02')) xr.concat([da_dt64, a], dim='time')

<xarray.DataArray (time: 3)>

array([ 1., 3., 2.])

Coordinates:

* time (time) datetime64[ns] 2000-01-01 2000-01-03 2000-01-02

```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: add interp example 344608441
392228821 https://github.com/pydata/xarray/pull/2011#issuecomment-392228821 https://api.github.com/repos/pydata/xarray/issues/2011 MDEyOklzc3VlQ29tbWVudDM5MjIyODgyMQ== raybellwaves 17162724 2018-05-26T02:22:07Z 2018-05-26T14:32:19Z CONTRIBUTOR

I may pick up this PR but will need some hand holding as i'm not familiar with dask.

I want to make sure I can do periodic rolling with dask in a simple script first but it needs work: https://gist.github.com/raybellwaves/621faaf195c0f4ed010b7b0dfee8605a

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  rolling: periodic 308039063
392070454 https://github.com/pydata/xarray/issues/2007#issuecomment-392070454 https://api.github.com/repos/pydata/xarray/issues/2007 MDEyOklzc3VlQ29tbWVudDM5MjA3MDQ1NA== raybellwaves 17162724 2018-05-25T14:11:20Z 2018-05-25T14:11:20Z CONTRIBUTOR

I was going to suggest this feature so glad others are interested.

In my use case I would like to smooth a daily climatology. My colleague uses matlab and uses https://www.mathworks.com/matlabcentral/fileexchange/52688-nan-tolerant-fast-smooth

Using the slice solution as @mathause showed above, it would look something like (using code from http://xarray.pydata.org/en/stable/examples/weather-data.html#toy-weather-data)

``` import numpy as np import pandas as pd import xarray as xr

times = pd.date_range('2000-01-01', '2010-12-31', name='time') annual_cycle = np.sin(2 * np.pi * (times.dayofyear.values / 366 - 0.28)) noise = 15 * np.random.rand(annual_cycle.size) data = 10 + (15 * annual_cycle) + noise da = xr.DataArray(data, coords=[times], dims='time')

da.plot()

Check variability at one day

da.groupby('time.dayofyear').std('time')[0]

da_clim = da.groupby('time.dayofyear').mean('time') _da_clim = xr.concat([da_clim[-15:], da_clim, da_clim[:15]], 'dayofyear') da_clim_smooth = _da_clim.rolling(dayofyear=31, center=True).mean().dropna('dayofyear')

da_clim_smooth.plot()

```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  rolling: allow control over padding 307783090
388592534 https://github.com/pydata/xarray/pull/2122#issuecomment-388592534 https://api.github.com/repos/pydata/xarray/issues/2122 MDEyOklzc3VlQ29tbWVudDM4ODU5MjUzNA== raybellwaves 17162724 2018-05-13T00:27:55Z 2018-05-13T00:27:55Z CONTRIBUTOR

Thanks for the quick fix @fujiisoup !

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fixes centerized rolling with bottleneck 322475569
388489805 https://github.com/pydata/xarray/issues/2113#issuecomment-388489805 https://api.github.com/repos/pydata/xarray/issues/2113 MDEyOklzc3VlQ29tbWVudDM4ODQ4OTgwNQ== raybellwaves 17162724 2018-05-11T21:25:32Z 2018-05-11T21:25:50Z CONTRIBUTOR

I realized there with an issue before that in without center=True it doesn't raise an issue but it returns rubbish:

``` import xarray as xr import numpy as np

a = xr.DataArray(np.arange(1,4), coords=[np.arange(1,4)], dims='x') print(a.rolling(x=3, center=True).mean()) Out[2]: <xarray.DataArray (x: 3)> array([ nan, 2., nan]) Coordinates: * x (x) int64 1 2 3 print(a.chunk().rolling(x=3).mean().values) Out[3]: array([ -6.14891469e+18, -9.22337204e+18, -1.22978294e+19]) ```

The culprit lies in a dask function https://github.com/pydata/xarray/blob/6d8ac11ca0a785a6fe176eeca9b735c321a35527/xarray/core/dask_array_ops.py#L24

Not sure if this is an issue with the function or the way the data is going into the function.

For the center=True issue: https://github.com/pydata/xarray/blob/6d8ac11ca0a785a6fe176eeca9b735c321a35527/xarray/core/rolling.py#L308 is slicing the data.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Rolling mean of dask array conflicting sizes for data and coordinate in rolling operation 321917084
388042273 https://github.com/pydata/xarray/issues/2113#issuecomment-388042273 https://api.github.com/repos/pydata/xarray/issues/2113 MDEyOklzc3VlQ29tbWVudDM4ODA0MjI3Mw== raybellwaves 17162724 2018-05-10T12:43:18Z 2018-05-10T12:43:18Z CONTRIBUTOR

Probably isn't a good first issue but I wouldn't like to spend some time on this. Welcome to suggest places to look and things to try.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Rolling mean of dask array conflicting sizes for data and coordinate in rolling operation 321917084
387213362 https://github.com/pydata/xarray/pull/2101#issuecomment-387213362 https://api.github.com/repos/pydata/xarray/issues/2101 MDEyOklzc3VlQ29tbWVudDM4NzIxMzM2Mg== raybellwaves 17162724 2018-05-07T21:32:52Z 2018-05-07T21:33:30Z CONTRIBUTOR

Snuck in an .assign_coords() example. I often use climate data which has longitude values 0-359. I then may subset the data crossing the meridian. Making the longitude values from -180 - 180 allows an easy look at the data using .plot(). My example is based on the example here: https://gis.stackexchange.com/questions/205871/xarray-slicing-across-the-antimeridian

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: Add resample e.g. Edit rolling e.g. Add groupby e.g. 319985789
386774202 https://github.com/pydata/xarray/pull/2101#issuecomment-386774202 https://api.github.com/repos/pydata/xarray/issues/2101 MDEyOklzc3VlQ29tbWVudDM4Njc3NDIwMg== raybellwaves 17162724 2018-05-05T02:54:50Z 2018-05-05T02:54:50Z CONTRIBUTOR

Closes https://github.com/pydata/xarray/issues/2102

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: Add resample e.g. Edit rolling e.g. Add groupby e.g. 319985789
386377973 https://github.com/pydata/xarray/pull/2101#issuecomment-386377973 https://api.github.com/repos/pydata/xarray/issues/2101 MDEyOklzc3VlQ29tbWVudDM4NjM3Nzk3Mw== raybellwaves 17162724 2018-05-03T17:42:43Z 2018-05-03T17:42:43Z CONTRIBUTOR

For rolling I just realized there is good section in the docs on the use of .construct() and .reduce(). Perhaps in the docstring of rolling I can point to http://xarray.pydata.org/en/stable/computation.html#rolling-window-operations although not sure where this would go in the docstring? Examples? See Also?

I opened up an issue on resample to use the new syntax with an n-d array. Once That's squared up i'll drop the 2-d example with the old syntax https://github.com/pydata/xarray/issues/2102

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: Add resample e.g. Edit rolling e.g. Add groupby e.g. 319985789
368119007 https://github.com/pydata/xarray/pull/1934#issuecomment-368119007 https://api.github.com/repos/pydata/xarray/issues/1934 MDEyOklzc3VlQ29tbWVudDM2ODExOTAwNw== raybellwaves 17162724 2018-02-23T19:45:57Z 2018-02-23T19:46:08Z CONTRIBUTOR

@fmaussion Agreed. Changed the URLs to link to the latest version of the online docs.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: Add contributing section in README.rst and README.rst in doc/ 299210082
365829483 https://github.com/pydata/xarray/pull/1911#issuecomment-365829483 https://api.github.com/repos/pydata/xarray/issues/1911 MDEyOklzc3VlQ29tbWVudDM2NTgyOTQ4Mw== raybellwaves 17162724 2018-02-15T05:29:28Z 2018-02-15T05:29:38Z CONTRIBUTOR

Apologies. Closing. I thought it was a rouge line as it was not declared to a variable and I couldn't see that it was being using anywhere. But I was not familiar with np.random.seed but I am now.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: Removed a line in setting up toy weather data 297331231
355881144 https://github.com/pydata/xarray/issues/1789#issuecomment-355881144 https://api.github.com/repos/pydata/xarray/issues/1789 MDEyOklzc3VlQ29tbWVudDM1NTg4MTE0NA== raybellwaves 17162724 2018-01-08T04:06:31Z 2018-01-08T04:06:31Z CONTRIBUTOR

I started to have a look at this.

I needed to install rasterio to build the docs but unfortunately the conda installation isn't working (see https://github.com/conda-forge/rasterio-feedstock/issues/53) nor is the pip installation (see https://github.com/mapbox/rasterio/issues/1244).

Anyone who uses a Mac and mostly installs via conda have any advice installing rasterio?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Broken link to github on ReadTheDocs  282916278
355793319 https://github.com/pydata/xarray/issues/1809#issuecomment-355793319 https://api.github.com/repos/pydata/xarray/issues/1809 MDEyOklzc3VlQ29tbWVudDM1NTc5MzMxOQ== raybellwaves 17162724 2018-01-07T02:05:18Z 2018-01-07T02:05:18Z CONTRIBUTOR

Would you mind printing md first to show what it looks like?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  WRF output : cannot serialize variable 286072335
350416928 https://github.com/pydata/xarray/pull/1758#issuecomment-350416928 https://api.github.com/repos/pydata/xarray/issues/1758 MDEyOklzc3VlQ29tbWVudDM1MDQxNjkyOA== raybellwaves 17162724 2017-12-09T02:23:21Z 2017-12-09T02:23:21Z CONTRIBUTOR

Apologies. Should have had a better looked at how open_dataset was laid out. Thanks for baring with me

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: Added parameter list to open_dataarray 279141739
349175571 https://github.com/pydata/xarray/issues/1757#issuecomment-349175571 https://api.github.com/repos/pydata/xarray/issues/1757 MDEyOklzc3VlQ29tbWVudDM0OTE3NTU3MQ== raybellwaves 17162724 2017-12-05T02:31:56Z 2017-12-07T03:23:51Z CONTRIBUTOR

@jhamman it was just a quick comparison with the docs online

see http://xarray.pydata.org/en/stable/generated/xarray.open_dataset.html vs http://xarray.pydata.org/en/stable/generated/xarray.open_dataarray.html

The stickler in me wants to ensure the docs are the same for both functions (i.e. list the inputs are the same) between open_dataset and open_dataarray. I thought it was just a 2 second copy and paste fix but my PR, but it's failing so i'll take another look.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  open_dataarray docs still contains *args, **kwargs 278743801
331030361 https://github.com/pydata/xarray/pull/1574#issuecomment-331030361 https://api.github.com/repos/pydata/xarray/issues/1574 MDEyOklzc3VlQ29tbWVudDMzMTAzMDM2MQ== raybellwaves 17162724 2017-09-21T02:07:13Z 2017-09-21T02:07:13Z CONTRIBUTOR

No problem. Feel free to add 'novice' labels to any issues that require grunt work (such as documentation) and i'll be happy to have a stab at them to get more familiar with xarray

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: Added examples to rolling.py 258267613
330626593 https://github.com/pydata/xarray/pull/1574#issuecomment-330626593 https://api.github.com/repos/pydata/xarray/issues/1574 MDEyOklzc3VlQ29tbWVudDMzMDYyNjU5Mw== raybellwaves 17162724 2017-09-19T18:18:47Z 2017-09-19T18:18:47Z CONTRIBUTOR

Thanks for your help with this. Agree with all of your suggestions.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: Added examples to rolling.py 258267613
297047068 https://github.com/pydata/xarray/issues/1381#issuecomment-297047068 https://api.github.com/repos/pydata/xarray/issues/1381 MDEyOklzc3VlQ29tbWVudDI5NzA0NzA2OA== raybellwaves 17162724 2017-04-25T14:25:30Z 2017-04-25T14:25:30Z CONTRIBUTOR

For the HPC I used pip install numpy scipy netCDF4 xarray Yes this is linux.

For my laptop I used conda install xarray This is a MacBook Pro

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  xr.where not picking up nan from another NetCDF file 223610210
296781813 https://github.com/pydata/xarray/issues/1381#issuecomment-296781813 https://api.github.com/repos/pydata/xarray/issues/1381 MDEyOklzc3VlQ29tbWVudDI5Njc4MTgxMw== raybellwaves 17162724 2017-04-24T18:27:52Z 2017-04-24T18:28:28Z CONTRIBUTOR

@shoyer thanks for looking into this.

Firstly, I updated the hs netCDF file as it was a different size then expected: (1, 82, 131) instead of (1, 81, 131). I've corrected this now but I am still getting an error message.

I've added the version numbers and outputs to https://github.com/raybellwaves/xarray_issue/blob/master/xr_where_issue.py

I have two setups. I run my model experiments and do most of my analysis on a HPC. However, I do most of my plotting on my laptop for ease of viewing. To help me debug this i've run the code on both setups (which each have different python version etc.) but a priority is the more up to date HPC python version. I've including the output from both though.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  xr.where not picking up nan from another NetCDF file 223610210

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 26.285ms · About: xarray-datasette