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

Questions About Using SpinupStability.ncl

Status
Not open for further replies.

liliyao

Xinamai
Member
Hi,

I am using the SpinupStability_v10.ncl from here question about CLM5 spin up to check if my AD spinup has reached equilibrium or not. The spinup was run with CLM5 from cesm5.1dev118, using sparse grids. I have several questions regarding the correct usage of this tool:

My AD spinup results were saved in monthly frequency, with 12 months in each history file (hist_nhtfrq = 0 hist_mfilt = 12). The tool ran successfully with 'annual_hist = True', even though the data are monthly mean values. Here is the statement at the beginning of the code: "This version operates on either monthly mean or multi-annual mean multi-variable history files." My understanding is that this tool is designed for h0 file saved with hist_mfilt = 1 (one sample in each historical file). Q1: Therefore, I am not confident whether this code run correctly with 'annual_hist = True' in my case with hist_nhtfrq = 0 , hist_mfilt = 12.

Here is the EQUILIBRIUM SUMMARY and the plots
(0) =======================================================================
(0) TOTECOSYSC is in equilibrium. Eq. Yr. = 1
(0) TOTSOMC is in equilibrium. Eq. Yr. = 1
(0) TOTVEGC is in equilibrium. Eq. Yr. = 1
(0) FATAL: TLAI is NOT in equilibrium
(0) GPP is in equilibrium. Eq. Yr. = 281
(0) WARNING: TWS is NOT in equilibrium or is missing
(0) WARNING: H2OSNO is NOT in equilibrium or is missing
(0) FATAL: Not enough of the land surface is in equilibrium ( 96.55% > 3.00%)
(0) FATAL: Your simulation is not in equilibrium, 8 hours have been deducted from your PTO bank, try again
20230823_CLM_USRDAT_I1850Clm50BgcCropRsGs_adsp_Spinup_v10.png

The number of land surface areas not in equilibrium is so large. Q2: I would like to ask if it is reasonable for the values to deviate so far from equilibrium after 281 years.

The colored area in the last two maps from the tool did not match the area of my simulation. Q3: Could this be because my model is using sparse grids?

Another question is related to the tool's design for Global, Arctic, SPT. Q4: How can I use this tool for sparse grid simulations?
My understanding is that we need to change the threshold for various equilibrium to modify it for sparse grids. However, that means the thresholds will vary with different sparse grids in different simulations. Can we modify the tool so that it calculates the thresholds as a percentage of some sparce-grid value?

Thank you so much for any help!
 

oleson

Keith Oleson
CSEG and Liaisons
Staff member
Q1. I'm not sure what the script would be doing in your case ((hist_nhtfrq = 0 hist_mfilt = 12), as it was not designed for that, so I don't think I would trust the results. The plots for e.g., TOTVEGC should be fairly smooth and yours are quite jagged, so it might be sampling random months of data. Also, remember to set subper in the script to the number of years your datm forcing is looping over.
Q2. Not, not reasonable.
Q3, Q4. I've put a version of the script we've used for sparse grid simulations on our ftp site: ftp://ftp.cgd.ucar.edu/pub/oleson/SpinupStability_v11.ncl. The maps should look like it has dots where there are valid grid cells, so maybe the lat/lon information in your grid is incorrect or being read in incorrectly. Yes, the thresholds will vary with different sparse grids. In the example script I've provided, we have 400 grid cells on a 2 deg grid and so we've scaled the thresholds by scale_factor = 400.0/(144.0*96.0*0.29), where 400 is the number of grid cells, 144 is the number of longitude cells and 96 is the number of latitude cells in a 2 deg global grid, and 0.29 is the approximate global land fraction. There are probably more rigorous ways to do this, but the thresholds are not exact anyway.
 

liliyao

Xinamai
Member
I just got back from vacation, so I only saw your message today. Thank you very much, Dr. Oleson; your reply and the new version of the script is very helpful!
 

evasinha

Eva Sinha
New Member
@oleson Thank you for sharing the SpinupStability script for sparse grid simulations. In the script the scaling factor are also used for TLAI, TWS, and H20SNO as follows:
glob_thresh_totecosysc = 0.02*scale_factor ; global threshold for TOTECOSYSC equilibrium (delta PgC / yr)
; glob_thresh_totecosysc = 0.60*scale_factor ; global threshold for TOTECOSYSC equilibrium (delta PgC / yr)
glob_thresh_totsomc = 0.02*scale_factor ; global threshold for TOTSOMC equilibrium (delta PgC / yr)
glob_thresh_totvegc = 0.02*scale_factor ; global threshold for TOTVEGC equilibrium (delta PgC / yr)
glob_thresh_cwdc = 0.02*scale_factor ; global threshold for CWDC equilibrium (delta PgC / yr)
glob_thresh_tlai = 0.02*scale_factor ; global threshold for TLAI equilibrium (delta m2/m2 / yr)
glob_thresh_gpp = 0.02*scale_factor ; global threshold for GPP equilibrium (delta PgC / yr)
glob_thresh_npp = 0.02*scale_factor ; global threshold for NPP equilibrium (delta PgC / yr)
glob_thresh_tws = 0.001*scale_factor ; global threshold for TWS equilibrium (delta m / yr)
glob_thresh_h2osno = 1.0*scale_factor ; global threshold for H2OSNO equilibrium (delta mm / yr)
However, I think since weighted average of TLAI, TWS, and H20SNO are being estimated hence the scaling factor should not be applied for these variables. Please correct me if I am mistaken.

Thanks,
Eva.
 
Status
Not open for further replies.
Top