Re: Help in C residence time

From: Rafique, Rashid <rafique_at_nyahnyahspammersnyahnyah>
Date: Fri Oct 18 2013 - 09:58:41 MDT


Thanks for response.
I hope someone else from NCL-talk will get time to have a look in detail in my query.
Waiting for the reply from NCL-talk.


Rashid Rafique

From: Adam Phillips []
Sent: Friday, October 18, 2013 10:50 AM
To: Rafique, Rashid;
Subject: Re: Help in C residence time

Hi Rashid,
So you know, in the future, it's usually best to include your script in your innitial ncl-talk email so users outside of NCAR can look. Looking at your script, I don't see anything wrong NCL coding wise. You're reading in NPP and TOTECOSYSC, setting NPP to @_FillValue where it equals 0, and then dividing TOTECOSYSC by NPP and writing the result to a file to be plotted in an outside programming language. You are grabbing NPP and TOTECOSYSC from a file where you averaged 10 years of monthly CLM data into one timestep. I do not have any experience calculating the C-residence time, so I don't know if that is the proper procedure to go through or not.

If you do not get any further responses on NCL talk, I would suggest posting this question to the CESM bulletin board ( under "Land Modeling with CLM" under Science Issues. They might be better able to answer whether your calculation method is correct.

On 10/17/2013 09:38 AM, Rafique, Rashid wrote:
Hi NCL team

I was trying to calculate the C residence time by using two variables "TOTECOSYSC and NPP". I feel like m not doing right because the graphics doesn't look right to me. I also want to give unit in years for residence time of C.

Can you please have a look ?

My files are located at


the code i am using is "Calculate_residence_time.ncl" and
the data file i am using is "<>"

The map I produced is attached here.

I want to map a spatial distribution of the residence time over globe.

I ll be glad for you help.


Rashid Rafique

University of Oklahoma
Norman, OK 73019

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:

Adam Phillips                      <>
NCAR/Climate and Global Dynamics Division       (303) 497-1726
P.O. Box 3000
Boulder, CO 80307-3000

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Fri Oct 18 09:58:57 2013

This archive was generated by hypermail 2.1.8 : Tue Oct 22 2013 - 10:35:27 MDT