item assignment
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
No files or tests are named. Start by reproducing the xarray example and inspect the CFDatasetAccessor entry point and its current item-access behavior. Done should mean that the shown ds.cf["time"] assignment accepts the converted time values without the TypeError.
Written by the indexing model from the issue text.
Description
Couldn't see an issue open for this. It may also not be in the roadmap.
import xarray as xr
ds = xr.open_zarr("s3://era5-pds/zarr/2021/01/data/air_temperature_at_2_metres.zarr").isel(lat=0, lon=0)
# coord named time0 with standard_name: time
# want to change time to be in a local timezone
# in xarray
ds["time0"] = ds["time0"].to_index().tz_localize("UTC").tz_convert("US/Eastern").tz_localize(None).to_numpy())
# feature request in cf xarray
ds.cf["time"] = ds.cf["time"].to_index().tz_localize("UTC").tz_convert("US/Eastern").tz_localize(None).to_numpy())
TypeError: 'CFDatasetAccessor' object does not support item assignment
- Dominant language
- Python
- Stars
- 181
- Forks
- 49
- Avg merge
- 43m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from xarray-contrib/cf-xarray
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
xarray-contrib/cf-xarray#623 ·
-
Consider adding opt-in support for circular axes when calling `bounds_to_vertices` (related to #594) Open
Difficulty 5/5 Over a week Newbie friendliness 38/100
xarray-contrib/cf-xarray#596 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
xarray-contrib/cf-xarray#570 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 15/100
xarray-contrib/cf-xarray#568 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
xarray-contrib/cf-xarray#566 · 2 comments ·
All issues in xarray-contrib/cf-xarray
Similar issues
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100