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
- 平均合併
- 1 天 2 小時
- 30 天內合併 PR
- 1
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
NCAS-CMS/cf-python 的其他 Issue
-
installation
難度 4/5 3-5 天 新手友好度 45/100
-
Attempt at unsupported conservative 3D mesh regridding可能重新可做 @sadielbartholomew 於 43 天前認領,目前沒有進行中的 PR。 未關閉bug?
-
bug
難度 3/5 1-2 天 新手友好度 45/100
-
API review (4.0.0) documentation
難度 4/5 3-5 天 新手友好度 48/100
-
enhancement xarray
難度 4/5 3-5 天 新手友好度 48/100
查看 NCAS-CMS/cf-python 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
namespace operations
難度 1/5 1 小時以內 新手友好度 72/100
EclipseFdn/open-vsx.org#14623 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
developmentseed/titiler-cmr#261 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
andrewyng/openworker#774 ·
維護者通常 1 天內回覆
-
aggfunc未關閉
難度 2/5 1-3 小時 新手友好度 68/100
worldbank/blackmarblepy#160 ·