[Thread Prev][Thread Next][Index]
Re: [ferret_users] locating the depth of maximum
- To: saurabh rathore <rohitsrb2020@xxxxxxxxx>
- Subject: Re: [ferret_users] locating the depth of maximum
- From: William Kessler <william.s.kessler@xxxxxxxx>
- Date: Wed, 16 Mar 2022 08:16:27 -0700
- Arc-authentication-results: i=2; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=NX6gy8Y+; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=noaa.gov
- Arc-authentication-results: i=1; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=NX6gy8Y+; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=noaa.gov
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-archive:list-help:list-post:list-id:mailing-list:precedence:to :references:message-id:content-transfer-encoding:cc:date:in-reply-to :from:subject:mime-version:dkim-signature; bh=L0BxsVikzxKfAmCkelAXIxPnfEHsDHddOFn0Tfbmfro=; b=SrS26VDf6IsULqeblhWNIwY+NzvcYvF+tY92/hglDlCFpeChbJ2Be2rC6DHNs9mEop Lm/MtAIgB4vbxFy9ERsh4p78Q0xVo0hYGH+3VNsIgHkMM1SOz8OKc8sX8FVuVD5/Jt28 ihVgG4KUjRykxsbyNiL3d1K572MjOdKjPFrxYAXQabAsjs6rJ6YNKMAtdOGnY4AdC1vH esyLnOTpB4IQCwIpNaOU1G/tn3d4c5bHJvmkHFrrXdPYIY2h22rA06f/ugarK7xyfyyJ pzibZPZU6xE20p4n9QVghLKl7HG6+d/ti5j2dsLmv/TP5WlakboJ4WbBeCet67eMSb9e b1vw==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:dkim-signature; bh=L0BxsVikzxKfAmCkelAXIxPnfEHsDHddOFn0Tfbmfro=; b=CVLSbhAWF/GzvVhGRvD4+qxDJ+B72/yXsgCgcEoO/xOSyinO2tQVxoc7I+ULyOoApa 8fBArImqO0HvWvtoPNugCOhipmYosIl1iRGmk5ydGOKaIat/qpqt77xVyqN8YwO2Bilk 0vUkBi1ILtvAh0FK463P+sjcIaFyB1zCUX6gUTXTbXyLRXSTFHzWLJ9YcJWktAhs8gGP 1kX/Sv3oryRCgEYwwjNGyjBtPMEjPZ0lBry6Ch4M1hJeSDIWfoqp9E56EfyNBmxDDXlM uAEmALuUVtkzE/TqsUeU5fHD88tIRBv1G5ZRK5qBZGznu+JlPDppHrw+t+8+L8h7XXyH 2SUw==
- Arc-seal: i=2; a=rsa-sha256; t=1647443790; cv=pass; d=google.com; s=arc-20160816; b=YH41sIXkDAWdolybropc45cpltOW/TMkPii+2SpUlCbxm/ZEmuf5nJEy/eTIrbeeNy 1TbgcxlkNV5R5BxwZVXfDMuv1pPHnmGawkqO4NWKCZIPV4c718BJrTuELxmK9+8vsOum tGfYzqQYTvYQ6AxWS5mHci+4lFKpqCrU+C+xZX0+CzUcE6gk6T5HcTCw45PCsnkPU/Qn ic1S6Opvb+JZ40J5Ktt8QXBhqUIcsivWqqvXfXhYcvvh+jgjaC1awN7htye+xQpNQBRa 9qGL0QUQWW0H2hZipPhuBOl7BFyWK3+MbHwchH/RS3FIzebXPq+zk9gvGJ9lsTW+tbxX mMZA==
- Arc-seal: i=1; a=rsa-sha256; t=1647443788; cv=none; d=google.com; s=arc-20160816; b=BX6v6CO+Hkq0ZmOIG0Z6/i3zY5g8i+Y0UTQU2Ign4V/UfmRh8d1Ot7Fpqc5ag5bhLt gKsBo4jlXpdHxRJk/0BlN06b6MIJIioHTlyCejMogwqXe0JddOHktq5eD7++xPGQ5Fu/ KU1H3HIXdWvBOF7bgaiEgUBxq1vLkrGpPtcvRgvelrA+A+upaSLYy5IVFErj27YBYbVa qwCmKuN/0vQza6/a/qJo0HY+Ic0pcHee9r4C5+r7MzLrFldXsZw5jFmqTapZeO0cqbDX ZAH7HL50yOam/f0ZVrbmheS/okc4SQ7YoN1GolVI7sFUPx1BSPWGzRok8y/bFz0ETHIT cwzA==
- Cc: Ferret <ferret_users@xxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive; bh=L0BxsVikzxKfAmCkelAXIxPnfEHsDHddOFn0Tfbmfro=; b=EFn9zjUXEqJ44rFk3Ic/iVl5q5IQ11+MKTCu6m2TNdLQUgue/cT9s2cT4gaeoy1NLa U8/0wiFJGSwzc76xTcyVFC3sBw+8wHMUe/fMV9Qa9+GkYffcDLVC8TvQdLBCBLr6d44Y DbLTp4EVdZMD981Vw5DoHc7S5KVCwhVEQ2pWArL5dprW1x2KV5oY6PIq8LbFrjEn9NcU Ga4bP0fm1kfnsv9OsDcBKzOTKqmJHbP+31w7seqBlwlUmUFF1WCP3gZwNvXYyVUnhdef uo29i+BIbm5bgQlUH9lu8P6VuKU6ttKS7DLlxPGU0ZVVf73+9Qx98okt7eFEx6u17Vam hLIg==
- In-reply-to: <CAFXLzPj0hF5ePsDgJXPfdvoadeprQ6bMK3dqSrdkXtBqMW9ujA@mail.gmail.com>
- List-archive: <https://groups.google.com/a/noaa.gov/group/ferret_users/>
- List-help: <https://support.google.com/a/noaa.gov/bin/topic.py?topic=25838>, <mailto:ferret_users+help@noaa.gov>
- List-id: <ferret_users.noaa.gov>
- List-post: <https://groups.google.com/a/noaa.gov/group/ferret_users/post>, <mailto:ferret_users@noaa.gov>
- Mailing-list: list ferret_users@xxxxxxxx; contact ferret_users+owners@xxxxxxxx
- References: <CAFXLzPj0hF5ePsDgJXPfdvoadeprQ6bMK3dqSrdkXtBqMW9ujA@mail.gmail.com>
- Sender: owner-ferret_users@xxxxxxxx
This can be done with @loc. From the manual:
Note that the transformation @LOC can be used to locate non-constant values, too, as the following example illustrates:
Example: locating non-constant values
Determine the depth of maximum salinity.
yes? LET max_salt = salt[Z=@MAX]
yes? LET zero_at_max = salt - max_salt
yes? LET depth_of_max = zero_at_max[Z=@LOC:0]
> On Mar 16, 2022, at 7:35 AM, saurabh rathore <rohitsrb2020@xxxxxxxxx> wrote:
>
> Dear Ferreters
> G'day
>
> I want to locate the depth of maximum of AMOC in my model data. Here is the data
>
> name title I J K L
> ATLMOC ATL[I=@SUM,K=@RSUM] ... 1:331 1:75 1:140
>
> !!!!! for finding maximum of ATLMOC for a fixed latitude (J=246) and depth level range (K=36:65) for time (L=140) !!!!!!!!
>
> list ATLMOC[j=246,k=36:65@max,l=140]
> results = 1.670E+07
>
> !!! Now I want to locate the depth of this maximum at j=246 and l=140 but this command is not working and it is not showing any value !!!!!!
> list ATLMOC[j=246,k=@loc:16700000,l=140]
>
> VARIABLE : DEPTH (m) of 16700000 in ATL[I=@SUM,K=@RSUM] (m)
> X=0.5:360.5, Z=0:6004
> FILENAME : moc140.nc
> Y : 246
> DEPTH (m): 0 to 6004 (location of 16700000)
> TIME : 02-JUL-0140 12:00 NOLEAP
> ....
>
> One can see the depth and its level (k) for the maximum value by
>
> list ATLMOC[j=246,k=36:65,l=140]
>
> 333.9 / 36: 8.721E+06
> 370.7 / 37: 9.703E+06
> 411.8 / 38: 1.076E+07
> 457.6 / 39: 1.186E+07
> 508.6 / 40: 1.296E+07
> 565.3 / 41: 1.399E+07
> 628 / 42: 1.486E+07
> 697.3 / 43: 1.565E+07
> 773.4 / 44: 1.632E+07
> 856.7 / 45: 1.670E+07 !!! depth level of maximum value !!!!!1
> 947.4 / 46: 1.660E+07
> 1045.9 / 47: 1.601E+07
> 1152 / 48: 1.506E+07
> 1265.9 / 49: 1.395E+07
> 1387.4 / 50: 1.277E+07
> 1516.4 / 51: 1.150E+07
> 1652.6 / 52: 1.006E+07
> 1795.7 / 53: 8.410E+06
> 1945.3 / 54: 6.652E+06
> 2101 / 55: 4.997E+06
> 2262.4 / 56: 3.281E+06
> 2429 / 57: 1.515E+06
> 2600.4 / 58: -3.571E+05
> 2776 / 59: -1.591E+06
> 2955.6 / 60: -2.326E+06
> 3138.6 / 61: -2.764E+06
> 3324.6 / 62: -2.772E+06
> 3513.4 / 63: -2.801E+06
> 3704.7 / 64: -2.813E+06
> 3898 / 65: -2.774E+06
>
> So I want to know how to locate the depth for the maximum value? I can not understand what mistake I am doing for this simple calculation.
>
> Thanks in advance.
>
> Cheers, Saurabh
>
> --
>
>
> REGARDS
>
> Saurabh Rathore
> Research Scholar (PhD.)
> Centre For Oceans, Rivers, Atmosphere & Land Science Technology
> Indian Institute Of Technology, Kharagpur
> contact :- 91- 8345984434
(Still) working at home: +1 206-228-7330 (m)
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement