[gradsusr] display variable at depth between two layers

weiqwang xhweiq at gmail.com
Fri Apr 30 06:53:15 EDT 2010


thanks. However, this is just a way to deal with simple case. For general
use, someone has idea?

Edward

On Wed, Apr 28, 2010 at 12:43 AM, Eric Altshuler <ela at cola.iges.org> wrote:

> Hello Edward,
>
> If you want to do a simple linear interpolation, compute a weighted average
> of the values at the two levels that bracket the level you want to
> interpolate to. Since in your case the two levels would be 100m and 200m,
> the linear interpolation to 185m would be given by:
>
> temp(z=185m) = 0.15*temp(z=100m) + 0.85*temp(z=200m)
>
> Best regards,
>
> Eric L. Altshuler
> Assistant Research Scientist
> Center for Ocean-Land-Atmosphere Studies
> 4041 Powder Mill Road, Suite 302
> Calverton, MD 20705-3106
> USA
>
> E-mail: ela at cola.iges.org
> Phone: (301) 902-1257
> Fax: (301) 595-9793
>
> ----- Original Message -----
> From: "weiqwang" <xhweiq at gmail.com>
> To: gradsusr at gradsusr.org
> Sent: Monday, April 26, 2010 12:36:34 PM
> Subject: [gradsusr] display variable at depth between two layers
>
> hi, gradsusers,
>
>
> I have one simple question which might involves the interpolation. My
> data is defined at depth for example from 0m to 1000m, with regular
> interval 100m ( 11 layers in total). When I want to display variable
> (such as temp) at depth 185m, I found temperature at 200m was shown. How
> can I get the temperature at 185m ( expect a linear interpolation
> results)?
>
> Any suggestions are appreciated.
>
> Edward
>
>
>
> _______________________________________________ gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100430/a81424ba/attachment-0003.html 


More information about the gradsusr mailing list