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.
 
Back
Top