issues: 223440405
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
223440405 | MDU6SXNzdWUyMjM0NDA0MDU= | 1380 | open_mfdataset and add time dimension | 8699967 | closed | 0 | 3 | 2017-04-21T16:56:35Z | 2017-04-21T19:44:00Z | 2017-04-21T18:49:57Z | CONTRIBUTOR | I am working with the Grib2 format and the time is buried in the attributes of the variables: ```python import pandas as pd import xarray as xr path_to_file = 'hrrr.t01z.wrfsfcf00.grib2' with xr.open_dataset(path_to_file, engine='pynio') as xd: print(pd.to_datetime(xd['TMP_P0_L1_GLC0'].attrs['initial_time'], format="%m/%d/%Y (%H:%M)")) ``` I would like to take advantage of how to use the concatenation methods here: http://xarray.pydata.org/en/stable/io.html#id6 However, there is currently no time dimension. Is there a way to concatenate the files together while adding a new time dimension and variable? Will this use dask arrays? |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1380/reactions", "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |