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

How to output patch-level variables by PFT with lat/lon for global maps in CLM5?

MikeYuan

tfYuan
Member
Hi,

I am working with CLM5(Compset:I2000Clm50BgcCrop) and I have a patch-level variable that I would like to analyze by different Plant Functional Types (PFTs). Specifically, I would like to:
  1. Output this variable separately for each PFT (rather than aggregated at the patch or gridcell level).
  2. Include the corresponding latitude and longitude information, so that the values can be mapped spatially.
  3. Finally, produce global distribution maps of this variable for all PFTs
I am wondering: What is the most efficient way to output patch-level variables by PFT in CLM5? If I want the final product to be a global map of the variable separated by PFTs, should I do this at the model output stage, or is it better to postprocess patch-level outputs into PFT-specific distributions?

Any guidance, example scripts, or references would be greatly appreciated.
Thanks in advance!
 

slevis

Moderator
Staff member
The model does not have a built-in way of outputting by pft, so your best bet is to output by patch and postprocess the output as you suggested.
 
Vote Upvote 0 Downvote

MikeYuan

tfYuan
Member
The model does not have a built-in way of outputting by pft, so your best bet is to output by patch and postprocess the output as you suggested.
Thanks for your reply. I understand that postprocessing is necessary. Could you give some guidance or examples on how to convert patch-level outputs into PFT-specific distributions? Also, is there any more convenient or recommended approach for doing this?
Thank you so much! I am looking forward your reply.
 
Vote Upvote 0 Downvote

slevis

Moderator
Staff member
You will need to write a post-processing tool that uses helpful variables from clm's output files, such as
pfts1d_lon
pfts1d_lat
pfts1d_ixy
pfts1d_jxy
pfts1d_itype_veg
pfts1d_wtgcell

and so on.
 
Vote Upvote 0 Downvote
Top