Unexpected behaviour comparing two views of the same data: pp and netcdf
还没有人认领这个 Issue。
评估
调研方向
使用 cf-python 3.16.2 重现 issue 中描述的 PP-to-NetCDF 往返过程,然后比较两次读取返回的字段标识。调查不同的 long_name 和 UM 标识符是否应在往返过程中保持一致;当行为得到解决或其预期语义得到明确确立时完成。
由索引模型根据 Issue 内容生成。
描述
Usecase: I read some pp data, and look at what I have. I then write the same data out to netcdf, and read it back in. I expect the list of cf-fields to be identical. But they are not.
ff=cf.read('myfile.pp`)
ff
[<CF Field: geopotential_height(time(40), air_pressure(9), latitude(1921), longitude(2560)) m>,
<CF Field: id%UM_m01s30i301_vn1106(time(40), air_pressure(6), latitude(1921), longitude(2560))>,
<CF Field: id%UM_m01s30i407_vn1106(time(40), latitude(1920), longitude(2560))>,
<CF Field: id%UM_m01s30i408_vn1106(time(40), latitude(1920), longitude(2560))>]
compare with the same operation aftrer writing that list of fields out to a netcdf file
ff=cf.read('myfile.nc')
ff
[<CF Field: geopotential_height(time(40), air_pressure(9), latitude(1921), longitude(2560)) m>,
<CF Field: long_name=HEAVYSIDE FN ON P LEV/UV GRID(time(40), air_pressure(6), latitude(1921), longitude(2560))>,
<CF Field: long_name=TOTAL MOISTURE FLUX U RHO GRID(time(40), latitude(1920), longitude(2560))>,
<CF Field: long_name=TOTAL MOISTURE FLUX V RHO GRID(time(40), latitude(1920), longitude(2560))>]
This is cf.__version__ = 3.16.2
From my point of view the file format should not affect the logical view of the contents. I understand there may be some historical reasons for this behaviour, but maybe they should be reviewed.
- 主要语言
- Python
- 星标
- 151
- 派生
- 23
- 平均合并
- 23 小时 56 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NCAS-CMS/cf-python 的其他 Issue
-
Remove abandoned `cf.etc` directory可能已有人在做 @sadielbartholomew 于 30 天前认领。 未关闭code tidy
难度 2/5 1-3 小时 新手友好度 76/100
-
installation
难度 4/5 3-5 天 新手友好度 45/100
-
Attempt at unsupported conservative 3D mesh regridding可能已有人在做 @sadielbartholomew 于 27 天前认领。 未关闭bug?
-
Release: migrate from deprecated build command可能已有人在做 @sadielbartholomew 于 30 天前认领。 未关闭release
-
Remove support for Python 3.10 (EOL)可能已有人在做 @sadielbartholomew 于 30 天前认领。 未关闭enhancement
查看 NCAS-CMS/cf-python 的全部 Issue
相似的 Issue
-
changelog investigate
难度 2/5 1-3 小时 新手友好度 62/100
ramnes/notion-sdk-py#409 ·
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 72/100
lindicaphxag-tech/kaggle#28 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
BSData/horus-heresy-3rd-edition#3211 ·
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
Unreachable-proxy mount test depends on fixed port 9999可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug tests
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复