Distortion and weird artefacts using polar stereographic projection
@sadielbartholomew ya está trabajando en esto.
Desde el 11/7/2024.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
A user has notified us that contour plots using the south polar stereographic projection (proj="spstere") are distorted in that they are not showing the data correctly, for example in shape and with weird line artefacts appearing in the data displayed across the plots, too - see the example below. They have evidenced that using Python 2 and our final Python 2 version of cf-plot, 2.4.10, everything looks as it should, so something at least has broken either during the migration 2->3 or since then, in this respect.
Though I have only observed this for the south polar case, given the symmetry in the code between these, I suspect the north polar case will suffer from these issues also, but I am yet to test this.
Example
Minimal reproducer
f = cf.read("<filename in question>.nc")
g = f[0][:,0,:,:].squeeze()
cfp.con(g, lines=False) # see A output
cfp.mapset(proj='spstere', boundinglat=-60)
cfp.con(g, lines=False) # see B output
cfp.mapset(proj='spstere')
cfp.con(g, lines=False) # see C output
A, looks as it should
B, some flecks on the data
C, flecks as above plus line artefacts
User images
Some further plots with code similar to the above showing the distortion in shape (note these aren't directly comparable i.e. showing the exact same thing, since the Python 2 case is - going from the title of the plot - from a seasonal mean of the same data):
Working case (Python 2, cf-plot 2.4.10 and cf-python 2.3.2)
Broken case (Python 3, cf-plot 3.3.0 and cf-python 3.13.1)
- Lenguaje dominante
- Python
- Estrellas
- 21
- Forks
- 11
- Merge medio
- 7 h 11 min
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
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-plot
-
testing
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
-
Add `AGENTS.md` fileAbiertodocs enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 64/100
-
Add animation hooks into cf-plotQuizá libre de nuevo @bnlawrence la tomó hace 98 días y no hay ningún pull request abierto. Abiertoenhancement
-
Ugly nemo plotting issueAbiertobug v35plus
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Todos los issues de NCAS-CMS/cf-plot
Issues similares
-
changelog investigate
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
ramnes/notion-sdk-py#409 ·
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
lindicaphxag-tech/kaggle#28 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
BSData/horus-heresy-3rd-edition#3211 ·
Los mantenedores suelen responder en 1 día
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Unreachable-proxy mount test depends on fixed port 9999Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día