[Thread Prev][Thread Next][Index]
Re: [ferret_users] List command lists data from down to up but I want it from up to down
- To: Ryo Furue <furue@xxxxxxxxxx>, Sanaz Mosayebi <smosayebi@xxxxxx>
- Subject: Re: [ferret_users] List command lists data from down to up but I want it from up to down
- From: Ansley Manke <a.c.manke@xxxxxxxxx>
- Date: Sun, 24 Sep 2023 18:34:58 -0700
- Arc-authentication-results: i=4; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fp8c00LK; 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.222.197 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=20230601 header.b=fp8c00LK; 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.222.197 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=20230601 header.b=fp8c00LK; 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=20230601 header.b=fp8c00LK; 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:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:sender:dkim-signature; bh=Kdzk27si9I0skgaBXaZ6lqZlkwMe/s8US2Hz3ZnhgJo=; fh=2r5J9wK0WflcdRubrH5fFdpcncu+nFgED+yK8HuGdH8=; b=oULeHBBIHnDmasw5yrck2XjQpuOZNnu/VDyoGM4JQrwNeyo3NYzXoFlmRD0qXa1t8T 9xwCLKx917GsM0hG/vlY9LvwD8ZdoWS2jIH2QtbyXMxzUCimTzDXipUPeuPi0G2nA2F+ 2envwxKo4Rec64G5OYMBxo2CdUF1Pje99htSueS6/AtRdDJIShtTEWZ8/RJVg9mUSW9a dy3j2hhOH+1lJGL1aA2IP3C5kPy/SublJpPyHBpxSxB5AAxBpNso/DaJc1vJ+hzqkjf0 KZvKdJkPVwqoLOOwym8+fn615fyUaOWVvl7UeJxZbJl3aA0uBqqO+U6ThKN3pYZ/wrHY IOSA==
- Arc-message-signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=Kdzk27si9I0skgaBXaZ6lqZlkwMe/s8US2Hz3ZnhgJo=; fh=2r5J9wK0WflcdRubrH5fFdpcncu+nFgED+yK8HuGdH8=; b=xY7yjhnl//PwdrJKwVAgZSJgdzyHDIHoohThzV1ao4y4VlNeCv7B7nKyvlyaukS3OU s61BrXi7hJl7sSFjD5ny36Qs9JdEEMWNUtoJUFzJZfqwmEdTsoVmuCfMme/Lqoj/USvb mAdWxDn+AXFRRSDGNE1drWDMaSPP2qnrLfb+47stFBeAUfTtn7HpvbzZSOyQCMLXFmZQ XA4yNgvp0QmP8oClLtgkPWllpCOaUWF65aoGjVfP5wTSz/shUBbR74GIIeqVjsRt/hfa DEsrhVwo0yM+hqyB1qmsFS9JNKHEm1bWjt9W6Frvrqv7anfxmJ6OHTnCOVkWSycyePs/ LjdA==
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=Kdzk27si9I0skgaBXaZ6lqZlkwMe/s8US2Hz3ZnhgJo=; fh=2r5J9wK0WflcdRubrH5fFdpcncu+nFgED+yK8HuGdH8=; b=mz+ujPpXXbQEUlhlpKFz1JpzxaBpXNzfMnNJ2agVhN32iRw2IXUhcL0KeKoHx4EQhm IBQLGbYXjEHu1eyQ+VRK6fppkzDBYD/rzlKFhSB3UWKZRizxpPBHeWBais2M3gljyPq2 Ci+DHQ2cMuaEf/q5EccfIrrPYCC6TePOByQv6X3zQPXcxDxCNdL5GuyFkFTpHrDBurNG 8dxNaL+1RxQdr1shXDXpVqOFJWReB34KOyvbZjK6xhSYBzAZp4Cq1lGhkLh1R/o46X+f ElKQTWEpM63F8JnmzHLIv1NxMQH3EsjOFtZMAMEGv6guN0CMbrarg3zcJRuPuxIZ/UqA G3fw==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=Kdzk27si9I0skgaBXaZ6lqZlkwMe/s8US2Hz3ZnhgJo=; fh=2r5J9wK0WflcdRubrH5fFdpcncu+nFgED+yK8HuGdH8=; b=sAlmprzlg8caCVqXrGaZUH6rMewdxejQnlTiSTe8faq+QL1YOrfvbdJwpSjeYBsNcM MXOWwAkzHD4c8YFG1MN7M7AJE7rr7ptlQV+GWUrdjpmOMGCgwq3QSo14CX3qzQKCXbjE ovU9YUrTkYnrD4mlGUJs8PgbTolilFVih6kZ7dlLK2I+sz77d/TAO32CHeo95vOwSHKb q7DRIlhr6XW04I6itM5sOqik4SkYaDwqcIFoKQmWxLXR7Yz8G0HwEI/T5LCT1hdrLLiW CBIdo2eS++Mv5hStT2SeqamiIxxD3jy5uA6/TkUg7aGYkxuJw9ZAEb4HuF1NPy/CWULY w0Eg==
- Arc-seal: i=4; a=rsa-sha256; t=1695605707; cv=pass; d=google.com; s=arc-20160816; b=F150mIqzOmFelixKRqFImm1KhBXY5LsI0VnwTnmw92dVK+p5B2Fy1UBpUXE1hlwzp7 /n+hz6meJ0bG3iL9Y1/u9n0UnCLKWVNGWA9RCeW1GYUUQT2/HPyyNZMTy+LAwtx9YnNL HlpudbbVoMTTTLVGR/t6+sZNJy/H+9c7YR6NbUkwx30qPIPYtD5it+e8lRds2QdE6XW1 mlz4TYV7ohOrivekvMD9B0agvfZxAAjJ0AMGhUPNeHisPB9pBQR2CHTgYZHsWvLoVZu3 i36rk8DTRiA7IQRQ5fnk7KaRRNTuHixmcJKM5v+KUMfGtv/7GDVqSyv95e8YsuQwaEQe H9/w==
- Arc-seal: i=3; a=rsa-sha256; t=1695605706; cv=pass; d=google.com; s=arc-20160816; b=FqLiY7OxeY+ldcp3hg6JLhvGFwpcY0N6a30EddXmWwPy/rJDLQ9SMpTQpIZkTJEi+W CkI7iqMPR7Zm+M45FVjUyi0pNSEL62M8ZAhjZqkyHP9CMmxVXQDsVDwN62ksxQzbuAZx 3zzqdmp3fV9d2NTbBGcoDuVT2WNrE6LHkCL4L1AOh41dqjDVaHsCyjXqW3KsUsgSCyJP jSlepitJE7GKRn/G904Oiw6/OwX1BnRruCQT+ksA0Z2I8SDPsEnQJfzp1qntqURhNxr7 a5ofO8Bem4CR0kUSmKDtI8lTGPZA+Kpjpjm50LJFJxBLo4sEKOZJharFjbsV6giK1rjv DV5w==
- Arc-seal: i=2; a=rsa-sha256; t=1695605703; cv=pass; d=google.com; s=arc-20160816; b=dlUgzgrLzaXx/gHIzy6e99X6e8cQDZW+FjXv7HmsF0piypVfaZ2Dx28QFz+a124h9e WlR3VxCzWgeOTP1FIqepNwYtZ/QdU4nFNb1bfScr1dD+8j6iftmQhmfl3hBr4Wz3/RzU niiLotqT+GAm7rh4hI9J8h9WaZ+WJsJdFI3E/EeZ32BkWR58ToQFrplNOpHzCFdyEjac cfX1/iKejWQddzEbPQ6EuAh1Anj1tYSjhmKoCx8DeyN3rniJaulf/UKbt1h4fRrOXxRP fimbKHdKyw+iB9lzHLXLrcmT7WPs9TdkZHmrLCbyaSDk+ZXD1Z/qcQAaIb257tsKQP7Q wXYg==
- Arc-seal: i=1; a=rsa-sha256; t=1695605702; cv=none; d=google.com; s=arc-20160816; b=n8pUCm62O1c/IU0ozl27zfxv6GNQpGkCLYVPo7QOBK49+72BB4tjWE1vofXx7AHcX1 L6/f+aDW4YIixDjQGwUshEn1AGWMNHsNHe/gTKbgMEoTls4V9WWpVFNSaETunVMQgByk RYSXhmC/drXBi1pQ4dQA+9ZEHSeCS/a8aw4JwEOdyWFk+klAnbBwAcMTuWlqiaMadE6j FPEChFNOkIIuKnej6tfZHatdRrNQm4K8tszzafTl8Ttf14nc3xUwLfKPmreQWAB6CvRj fpt3vxXF2LC+SPsu/syg1PqlI+XQi7OzO1FbfV6BXq+NhVFmcWON8MVy4IxXwnTUtLr6 EdOQ==
- Cc: ferret users <ferret_users@xxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; t=1695605707; x=1696210507; darn=eclipse.pmel.noaa.gov; h=list-archive:list-help:list-post:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:in-reply-to :from:content-language:references:cc:to:subject:user-agent :mime-version:date:message-id:sender:from:to:cc:subject:date :message-id:reply-to; bh=Kdzk27si9I0skgaBXaZ6lqZlkwMe/s8US2Hz3ZnhgJo=; b=VLh1GvXIUny826IZJAkKCamfJZBgH+C96YNFNGumm6AQeOCULtjDD3UDIW+OKzYPM3 QpK1OHV2eIoohVogiO/btK75/Jm3sWxrg85zzq5ft6V0660GGYvuWDS+rHBc3Zqz/reS Iu0uaao8iA6ojGmW2vMbEJkspPRm/pMNEoAQUaImIkTzFF7AdCxN1JVXFYWZFTjl43Kq jluL3tbFwc3ykqFutGWz+Snkmjj2xi5z0DMFBYbSfODY/fDSHL0y9ZRWow4ZdVpFfuBh NOIC1uce15XDIjrReScGTar0vMd6o1UMisMTqJvvlGke5nJfdnvanWn75mNCaYZPDylz pLXA==
- In-reply-to: <CAEwQpaK_0Ag9TxpRui0OPLDWe98XyqUbh=hw5E_3zqsiQcMCEQ@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: <CAEG4rtVjj4Ztghm_Ve-mNu0jpHqHbUfys_gRTyrMoGHmVaShHg@mail.gmail.com> <2fceb407-cf2d-61ab-aef6-2400a58a3642@gmail.com> <CAEwQpaK_0Ag9TxpRui0OPLDWe98XyqUbh=hw5E_3zqsiQcMCEQ@mail.gmail.com>
- Sender: owner-ferret_users@xxxxxxxx
- User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1
Hi,
Yes, Ryo, I think that the question is about the ordering in
listings for a longitude axis.
I always like to make a simple example so I can see what's
happening. If I understand the question correctly, Sanaz, you
want the listing to be from north to south for each time step.
! Define a simple variable in x-y-t
yes? define axis/x=120:124:1/units=degrees_longitude xaxis
yes? define axis/y=2:6:2/units=degrees_latitude yaxis
yes? define axis/t=1-may-2023:3-may-2023:1/units=days taxis
yes? let xytvar = 100*L[gt=taxis] + 10*j[gy=yaxis] + i[gx=xaxis]
! The default list ordering lists the data at latitudes from
north
! to south
yes? list xytvar
VARIABLE : 100*L[GT=TAXIS] + 10*J[GY=YAXIS] +
I[GX=XAXIS]
SUBSET : 5 by 3 by 3 points
(LONGITUDE-LATITUDE-TIME)
120E 121E 122E 123E 124E
1 2 3 4 5
---- L:1 T: 01-MAY-2023 00:00
6N / 3: 131.0 132.0 133.0 134.0 135.0
4N / 2: 121.0 122.0 123.0 124.0 125.0
2N / 1: 111.0 112.0 113.0 114.0 115.0
---- L:2 T: 02-MAY-2023 00:00
6N / 3: 231.0 232.0 233.0 234.0 235.0
4N / 2: 221.0 222.0 223.0 224.0 225.0
2N / 1: 211.0 212.0 213.0 214.0 215.0
---- L:3 T: 03-MAY-2023 00:00
6N / 3: 331.0 332.0 333.0 334.0 335.0
4N / 2: 321.0 322.0 323.0 324.0 325.0
2N / 1: 311.0 312.0 313.0 314.0 315.0
! When listed with a format
statement to remove the extra text in the listing, the ordering
! each time is in the reverse order, from south to north
yes? list/nohead/format=(5f8.2) xytvar
111.00 112.00 113.00 114.00 115.00
121.00 122.00 123.00 124.00 125.00
131.00 132.00 133.00 134.00 135.00
211.00 212.00 213.00 214.00 215.00
221.00 222.00 223.00 224.00 225.00
231.00 232.00 233.00 234.00 235.00
311.00 312.00 313.00 314.00 315.00
321.00 322.00 323.00 324.00 325.00
331.00 332.00 333.00 334.00 335.00
! The above is how the default listing
would look if the Y axis were not
! a longitude axis. Remove the latitude definition and show the
listing.
yes? set axis/units=none `xytvar,return=yaxis`
!-> set axis/units=none YAXIS
*** NOTE: Units not recognized: none
*** NOTE: They will not be convertible:
yes? list xytvar
VARIABLE : 100*L[GT=TAXIS] + 10*J[GY=YAXIS] +
I[GX=XAXIS]
SUBSET : 5 by 3 by 3 points (LONGITUDE-Y
(none)-TIME)
120E 121E 122E 123E 124E
1 2 3 4 5
---- L:1 T: 01-MAY-2023 00:00
2 / 1: 111.0 112.0 113.0 114.0 115.0
4 / 2: 121.0 122.0 123.0 124.0 125.0
6 / 3: 131.0 132.0 133.0 134.0 135.0
---- L:2 T: 02-MAY-2023 00:00
2 / 1: 211.0 212.0 213.0 214.0 215.0
4 / 2: 221.0 222.0 223.0 224.0 225.0
6 / 3: 231.0 232.0 233.0 234.0 235.0
---- L:3 T: 03-MAY-2023 00:00
2 / 1: 311.0 312.0 313.0 314.0 315.0
4 / 2: 321.0 322.0 323.0 324.0 325.0
6 / 3: 331.0 332.0 333.0 334.0 335.0
! Here are loops which will list data at
each time step from north to south.
! (This output would be the same if the y-axis has latitude
units.)
yes? cancel mode verify ! remove the echo-ing of the commands
yes? repeat/L=1:`xytvar,return=Lsize` (\
...? repeat/J=`xytvar,return=jsize`:1:-1 (\
...? list/nohead/order=x/format=(5f8.2) xytvar))
131.00 132.00 133.00 134.00 135.00
121.00 122.00 123.00 124.00 125.00
111.00 112.00 113.00 114.00 115.00
231.00 232.00 233.00 234.00 235.00
221.00 222.00 223.00 224.00 225.00
211.00 212.00 213.00 214.00 215.00
331.00 332.00 333.00 334.00 335.00
321.00 322.00 323.00 324.00 325.00
311.00 312.00 313.00 314.00 315.00
Ansley
On 9/21/2023 9:03 PM, Ryo Furue wrote:
Dear Ansley and Sanaz,
I thought Sanaz may be asking how to change the order of
listing in the J direction (meridional direction).
With
lis/format=(${LONPOINTS}(f10.2))
you are listing the values at a single latitude on one text
line. (${LONPOINTS} is a shell syntax, I suppose. See
below.). So, in the text file, you get a 2D listing with
latitude (J) along the vertical axis and longitude (I) along
the horizontal axis.
I do not understand your
use of M and L in the loop
structure you are showing.
I guess that was a pseudo code, just to illustrate the
problem, using the shell (bash) syntax: On bash,
for i in {1..10}; do
echo $i
done
will print 1 to 10.
Ryo
If you are using repeat
loops, you will need
to use L for time, J for latitude, and I for longitude. One
possibility
might be to use the LIST/PRECISION qualifier instead of
using /FORMAT=f10.2)
On 9/20/2023 2:04 PM, Mosayebi, Sanaz wrote:
> Hello,
>
> I have a netcdf file and I am trying to convert it to a
text file.
>
> Here is the information of my input file:
>
> TIMESTEPS=2920
> LONPOINTS=537
> LATPOINTS=225
> INPUTVARS=(PSFC U10 V10)
>
> And I am trying this:
>
> for m in {1..2929}; do
> for l in {1..1}; do
> for INPUTVAR in ${INPUTVARS[@]}; do
>
> let tmp = if ${INPUTVAR}[l=${l},m=${m}] eq (-9e+33)
then (-9999) else
> ${INPUTVAR}[l=${l},m=${m}]
> set var/bad=-9999 tmp
> list/file="${OUTPUT}"/append/nohead "CHANGE";
>
list/file="${OUTPUT}"/append/nohead/format=(${LONPOINTS}(f10.2))
tmp
> done
> done
> done
>
> But the problem is list/format=(${LONPOINTS}(f10.2))
lists the data
> from lower row. Is there any way that I can list the
data from first
> row in the up then the generated text file become
similar to what I
> see if I simply use list?!
>
> Thanks,
> Sanaz
>
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement