[Thread Prev][Thread Next][Index]
Re: [ferret_users] Find Argo profiles within user-defined lat-long grid box
- To: ferret_users@xxxxxxxx
- Subject: Re: [ferret_users] Find Argo profiles within user-defined lat-long grid box
- From: Ansley Manke <a.c.manke@xxxxxxxxx>
- Date: Mon, 19 Sep 2022 20:15:34 -0700
- Arc-authentication-results: i=4; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pVD2cCxs; arc=pass (i=2 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of a.c.manke@xxxxxxxxx designates 209.85.128.199 as permitted sender) smtp.mailfrom=a.c.manke@xxxxxxxxx
- Arc-authentication-results: i=3; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pVD2cCxs; arc=pass (i=2 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of a.c.manke@xxxxxxxxx designates 209.85.128.199 as permitted sender) smtp.mailfrom=a.c.manke@xxxxxxxxx
- Arc-authentication-results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pVD2cCxs; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of a.c.manke@xxxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=a.c.manke@xxxxxxxxx
- Arc-authentication-results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pVD2cCxs; spf=pass (google.com: domain of a.c.manke@xxxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=a.c.manke@xxxxxxxxx; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
- Arc-message-signature: i=4; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-archive:list-help:list-post:list-id:mailing-list:precedence :in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:sender:dkim-signature; bh=eAi777T+1msUZYBkD80ECsHddH5o4khKHNtc/giNfMA=; b=NNj9hMieAwSb7M9bq36RqrhmD/KvqCfhFMxN0C1jbDyvdnjBgvCtWmB0gXVUNJw43r 6mn9JqMolanv3iYkOy194x6+IA7stflLZmhSguT4Jidu6utj/Coitx5CaXo892xe1dHX h/rWdk4Ow+7KudiU8JB6DdcUEq5jowI1JniVGIeR9D41wH2oSDA25AICWJw1bC88svrl c53yrYrhosmQ7f1wdlftTI1Rxhluy5JY7f3ZtVBNbgDGsokHzGdOjOpI73++o0O2GUGh F3x9N3KCxFs1DT+Q0P/KEbrbxobGiE7nXxdih5j14JlDCssVq5bMjXUyACtLLrbkE2tr 4eTQ==
- Arc-message-signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=eAi777T+1msUZYBkD80ECsHddH5o4khKHNtc/giNfMA=; b=yMCPswcN+P99Q4CjSUbmQBrRMwhIHcarvrle1f7SfSDb3VmWwPuyvrYpr5hlQIary8 GUXXeqVYdGmHIyK2QLpJCt6qmND0zpIsvGyvo+/BphJrexuANbExXHLKgXT1zpiJ9NT9 ARhkClwol1ROSjzRlru0Qhy5us7fmvzkXEwovQ3uWBQG3t80P/5Ru39mwC/C34PwN8Im kMFciXZIxC+z1vJ9oNQefygveo8fAAMGcZmG1a+GoZI36gAX889U0F58hL/yzo/RGBqd MJLRIoz6Kq7lkSrhXTuRZ7TwaOlb1kEplscPOE7BeM3hFUIh/e929jCrQ5X3pFLqg71T KYlQ==
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=eAi777T+1msUZYBkD80ECsHddH5o4khKHNtc/giNfMA=; b=Zw4P9hLg6xmUWEWIzCkc0g8XnFB9N9nz1FeHTIoYlPMr/Z8Y/KDL6hal/C/Y+oC0Sc xRXdLuT3uFpTimd1bdS3exxTimKhxQFYEjFOhlVipS/yLDUiE7DAoGEMEHMkbYB4PRvZ m3a1w15gzwwbew2kM9Ezy3E1CBUAP+KDeX3OkkrWyJ4pgCv75Iln0ocTjxLgL/MhEbbl xYPdGNDSPrEAsE5JX008TBrb8evheQYpOFnmXBq5YNGPPe3q9IyauUygUyCRMJ6bUJva YZ6NVBRQvHUIlwtvXbUSST2EQRN6qFrFuEAJyO4djtUo483Nx3jgkMk7DHbTdgJvxnMM /yTQ==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=eAi777T+1msUZYBkD80ECsHddH5o4khKHNtc/giNfMA=; b=oT2SFz6veoAmKBV/cWclZFtR63T85z9MQNS3jBAR7Mgsr/3zgCLiWoV1mQgv7nApJi 5vk5oRoSLKUGvsJyzL+qkuYjX+L2o4tnwcCx0313JgY6+CRUjC/rscJL/4mm3YRNvcnZ WQPFIW1NmDGVx6hupuITvt87MdWGpJ3LPV6fgganD3MupcvXOfCo8dh8713mz7S1aIE3 avTA9zs5W7VoHWEEUKsA0AqEyI6jI9cWwceLLwdsr8sTTdAuF0ombTt9ewaWHLS223AM N1bQSNGuJYxViRzirQYSKsTJ2oCLCXKg8x5ffMNe8/weWI0ih5IILgu6KC2r9bpTL4J7 Rf8w==
- Arc-seal: i=4; a=rsa-sha256; t=1663643742; cv=pass; d=google.com; s=arc-20160816; b=hseakfBW49sc2MUIiKqmvK9IMydQ68rTehHLH3ddAEZYs3UdyHIq0VqK5p4AMQ/X0r +0baJyRtqBbX9nMrh1hB7BbHlXT4KimoP07ZbcQvW5V/VvGdfBltDH0sknw/l1hX5kpJ uhoguQ7q+ge02IeADazs9BNWALwTEVnQ4xomHiAISPGx8Sqg5K/Y7ju41QGYrRRMJbqO Rp4rIYwMfTmTKII9dVnP6SWsu2XhxSe9PufrAoMw5yezIm+Ub4C9QKPBTNnMesQrBxq+ qJ74yCXTZAUu6BNNqXI1iKOmqIiiLiBSsh4QAc+L3ACumsKFScB3m4TolkrmOy27CgtG 99ZQ==
- Arc-seal: i=3; a=rsa-sha256; t=1663643741; cv=pass; d=google.com; s=arc-20160816; b=caFmLgg+T+NnvM2J0bqCBTc2CFEomNhElyNtWS1dhIBFOcPkNvpDptOnR5FaBkv4NE Ceq2ccaVVfdID9+66EVkm7/4WSrlSn2EL9Xve50qK4qKd30BHaAl2m7NPdzEDT5p3VqB /cU1xvuSVmaBz3TnzzZXxYj028lO20bVhFDiKniL+JfxaROytvSFG/zxp2fxRvTFAw4g te8vhiSXKtEu+GJenhjDbZE4FHgJoOlK8z3N03IcqW+p5bIof3HgGIWzmK0cWa+2YUHO FDJAxFCQFaEaalfcsyBQ+gRlWMPMMZ192d7dI9t+g5sELLJUzVY2UNLzbM1vlhD6X3IG N5dA==
- Arc-seal: i=2; a=rsa-sha256; t=1663643738; cv=pass; d=google.com; s=arc-20160816; b=hbQXgFq4jpaVX9wWNByy18sfMxtCM8moyIlSOkq6tCXqYLs+XIUios8C87I9VL50M+ 6nns/LmlmNNEZNb6s2QTG6+zaKYkshO7KrjH8poFScmF4UnmHNvoL/yYWIOmxHp4X3UB O1AAVUOjbtNvBjoja3h1PB2WiwUmJT8gUbxLUMBZ7OsY3u2y5QcuLsZHeOwTd4KHWo+2 q8671rzqmiPDfKYF8BtQfapBght9O+ShxSU1UmA828H7eTa6ZE4oGo7dUIvA1DsLgaWd X5MHgmX+TS43E2M//F49sNw5s3TFXKveEEpJp5Rmzv/ff5rs8fRD3IumK2xj4Q6g02y3 R6zQ==
- Arc-seal: i=1; a=rsa-sha256; t=1663643736; cv=none; d=google.com; s=arc-20160816; b=rbPZHOsLIKVe7AJ9vIsG0FeOS4XgAJCTlXcUMK0g3CoPPwCmDvkjqtkGi4IwIFheRQ PmrrHyEWUcPfoJ+GWU6UhUEMg+b7B7C8HtlQyvEtQXfDCyTWUSqGH3Cs/yIbmuNWRll6 LxoAqj9L43Aa4RU4XwT+kRSqxOPKd/YQGB6K3/fG13daGydlWg5eCbK7n5riRngrSGEV P5HCqJPQswZS+wFP1m9EVsxltNX5mDxUnvIWyNsiFVcaxKfmdPnV3ndjEQwyu4D2qVyt J2pe6Z+LfHV2wk5vMO0xKNRRS5NBizcGnFov/pnZuJ0Ruhm6YT0gwAVnovHZ+Je0NGEf avxg==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; h=list-archive:list-help:list-post:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:in-reply-to :from:references:to:content-language:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date; bh=eAi777T+1msUZYBkD80ECsHddH5o4khKHNtc/giNfMA=; b=lfolHmdWq0wMZvBxJxXNSGgkVveY+GLQhdV7StPSc4PXKkRDIPDSDOhzPqBYNF/i3P YVkhzC3GAgfW2YCXGthvdjxGFGZ6LW2LWk3Fsb6gpQplYbHLHX+B/S8HKSCq7B/L4vxF v/m6Zl9Wba4EpG2Ma34PMgDomVmILGQMhauBZIZ6cLQ78fM+BqkYZHDlHXFjH51Iqasn 6cwTJ+FFqGf6gBvyvaSf4vmSBQ8gPeeMzUptSnA4W8OOQTB4RXVcV9JadlG77Mmxggbd f/ljXPG2MS9g3N1tIOtCpKX/vQG43cxE9XoJlZ29ZcPMvKZbaKAeml2SsZo4H7qR+Vvm ttBw==
- In-reply-to: <CAOZhHusEyQoBS7UnAJ6ye1jnpKXDx++eK0EZhX1tt3=4mFZWAw@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: <CAOZhHusEyQoBS7UnAJ6ye1jnpKXDx++eK0EZhX1tt3=4mFZWAw@mail.gmail.com>
- Sender: owner-ferret_users@xxxxxxxx
- User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0
Hi Akash,
This FAQ that talks about Argo profile data, and which discusses
the operations that argo_zt.jnl does:
https://ferret.pmel.noaa.gov/Ferret/faq/how-can-i-work-with-argo-float-profile-data
It opens the Argo data so that the profile data is in Z and T,
with Z in the vertical direction (depth or pressure) and T the
number of profiles.
When your dataset is open, there will be some variables
representing longitude and latitude, in the T direction. You can
use these to define a mask, which would look like this. List the
longitudes and latitudes, and the mask, to check what it does
yes? let mask_lon_lat = if longitude gt
50 and longitude lt 78 and latitude gt 17 and latitude lt 25
then 1
yes? list longitude, latitude, mask_lon_lat
Now you can apply the mask to a variable such as temp , or to a
variable after which the argo_zt script has regridded to a
pressure axis in Z.
yes? let/like=temp masked_temp =
mask_lon_lat * temp
yes? let/like=temp
masked_temp_on_pres = mask_lon_lat * temp_pn_pres
Another way to look at this kind of data is with PLOT/VS. The
first command below will show all of the temperature profiles.
They will be upside-down. To reverse them, use /VLIM, with the
maximum pressure from your dataset
yes? plot/vs temp, pres
yes? plot/vs/vlim=2000:0 temp, pres
You could do this with your masked data.
Finally, this kind of data, collections of profiles, is one kind
of a DSG (Discrete Sampling Geometry) dataset. The form of the
ARGO files does not conform to the "ragged array" Discrete
Sampling Geometry Data format that is implemented for automatic
handling in PyFerret and Ferret. I found an example dataset at
https://www.nodc.noaa.gov/argo/ and when opening it in PyFerret I
see a message saying it has a FeatureType attribute but cannot be
opened as a DSG ragged array, and is initialized as a non-DSG
dataset. This is fine, it is just an informational note.
Ansley
On 9/13/2022 1:58 AM, Akash. S wrote:
Dear Ferret users,
I had a small question on Argo profile extraction on a
desired grid box.
I am using "argo_zt.jnl" to plot the Argo profiles. The
script uses all the locations from the input Argo data and
gives profile output. But I need to extract the profiles only
within a grid box (say, x=50:78/y=17:25). My data contain
values beyond the desired grid box and I want to exclude them.
Obviously the "set reg/x=50:78/y=17:25" will not work on this
kind of data.
Is anyone done this kind of operation before? Can anyone
give me a solution to this?
Thanks and regards,
Akash
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement