Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Question about visualization for unstructured grid data

lfu

Dylan Fu
New Member
Hi,

I created a global-scale case using the following command:
./create_newcase --case ~/global_simulation/I2000_CTSM_global_b2_spinup --res f09_g17 --compset I2000Clm50BgcCrop --project UCHU0001 --run-unsupported

In the grid-level output (e.g., the GPP variable with 2D dimensions: time and gridcells), I noticed that the number of gridcells does not match lat × lon, which suggests it might be an unstructured grid format. As a result, I cannot directly plot the data using the contourf function in Python.

I assume this is a common issue. What methods do you use to solve it and visualize these variables? Do you have an example code snippet that could help?

Looking forward to your insights.
Thank you.
 

slevis

Moderator
Staff member
When I look at one of my own f09 cases, I see 2D output (lat x lon). This makes me suspect that you may have set hist_dov2xy to .false. in the namelist. If you want 2D output, change this to .true.
 
Top