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

POP2: daily ocean temperature output

Hi,I'm trying to write out both daily and monthly ocean temperature. I read from previous forum topic that one variable could only be used in one stream, so does it mean that I'll have to modify the source code to create a new variable (i.e.,TEMP_2)?Since ocean temperature is involved in various processes, I suppose I'll need to modify multiple files to ensure the model's performance. Do you have suggestions on which files should I modify to make this change?    Thanks in advance!Hui
 

njn01

Member
Hui, you are correct that you will need to modify the pop2 code in order to write out both monthly and daily ocean (potential) temperature, and yes, creating something like "TEMP_2" will work for you.  (Note that there is already support in the code for "TEMP2," which is the output variable for temperature squared, so you can't use that for your application).The best place to start is by reading the part of the POP2 FAQ that deals with this subject, http://www.cesm.ucar.edu/models/cesm1.2/pop2/doc/faq/#developer  In your case, search the code for "tavg_TEMP" and use that code as your guide for adding tavg_TEMP_2.  Note that you will also need to add TEMP_2 to your *_tavg_contents file in your $CASE/SourceMods/src.pop2 directory. If you want  TEMP_2 in the daily stream, and you are using otherwise standard pop2 time-averaged output file definitions, you would add this line:2  TEMP_2 
 
Top