Unexpected behaviour comparing two views of the same data: pp and netcdf
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Reproduce el round trip de PP-to-NetCDF descrito en el issue con cf-python 3.16.2 y, a continuación, compara las identidades de los campos devueltas por las dos lecturas. Investiga si los distintos identificadores long_name y UM deberían conservarse de forma coherente en el round trip; se considerará terminado cuando el comportamiento se haya resuelto o se haya establecido claramente su semántica esperada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 150
- Forks
- 23
- Merge medio
- 21 h 29 min
- PR fusionados (30 d)
- 1
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de NCAS-CMS/cf-python
-
code tidy
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Attempt at unsupported conservative 3D mesh regriddingPosiblemente ocupada @sadielbartholomew la tomó hace 19 días. Abiertobug?
-
Release: migrate from deprecated build commandPosiblemente ocupada @sadielbartholomew la tomó hace 22 días. Abiertorelease
-
Remove support for Python 3.10 (EOL)Posiblemente ocupada @sadielbartholomew la tomó hace 22 días. Abiertoenhancement
-
error from netCDF in cf.writeAbiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
Todos los issues de NCAS-CMS/cf-python
Issues similares
-
customer-reported
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Azure/azure-cli#34150 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
community-request
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
NVIDIA-NeMo/Curator#2464 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
weblate-discover crashes with an unhandled FileNotFoundError when the directory does not existAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
WeblateOrg/translation-finder#1099 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
trezor/trezor-firmware#7997 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día