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

Plotting 1D vector output

Status
Not open for further replies.

James King

James King
Member
Hi all,

I have some CLM5 fields which have been output per PFT. These are stored as 1d vectors (with a time dimension, so the shape is (time,pft)). To plot the results, I need to reshape the data into something like (lon, lat, pft, time). I can see that the variables pfts1d_ixy and pfts1d_jxy correspond to the lon and lat values, and that pfts_itype_veg contains pft info, but how do I get from there to something I can actually plot?

Cheers,

James
 
Status
Not open for further replies.
Top