Re: Ocean depth of half surface SST

From: Hyacinth Nnamchi <hyacinth.1_at_nyahnyahspammersnyahnyah>
Date: Mon Jul 21 2014 - 13:26:22 MDT

Hi Denis,

Thanks immensely for the detailed example code. I believe I can work from there to solve the problem.

Best regards,

Hyacinth


Date: Mon, 21 Jul 2014 09:21:14 -0600
Subject: Re: [ncl-talk] Ocean depth of half surface SST
From: shea@ucar.edu
To: hyacinth.1@hotmail.com
CC: ncl-talk@ucar.edu

The 'int2p_n' is not set up to do array calculations of the type ypu describe. Hence, you must use do loops. (Much) slower than array operations but, currently, I see no other approach.


That attached NCL script was quickly tested on a POP ocean model output. It seems to work. The 3-dimensional calculations took ~15 sec on a MAC.

Good luck


On Sat, Jul 19, 2014 at 3:14 PM, Hyacinth Nnamchi <hyacinth.1@hotmail.com> wrote:

Hi,

I have several ocean variables on 4-d (t, lev, lat, lon). I want to:

1. Determine the depth at which the temperature (t, lev, lat, lon) equals half the value of SST (t, lat, lon). So the new variable have dimension (t, lat, lon) containing various depths from the grids.


2. Using the new variable from (1), I'd like to extract other variables corresponding to the depths and other dimensions in (1).

From the examples, I know that linear interpolation is get the depth of a particular value (http://www.ncl.ucar.edu/Applications/iso.shtml). My problem is that the value I'm interested in (1/2 SST) will change from grid point to grid point.


Thanks in advance for any suggestions.

Hyacinth




                                               

_______________________________________________

ncl-talk mailing list

List instructions, subscriber options, unsubscribe:

http://mailman.ucar.edu/mailman/listinfo/ncl-talk



                                               

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk


Received on Mon Jul 21 07:26:29 2014

This archive was generated by hypermail 2.1.8 : Wed Jul 23 2014 - 15:33:46 MDT