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

Writing user defined variable to history file

TCNasa

Tom Caldwell
Member
I'm trying to add my own variable to the history files. I am declaring a variable in "chunked" format but need to be able to view it as a gridded field.
Will using "addfld", and a corresponding namelist entry in user_nl_cam, make CESM transfer my chunk data to an output grid before writing it to the history file?
 

cacraig

Cheryl Craig
CSEG and Liaisons
Staff member
In addition to putting in an appropriate "addlfd" call, you will also need an "outfld" call as well. The "addfld" setups up the variable for outputting, but the "outfld" gathers the data for writing. The variable will then only appear in the output file when it is included in a "fincl" list.
 
Top