Distortion and weird artefacts using polar stereographic projection
@sadielbartholomew ci sta già lavorando.
Dal 11/7/2024.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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)
- Lingua principale
- Python
- Stelle
- 21
- Fork
- 11
- Merge medio
- 7h 11m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NCAS-CMS/cf-plot
-
testing
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
-
Add `AGENTS.md` fileApertadocs enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 64/100
-
Add animation hooks into cf-plotForse di nuovo libera @bnlawrence l’ha presa 97 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement
-
Ugly nemo plotting issueApertabug v35plus
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
Tutte le issue di NCAS-CMS/cf-plot
Issue simili
-
defect from-review v0.9.2
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
khuisman/mcp-gee-sweet#926 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 84/100
EtanHey/brainlayer#1164 ·
I maintainer di solito rispondono entro 1 giorno
-
bug security
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
yunaremaia/vibeguard#141 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
PrismorSec/prismor#599 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
iii-hq/iii#2278 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno