Skip to content

pcolormesh -> contourf switch - #140

Draft
embell139 wants to merge 6 commits into
mainfrom
embell-contour
Draft

pcolormesh -> contourf switch#140
embell139 wants to merge 6 commits into
mainfrom
embell-contour

Conversation

@embell139

Copy link
Copy Markdown
Collaborator

Updating product scripts to output contour plots instead of pcolormesh (filled grids).

@embell139

Copy link
Copy Markdown
Collaborator Author

Also adding products' colorbars to wxvis registry as I go

@embell139

Copy link
Copy Markdown
Collaborator Author

@GEOS-ESM/earthnow-team - the weird "pixelated" effect I'm getting. first, here's fine detail of using pcolormesh where you seem to see grid boxes:
Screenshot 2026-08-04 at 1 26 03 PM

using contourf is almost identical:
Screenshot 2026-08-04 at 1 26 16 PM

@embell139

embell139 commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator Author

Looking at Bill's IDL code for T2M, he uses the contour function with /CELL_FILL keyword, which is actually equivalent to python's pcolormesh. Reverting to that, although my testing of python's contourf was informative.

Checking all products:

  • T2M:
    • contour with /CELL_FILL -> python pcolormesh
  • Accumulated precip (rain & snow):
    • contour with /CELL_FILL -> python pcolormesh
  • Near surface winds:
    • contour with /CELL_FILL -> python pcolormesh
  • CAPE:
    • contour with /CELL_FILL -> python pcolormesh
  • 2-5km Helicity & Radar Reflectivity:
    • radar: functions called image_bytscl, create_image_object -> python pcolormesh, essentially.
    • helicity: contour with /CELL_FILL -> python pcolormesh
  • AOT:
    • functions called image_bytscl, create_image_object -> python pcolormesh, essentially.
  • Carbon AOT:
    • functions called image_bytscl, create_image_object -> python pcolormesh, essentially.
  • 500mb Vorticity & Heights:
    • vorticity: functions BYTSCL and create_image_object -> python pcolormesh, essentially.
    • heights: contour with /NORMAL -> python contour with transform = ax.transAxes
  • 250mb Wind Speed & SLP:
    • wind speed: BYTSCL and create_image_object -> python pcolormesh, essentially.
    • SLP: contour with /NORMAL -> python contour with transform = ax.transAxes

@embell139 embell139 changed the title pcolormesh -> countourf switch pcolormesh -> contourf switch Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add all products' color tables to wxvis colors Update previous products to use contour plots

1 participant