<div dir="auto"><div>Dear Victor,<div dir="auto"><br></div><div dir="auto">The error you are experiencing:</div><div dir="auto"><br></div><div dir="auto"><span style="font-family:sans-serif;font-size:12.8px">sr/bin/ld: no se puede encontrar -lXext</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">/usr/bin/ld: no se puede encontrar -lcairo</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">/usr/bin/ld: no se puede encontrar -lXrender</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">/usr/bin/ld: no se puede encontrar -lfontconfig</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">/usr/bin/ld: no se puede encontrar -lpixman-1</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">/usr/bin/ld: no se puede encontrar -lfreetype</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">/usr/bin/ld: no se puede encontrar -lexpat</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">/usr/bin/ld: no se puede encontrar -lpng</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">/usr/bin/ld: no se puede encontrar -lz</span><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">/usr/bin/ld: no se puede encontrar -lbz2</span><br></div><br>This suggests that you do not have the following libraries installed; xext,cairo,xrender,etc.</div><div dir="auto"><br></div><div dir="auto">However if you are sure you have them installed then it means they are not found in the usual system library path. You may have specific the path yourself. </div><div dir="auto"><br></div><div dir="auto">Hope this this is helpful. </div><div dir="auto"><br></div><div dir="auto">Sincerely, </div><div dir="auto"><br></div><div dir="auto">Peter Nunekpeku. </div><div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Fri, May 29, 2020, 6:00 PM <<a href="mailto:ncl-talk-request@ucar.edu">ncl-talk-request@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send ncl-talk mailing list submissions to<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:ncl-talk-request@ucar.edu" target="_blank" rel="noreferrer">ncl-talk-request@ucar.edu</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:ncl-talk-owner@ucar.edu" target="_blank" rel="noreferrer">ncl-talk-owner@ucar.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of ncl-talk digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Problems compiling with ncargex. (V?ctor Manuel Romero Medina)<br>
2. Format tickmarks of y-axis (Dr. Suman Maity)<br>
3. Format tickmarks of y-axis (Dr. Suman Maity)<br>
4. Re: Error subscript when using indices output from dim_pqsort<br>
to reorder another array (YAN HUIPING)<br>
5. Re: Error subscript when using indices output from dim_pqsort<br>
to reorder another array (YAN HUIPING)<br>
6. Re: Error subscript when using indices output from dim_pqsort<br>
to reorder another array (Laura Fowler)<br>
7. Re: Error subscript when using indices output from dim_pqsort<br>
to reorder another array (YAN HUIPING)<br>
8. Re: Format tickmarks of y-axis (Karin Meier-Fleischer)<br>
9. Re: Format tickmarks of y-axis (Dr. Suman Maity)<br>
10. Re: Error subscript when using indices output from dim_pqsort<br>
to reorder another array (Rashed Mahmood)<br>
11. Re: Strange Vector Behavior (Rashed Mahmood)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 28 May 2020 14:28:02 -0500<br>
From: V?ctor Manuel Romero Medina <<a href="mailto:vromero@ucaribe.edu.mx" target="_blank" rel="noreferrer">vromero@ucaribe.edu.mx</a>><br>
To: <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a><br>
Subject: [ncl-talk] Problems compiling with ncargex.<br>
Message-ID:<br>
<<a href="mailto:CAOuQwrBZ6TYHQttnr0UjsxYu0d_TJUwhzmsnSH-8FBMR-Wc0mg@mail.gmail.com" target="_blank" rel="noreferrer">CAOuQwrBZ6TYHQttnr0UjsxYu0d_TJUwhzmsnSH-8FBMR-Wc0mg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I am trying to compile example "tareas" with "ncargex" but i received next<br>
info:<br>
<br>
root@victor-All-Series:/home/victor/Ejemplos# ncargex tareas<br>
<br>
NCAR Graphics Fortran Test Example <tareas><br>
<br>
Copying tareas.f<br>
<br>
Compiling and linking...<br>
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp -O -o<br>
tareas tareas.f -L/usr/local/ncl-6.6.2/lib -L/usr/X11R6/lib64 -lncarg<br>
-lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lXrender -lfontconfig<br>
-lpixman-1 -lfreetype -lexpat -lpng -lz -lbz2<br>
/usr/bin/ld: no se puede encontrar -lXext<br>
/usr/bin/ld: no se puede encontrar -lcairo<br>
/usr/bin/ld: no se puede encontrar -lXrender<br>
/usr/bin/ld: no se puede encontrar -lfontconfig<br>
/usr/bin/ld: no se puede encontrar -lpixman-1<br>
/usr/bin/ld: no se puede encontrar -lfreetype<br>
/usr/bin/ld: no se puede encontrar -lexpat<br>
/usr/bin/ld: no se puede encontrar -lpng<br>
/usr/bin/ld: no se puede encontrar -lz<br>
/usr/bin/ld: no se puede encontrar -lbz2<br>
collect2: error: ld returned 1 exit status<br>
<br>
The compile and link failed.<br>
<br>
How can I solve it?<br>
Thanks in advance.<br>
<br>
-- <br>
Atentamente<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200528/d00db9f4/attachment-0001.html" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200528/d00db9f4/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Fri, 29 May 2020 01:16:43 +0530<br>
From: "Dr. Suman Maity" <<a href="mailto:suman.buie@gmail.com" target="_blank" rel="noreferrer">suman.buie@gmail.com</a>><br>
To: <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a><br>
Subject: [ncl-talk] Format tickmarks of y-axis<br>
Message-ID:<br>
<<a href="mailto:CAGbSuGwOtFzpFqi8W7URimCd4_E4_-4rp6FHrYKehJofW2D8Eg@mail.gmail.com" target="_blank" rel="noreferrer">CAGbSuGwOtFzpFqi8W7URimCd4_E4_-4rp6FHrYKehJofW2D8Eg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Dear all<br>
I want to plot a time series in which format of y axis should be of the<br>
form as in attached figure. Actually, the Y-axis tickmarks will be arranged<br>
in the format as 30 x 10^2 but " x 10^2" will be common for all the<br>
tickmarks and will be mentioned after highest value upward (refer enclosed<br>
figure). I did formatted the tickmarks in the format using<br>
res@tmYLFormat = "0@!;*^se"<br>
but couldn't understand how to put a common " x 10^2" for all the tickmarks.<br>
Any sort of suggestion will be of great help.<br>
<br>
Best<br>
Suman<br>
++++++++++++++++++++++++++++++++++++++++++<br>
Dr. Suman Maity<br>
Research Associate<br>
School of Atmospheric Science<br>
Sun Yat-sen University, Zhuhai campus,Tangjiawan Town<br>
Zhuhai, Guangdong, Postcode-519082,China.<br>
Phone:+86-13543861045 (China), +91-9732636778 (India)<br>
skype: reach2suman<br>
<a href="https://www.researchgate.net/profile/Suman_Maity" rel="noreferrer noreferrer" target="_blank">https://www.researchgate.net/profile/Suman_Maity</a><br>
++++++++++++++++++++++++++++++++++++++++++<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/dbc21f34/attachment-0001.html" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/dbc21f34/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Fri, 29 May 2020 01:19:28 +0530<br>
From: "Dr. Suman Maity" <<a href="mailto:suman.buie@gmail.com" target="_blank" rel="noreferrer">suman.buie@gmail.com</a>><br>
To: <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a><br>
Subject: [ncl-talk] Format tickmarks of y-axis<br>
Message-ID:<br>
<CAGbSuGyk_yqxaX9amht08-Gu2-D=<a href="mailto:Pw05Df9JEBbJTA61rcc9iA@mail.gmail.com" target="_blank" rel="noreferrer">Pw05Df9JEBbJTA61rcc9iA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Dear all<br>
I want to plot a time series in which format of y axis should be of the<br>
form as in attached figure. Actually, the Y-axis tickmarks will be arranged<br>
in the format as 30 x 10^2 but " x 10^2" will be common for all the<br>
tickmarks and will be mentioned after highest value upward (refer enclosed<br>
figure). I did formatted the tickmarks in the format using<br>
res@tmYLFormat = "0@!;*^se"<br>
but couldn't understand how to put a common " x 10^2" for all the tickmarks.<br>
Any sort of suggestion will be of great help.<br>
<br>
Best<br>
Suman<br>
<br>
<br>
++++++++++++++++++++++++++++++++++++++++++<br>
Dr. Suman Maity<br>
Research Associate<br>
School of Atmospheric Science<br>
Sun Yat-sen University, Zhuhai campus,Tangjiawan Town<br>
Zhuhai, Guangdong, Postcode-519082,China.<br>
Phone:+86-13543861045 (China), +91-9732636778 (India)<br>
skype: reach2suman<br>
<a href="https://www.researchgate.net/profile/Suman_Maity" rel="noreferrer noreferrer" target="_blank">https://www.researchgate.net/profile/Suman_Maity</a><br>
++++++++++++++++++++++++++++++++++++++++++<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/c41ce58a/attachment-0001.html" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/c41ce58a/attachment-0001.html</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: snap.jpg<br>
Type: image/jpeg<br>
Size: 23038 bytes<br>
Desc: not available<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/c41ce58a/attachment-0001.jpg" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/c41ce58a/attachment-0001.jpg</a>><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Fri, 29 May 2020 06:23:00 +0800<br>
From: YAN HUIPING <<a href="mailto:yanhp2009@gmail.com" target="_blank" rel="noreferrer">yanhp2009@gmail.com</a>><br>
To: Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank" rel="noreferrer">shea@ucar.edu</a>><br>
Cc: Ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>><br>
Subject: Re: [ncl-talk] Error subscript when using indices output from<br>
dim_pqsort to reorder another array<br>
Message-ID: <<a href="mailto:4886DBF1-1301-4D5A-BCF4-A0477ECBF4A5@gmail.com" target="_blank" rel="noreferrer">4886DBF1-1301-4D5A-BCF4-A0477ECBF4A5@gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi,<br>
I post the message<br>
<br>
<br>
the ncl script:<br>
<br>
==========================================<br>
x=PPnew<br>
print(num(ismissing(x)))<br>
y=TTnew<br>
ip=dim_pqsort_n(x,-2,3)<br>
printVarSummary(x)<br>
printVarSummary(ip)<br>
printMinMax(ip,0)<br>
print(dimsizes(ip))<br>
<br>
TTnew=y(ip,:,:,:);<br>
printMinMax(TTnew,0)<br>
=========================================<br>
<br>
(0) missing number 0<br>
<br>
Variable: x<br>
Type: float<br>
Total Size: 31948800 bytes<br>
7987200 values<br>
Number of Dimensions: 4<br>
Dimensions and sizes: [time | 12] x [lat | 160] x [lon | 320] x [LEV | 13]<br>
Coordinates: <br>
time: [20160116.875..20161216.875]<br>
lat: [89.14151942646112..-89.14151942646112]<br>
lon: [ 0..358.875]<br>
LEV: [107500..5000]<br>
Number Of Attributes: 7<br>
_FillValue : 1e+20<br>
institution : MPIMET<br>
cell_methods : time: mean<br>
table : 128<br>
code : 130<br>
units : K<br>
long_name : pressure<br>
<br>
Variable: ip<br>
Type: integer<br>
Total Size: 31948800 bytes<br>
7987200 values<br>
Number of Dimensions: 4<br>
Dimensions and sizes: [12] x [160] x [320] x [13]<br>
Coordinates: <br>
(0) min=0 max=12<br>
(0) 12<br>
(1) 160<br>
(2) 320<br>
(3) 13<br>
fatal:Illegal subscript. Subscripts must be scalar or one dimensional vectors<br>
<br>
====================<br>
<br>
Y has the same dimensions as X ([time | 12] x [lat | 160] x [lon | 320] x [LEV | 13]). And there is no missing value in X, but Y has some.<br>
<br>
<br>
Thus, I think there are some bugs here. Could you please help me look into it?<br>
<br>
Thanks,<br>
Huiping<br>
<br>
<br>
> On May 29, 2020, at 1:21 AM, Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank" rel="noreferrer">shea@ucar.edu</a>> wrote:<br>
> <br>
> Whenever you encounter an error, you should add print statements to help you debug the issue.<br>
> <br>
> printVarSummary(x) ; overview of source variable<br>
> print("-----") ; visual break<br>
> <br>
> ip = dim_pqsort(x,-2) ;; descending order<br>
> printVarSummary(ip)<br>
> prinyMinMax(ip, 0)<br>
> print("-----") <br>
> <br>
> dim_ip = dimsizes(ip)<br>
> print(dim_ip)<br>
> print("-----") <br>
> <br>
> y=y(ip,:,:,:)<br>
> =============================<br>
> Are there grid locations that contain all missing values? <br>
> <br>
> <br>
> <br>
> On Tue, May 26, 2020 at 6:36 PM YAN HUIPING via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a> <mailto:<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>>> wrote:<br>
> Hi,<br>
> I am using the function dim_pqsort to reorder an array with dimensions of (time,nlat, nlon, nlev) following the instructions <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml" rel="noreferrer noreferrer" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml</a> <<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml" rel="noreferrer noreferrer" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml</a>><br>
> <br>
> ip=dim_pqsort(x,-2);; descending order<br>
> y=y(ip,:,:,:)<br>
> <br>
> However, there are error messages: ?fatal:Illegal subscript. Subscripts must be scalar or one dimensional vectors?.<br>
> Ps: the version of NCL I used is 6.5.0<br>
> <br>
> Could please help me on this problem?<br>
> <br>
> Thanks,<br>
> Huiping<br>
> _______________________________________________<br>
> ncl-talk mailing list<br>
> <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a> <mailto:<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>><br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a> <<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/f9c4a1f2/attachment-0001.html" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/f9c4a1f2/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Fri, 29 May 2020 06:34:27 +0800<br>
From: YAN HUIPING <<a href="mailto:yanhp2009@gmail.com" target="_blank" rel="noreferrer">yanhp2009@gmail.com</a>><br>
To: Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank" rel="noreferrer">shea@ucar.edu</a>><br>
Cc: Ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>><br>
Subject: Re: [ncl-talk] Error subscript when using indices output from<br>
dim_pqsort to reorder another array<br>
Message-ID: <<a href="mailto:85D6B7E7-C8B8-40DC-BF8E-807B6A6568C8@gmail.com" target="_blank" rel="noreferrer">85D6B7E7-C8B8-40DC-BF8E-807B6A6568C8@gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Also, I tried to use a simple array as the example on the website of the function, <br>
==============================<br>
begin<br>
<br>
x=(/(/2,1,3/),(/4,6,5/)/)<br>
printVarSummary(x)<br>
print(x)<br>
ip=dim_pqsort(x,-2)<br>
print(x)<br>
<br>
printVarSummary(ip)<br>
<br>
y=(/(/2,1,3/),(/4,6,5/)/)<br>
y=y(ip,:)<br>
<br>
print(y)<br>
end<br>
============================<br>
The error message came again,<br>
<br>
Variable: x<br>
Type: integer<br>
Total Size: 24 bytes<br>
6 values<br>
Number of Dimensions: 2<br>
Dimensions and sizes: [2] x [3]<br>
Coordinates: <br>
<br>
<br>
Variable: x<br>
Type: integer<br>
Total Size: 24 bytes<br>
6 values<br>
Number of Dimensions: 2<br>
Dimensions and sizes: [2] x [3]<br>
Coordinates: <br>
(0,0) 2<br>
(0,1) 1<br>
(0,2) 3<br>
(1,0) 4<br>
(1,1) 6<br>
(1,2) 5<br>
<br>
<br>
Variable: x<br>
Type: integer<br>
Total Size: 24 bytes<br>
6 values<br>
Number of Dimensions: 2<br>
Dimensions and sizes: [2] x [3]<br>
Coordinates: <br>
(0,0) 3<br>
(0,1) 2<br>
(0,2) 1<br>
(1,0) 6<br>
(1,1) 5<br>
(1,2) 4<br>
<br>
Variable: ip<br>
Type: integer<br>
Total Size: 24 bytes<br>
6 values<br>
Number of Dimensions: 2<br>
Dimensions and sizes: [2] x [3]<br>
Coordinates: <br>
fatal:Illegal subscript. Subscripts must be scalar or one dimensional vectors<br>
<br>
fatal:["Execute.c":8640]:Execute: Error occurred at or near line 12 in file test.ncl<br>
<br>
<br>
Thanks,<br>
Huiping<br>
<br>
<br>
> On May 29, 2020, at 6:23 AM, YAN HUIPING <<a href="mailto:yanhp2009@gmail.com" target="_blank" rel="noreferrer">yanhp2009@gmail.com</a>> wrote:<br>
> <br>
> Hi,<br>
> I post the message<br>
> <br>
> <br>
> the ncl script:<br>
> <br>
> ==========================================<br>
> x=PPnew<br>
> print(num(ismissing(x)))<br>
> y=TTnew<br>
> ip=dim_pqsort_n(x,-2,3)<br>
> printVarSummary(x)<br>
> printVarSummary(ip)<br>
> printMinMax(ip,0)<br>
> print(dimsizes(ip))<br>
> <br>
> TTnew=y(ip,:,:,:);<br>
> printMinMax(TTnew,0)<br>
> =========================================<br>
> <br>
> (0) missing number 0<br>
> <br>
> Variable: x<br>
> Type: float<br>
> Total Size: 31948800 bytes<br>
> 7987200 values<br>
> Number of Dimensions: 4<br>
> Dimensions and sizes: [time | 12] x [lat | 160] x [lon | 320] x [LEV | 13]<br>
> Coordinates: <br>
> time: [20160116.875..20161216.875]<br>
> lat: [89.14151942646112..-89.14151942646112]<br>
> lon: [ 0..358.875]<br>
> LEV: [107500..5000]<br>
> Number Of Attributes: 7<br>
> _FillValue : 1e+20<br>
> institution : MPIMET<br>
> cell_methods : time: mean<br>
> table : 128<br>
> code : 130<br>
> units : K<br>
> long_name : pressure<br>
> <br>
> Variable: ip<br>
> Type: integer<br>
> Total Size: 31948800 bytes<br>
> 7987200 values<br>
> Number of Dimensions: 4<br>
> Dimensions and sizes: [12] x [160] x [320] x [13]<br>
> Coordinates: <br>
> (0) min=0 max=12<br>
> (0) 12<br>
> (1) 160<br>
> (2) 320<br>
> (3) 13<br>
> fatal:Illegal subscript. Subscripts must be scalar or one dimensional vectors<br>
> <br>
> ====================<br>
> <br>
> Y has the same dimensions as X ([time | 12] x [lat | 160] x [lon | 320] x [LEV | 13]). And there is no missing value in X, but Y has some.<br>
> <br>
> <br>
> Thus, I think there are some bugs here. Could you please help me look into it?<br>
> <br>
> Thanks,<br>
> Huiping<br>
> <br>
> <br>
>> On May 29, 2020, at 1:21 AM, Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank" rel="noreferrer">shea@ucar.edu</a> <mailto:<a href="mailto:shea@ucar.edu" target="_blank" rel="noreferrer">shea@ucar.edu</a>>> wrote:<br>
>> <br>
>> Whenever you encounter an error, you should add print statements to help you debug the issue.<br>
>> <br>
>> printVarSummary(x) ; overview of source variable<br>
>> print("-----") ; visual break<br>
>> <br>
>> ip = dim_pqsort(x,-2) ;; descending order<br>
>> printVarSummary(ip)<br>
>> prinyMinMax(ip, 0)<br>
>> print("-----") <br>
>> <br>
>> dim_ip = dimsizes(ip)<br>
>> print(dim_ip)<br>
>> print("-----") <br>
>> <br>
>> y=y(ip,:,:,:)<br>
>> =============================<br>
>> Are there grid locations that contain all missing values? <br>
>> <br>
>> <br>
>> <br>
>> On Tue, May 26, 2020 at 6:36 PM YAN HUIPING via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a> <mailto:<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>>> wrote:<br>
>> Hi,<br>
>> I am using the function dim_pqsort to reorder an array with dimensions of (time,nlat, nlon, nlev) following the instructions <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml" rel="noreferrer noreferrer" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml</a> <<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml" rel="noreferrer noreferrer" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml</a>><br>
>> <br>
>> ip=dim_pqsort(x,-2);; descending order<br>
>> y=y(ip,:,:,:)<br>
>> <br>
>> However, there are error messages: ?fatal:Illegal subscript. Subscripts must be scalar or one dimensional vectors?.<br>
>> Ps: the version of NCL I used is 6.5.0<br>
>> <br>
>> Could please help me on this problem?<br>
>> <br>
>> Thanks,<br>
>> Huiping<br>
>> _______________________________________________<br>
>> ncl-talk mailing list<br>
>> <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a> <mailto:<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>><br>
>> List instructions, subscriber options, unsubscribe:<br>
>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a> <<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/55743747/attachment-0001.html" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/55743747/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Thu, 28 May 2020 16:35:50 -0600<br>
From: Laura Fowler <<a href="mailto:laura@ucar.edu" target="_blank" rel="noreferrer">laura@ucar.edu</a>><br>
To: YAN HUIPING <<a href="mailto:yanhp2009@gmail.com" target="_blank" rel="noreferrer">yanhp2009@gmail.com</a>><br>
Cc: Ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>><br>
Subject: Re: [ncl-talk] Error subscript when using indices output from<br>
dim_pqsort to reorder another array<br>
Message-ID:<br>
<CAJxY+2wPCCyHUu=Rw33QPt1xo_UoAwvmYx0NkEtKn3E9d-X-=<a href="mailto:Q@mail.gmail.com" target="_blank" rel="noreferrer">Q@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Huiping:<br>
may be you need to add delete(TTnew) before the line:<br>
<br>
delete(TTnew)<br>
TTnew=y(ip,:,:,:);<br>
printMinMax(TTnew,0)<br>
<br>
since TTnew is originally a 4-dimensional array.<br>
Laura<br>
<br>
<br>
<br>
<br>
On Thu, May 28, 2020 at 4:23 PM YAN HUIPING via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>><br>
wrote:<br>
<br>
> Hi,<br>
> I post the message<br>
><br>
><br>
> the ncl script:<br>
><br>
> ==========================================<br>
> x=PPnew<br>
> print(num(ismissing(x)))<br>
> y=TTnew<br>
> ip=dim_pqsort_n(x,-2,3)<br>
> printVarSummary(x)<br>
> printVarSummary(ip)<br>
> printMinMax(ip,0)<br>
> print(dimsizes(ip))<br>
><br>
> TTnew=y(ip,:,:,:);<br>
> printMinMax(TTnew,0)<br>
> =========================================<br>
><br>
> (0) missing number 0<br>
><br>
> Variable: x<br>
> Type: float<br>
> Total Size: 31948800 bytes<br>
> 7987200 values<br>
> Number of Dimensions: 4<br>
> Dimensions and sizes: [time | 12] x [lat | 160] x [lon | 320] x [LEV | 13]<br>
> Coordinates:<br>
> time: [20160116.875..20161216.875]<br>
> lat: [89.14151942646112..-89.14151942646112]<br>
> lon: [ 0..358.875]<br>
> LEV: [107500..5000]<br>
> Number Of Attributes: 7<br>
> _FillValue : 1e+20<br>
> institution : MPIMET<br>
> cell_methods : time: mean<br>
> table : 128<br>
> code : 130<br>
> units : K<br>
> long_name : pressure<br>
><br>
> Variable: ip<br>
> Type: integer<br>
> Total Size: 31948800 bytes<br>
> 7987200 values<br>
> Number of Dimensions: 4<br>
> Dimensions and sizes: [12] x [160] x [320] x [13]<br>
> Coordinates:<br>
> (0) min=0 max=12<br>
> (0) 12<br>
> (1) 160<br>
> (2) 320<br>
> (3) 13<br>
> fatal:Illegal subscript. Subscripts must be scalar or one dimensional<br>
> vectors<br>
><br>
> ====================<br>
><br>
> Y has the same dimensions as X ([time | 12] x [lat | 160] x [lon | 320] x<br>
> [LEV | 13]). And there is no missing value in X, but Y has some.<br>
><br>
><br>
> Thus, I think there are some bugs here. Could you please help me look into<br>
> it?<br>
><br>
> Thanks,<br>
> Huiping<br>
><br>
><br>
> On May 29, 2020, at 1:21 AM, Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank" rel="noreferrer">shea@ucar.edu</a>> wrote:<br>
><br>
> Whenever you encounter an error, you should add print statements to help<br>
> you debug the issue.<br>
><br>
> printVarSummary(x) ; overview of source variable<br>
> print("-----") ; visual break<br>
><br>
> ip = dim_pqsort(x,-2) ;; descending order<br>
> printVarSummary(ip)<br>
> prinyMinMax(ip, 0)<br>
> print("-----")<br>
><br>
> dim_ip = dimsizes(ip)<br>
> print(dim_ip)<br>
> print("-----")<br>
><br>
> y=y(ip,:,:,:)<br>
> =============================<br>
> Are there grid locations that contain all missing values?<br>
><br>
><br>
><br>
> On Tue, May 26, 2020 at 6:36 PM YAN HUIPING via ncl-talk <<br>
> <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>> wrote:<br>
><br>
>> Hi,<br>
>> I am using the function dim_pqsort to reorder an array with dimensions of<br>
>> (time,nlat, nlon, nlev) following the instructions<br>
>> <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml" rel="noreferrer noreferrer" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml</a><br>
>><br>
>> ip=dim_pqsort(x,-2);; descending order<br>
>> y=y(ip,:,:,:)<br>
>><br>
>> However, there are error messages: ?fatal:Illegal subscript. Subscripts<br>
>> must be scalar or one dimensional vectors?.<br>
>> Ps: the version of NCL I used is 6.5.0<br>
>><br>
>> Could please help me on this problem?<br>
>><br>
>> Thanks,<br>
>> Huiping<br>
>> _______________________________________________<br>
>> ncl-talk mailing list<br>
>> <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a><br>
>> List instructions, subscriber options, unsubscribe:<br>
>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
><br>
><br>
> _______________________________________________<br>
> ncl-talk mailing list<br>
> <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a><br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
<br>
<br>
-- <br>
!-------------------------------------------------------------------------------------------------------------<br>
Laura D. Fowler<br>
<br>
Mesoscale and Microscale Meteorology Division (MMM)<br>
National Center for Atmospheric Research<br>
P.O. Box 3000, Boulder CO 80307-3000<br>
<br>
e-mail: <a href="mailto:laura@ucar.edu" target="_blank" rel="noreferrer">laura@ucar.edu</a><br>
phone: 303-497-1628<br>
<br>
!-------------------------------------------------------------------------------------------------------------<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200528/67ac401f/attachment-0001.html" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200528/67ac401f/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Fri, 29 May 2020 06:49:03 +0800<br>
From: YAN HUIPING <<a href="mailto:yanhp2009@gmail.com" target="_blank" rel="noreferrer">yanhp2009@gmail.com</a>><br>
To: Laura Fowler <<a href="mailto:laura@ucar.edu" target="_blank" rel="noreferrer">laura@ucar.edu</a>><br>
Cc: Ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>><br>
Subject: Re: [ncl-talk] Error subscript when using indices output from<br>
dim_pqsort to reorder another array<br>
Message-ID: <<a href="mailto:96394BEE-7A8D-49F9-842B-C755C525A872@gmail.com" target="_blank" rel="noreferrer">96394BEE-7A8D-49F9-842B-C755C525A872@gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Thank you Laura, I tried, but it does not help.<br>
and just now I created a simple script like the example of the function dim_pqsort ,and it came out the same errors. <br>
<br>
? fatal:Illegal subscript. Subscripts must be scalar or one dimensional vectors<br>
<br>
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 12 in file test.ncl"<br>
<br>
=========================================<br>
<br>
begin<br>
<br>
x=(/(/2,1,3/),(/4,6,5/)/)<br>
printVarSummary(x)<br>
print(x)<br>
ip=dim_pqsort(x,-2)<br>
print(x)<br>
<br>
printVarSummary(ip)<br>
<br>
y=(/(/2,1,3/),(/4,6,5/)/)<br>
y=y(ip,:)<br>
<br>
print(y)<br>
end<br>
<br>
<br>
<br>
> On May 29, 2020, at 6:35 AM, Laura Fowler <<a href="mailto:laura@ucar.edu" target="_blank" rel="noreferrer">laura@ucar.edu</a>> wrote:<br>
> <br>
> Hi Huiping:<br>
> may be you need to add delete(TTnew) before the line:<br>
> <br>
> delete(TTnew)<br>
> TTnew=y(ip,:,:,:);<br>
> printMinMax(TTnew,0)<br>
> <br>
> since TTnew is originally a 4-dimensional array.<br>
> Laura<br>
> <br>
> <br>
> <br>
> <br>
> On Thu, May 28, 2020 at 4:23 PM YAN HUIPING via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a> <mailto:<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>>> wrote:<br>
> Hi,<br>
> I post the message<br>
> <br>
> <br>
> the ncl script:<br>
> <br>
> ==========================================<br>
> x=PPnew<br>
> print(num(ismissing(x)))<br>
> y=TTnew<br>
> ip=dim_pqsort_n(x,-2,3)<br>
> printVarSummary(x)<br>
> printVarSummary(ip)<br>
> printMinMax(ip,0)<br>
> print(dimsizes(ip))<br>
> <br>
> TTnew=y(ip,:,:,:);<br>
> printMinMax(TTnew,0)<br>
> =========================================<br>
> <br>
> (0) missing number 0<br>
> <br>
> Variable: x<br>
> Type: float<br>
> Total Size: 31948800 bytes<br>
> 7987200 values<br>
> Number of Dimensions: 4<br>
> Dimensions and sizes: [time | 12] x [lat | 160] x [lon | 320] x [LEV | 13]<br>
> Coordinates: <br>
> time: [20160116.875..20161216.875]<br>
> lat: [89.14151942646112..-89.14151942646112]<br>
> lon: [ 0..358.875]<br>
> LEV: [107500..5000]<br>
> Number Of Attributes: 7<br>
> _FillValue : 1e+20<br>
> institution : MPIMET<br>
> cell_methods : time: mean<br>
> table : 128<br>
> code : 130<br>
> units : K<br>
> long_name : pressure<br>
> <br>
> Variable: ip<br>
> Type: integer<br>
> Total Size: 31948800 bytes<br>
> 7987200 values<br>
> Number of Dimensions: 4<br>
> Dimensions and sizes: [12] x [160] x [320] x [13]<br>
> Coordinates: <br>
> (0) min=0 max=12<br>
> (0) 12<br>
> (1) 160<br>
> (2) 320<br>
> (3) 13<br>
> fatal:Illegal subscript. Subscripts must be scalar or one dimensional vectors<br>
> <br>
> ====================<br>
> <br>
> Y has the same dimensions as X ([time | 12] x [lat | 160] x [lon | 320] x [LEV | 13]). And there is no missing value in X, but Y has some.<br>
> <br>
> <br>
> Thus, I think there are some bugs here. Could you please help me look into it?<br>
> <br>
> Thanks,<br>
> Huiping<br>
> <br>
> <br>
>> On May 29, 2020, at 1:21 AM, Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank" rel="noreferrer">shea@ucar.edu</a> <mailto:<a href="mailto:shea@ucar.edu" target="_blank" rel="noreferrer">shea@ucar.edu</a>>> wrote:<br>
>> <br>
>> Whenever you encounter an error, you should add print statements to help you debug the issue.<br>
>> <br>
>> printVarSummary(x) ; overview of source variable<br>
>> print("-----") ; visual break<br>
>> <br>
>> ip = dim_pqsort(x,-2) ;; descending order<br>
>> printVarSummary(ip)<br>
>> prinyMinMax(ip, 0)<br>
>> print("-----") <br>
>> <br>
>> dim_ip = dimsizes(ip)<br>
>> print(dim_ip)<br>
>> print("-----") <br>
>> <br>
>> y=y(ip,:,:,:)<br>
>> =============================<br>
>> Are there grid locations that contain all missing values? <br>
>> <br>
>> <br>
>> <br>
>> On Tue, May 26, 2020 at 6:36 PM YAN HUIPING via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a> <mailto:<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>>> wrote:<br>
>> Hi,<br>
>> I am using the function dim_pqsort to reorder an array with dimensions of (time,nlat, nlon, nlev) following the instructions <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml" rel="noreferrer noreferrer" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml</a> <<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml" rel="noreferrer noreferrer" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml</a>><br>
>> <br>
>> ip=dim_pqsort(x,-2);; descending order<br>
>> y=y(ip,:,:,:)<br>
>> <br>
>> However, there are error messages: ?fatal:Illegal subscript. Subscripts must be scalar or one dimensional vectors?.<br>
>> Ps: the version of NCL I used is 6.5.0<br>
>> <br>
>> Could please help me on this problem?<br>
>> <br>
>> Thanks,<br>
>> Huiping<br>
>> _______________________________________________<br>
>> ncl-talk mailing list<br>
>> <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a> <mailto:<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>><br>
>> List instructions, subscriber options, unsubscribe:<br>
>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a> <<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>><br>
> _______________________________________________<br>
> ncl-talk mailing list<br>
> <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a> <mailto:<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>><br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a> <<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>><br>
> <br>
> -- <br>
> !-------------------------------------------------------------------------------------------------------------<br>
> Laura D. Fowler <br>
> Mesoscale and Microscale Meteorology Division (MMM) <br>
> National Center for Atmospheric Research<br>
> P.O. Box 3000, Boulder CO 80307-3000<br>
> <br>
> e-mail: <a href="mailto:laura@ucar.edu" target="_blank" rel="noreferrer">laura@ucar.edu</a> <mailto:<a href="mailto:laura@ucar.edu" target="_blank" rel="noreferrer">laura@ucar.edu</a>><br>
> phone: 303-497-1628<br>
> <br>
> !-------------------------------------------------------------------------------------------------------------<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/e22cc138/attachment-0001.html" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/e22cc138/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Fri, 29 May 2020 08:28:00 +0200<br>
From: Karin Meier-Fleischer <<a href="mailto:meier-fleischer@dkrz.de" target="_blank" rel="noreferrer">meier-fleischer@dkrz.de</a>><br>
To: "Dr. Suman Maity" <<a href="mailto:suman.buie@gmail.com" target="_blank" rel="noreferrer">suman.buie@gmail.com</a>><br>
Cc: "ncl-talk \[ncl-talk\]" <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>><br>
Subject: Re: [ncl-talk] Format tickmarks of y-axis<br>
Message-ID: <<a href="mailto:0809C24F-AB65-4549-8427-E93FCD811279@dkrz.de" target="_blank" rel="noreferrer">0809C24F-AB65-4549-8427-E93FCD811279@dkrz.de</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Suman,<br>
<br>
for the ?x 10^2? at the nearly same position as in the plot you send, you can use the gsnLeftString resource. But you can also use the gsn_text_ndc function to add text at NDC coordinate position.<br>
<br>
-Karin<br>
<br>
> Am 28.05.2020 um 21:49 schrieb Dr. Suman Maity via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>>:<br>
> <br>
> Dear all<br>
> I want to plot a time series in which format of y axis should be of the form as in attached figure. Actually, the Y-axis tickmarks will be arranged in the format as 30 x 10^2 but " x 10^2" will be common for all the tickmarks and will be mentioned after highest value upward (refer enclosed figure). I did formatted the tickmarks in the format using <br>
> res@tmYLFormat = "0@!;*^se"<br>
> but couldn't understand how to put a common " x 10^2" for all the tickmarks.<br>
> Any sort of suggestion will be of great help.<br>
> <br>
> Best<br>
> Suman<br>
> <br>
> <br>
> ++++++++++++++++++++++++++++++++++++++++++<br>
> Dr. Suman Maity<br>
> Research Associate<br>
> School of Atmospheric Science<br>
> Sun Yat-sen University, Zhuhai campus,Tangjiawan Town<br>
> Zhuhai, Guangdong, Postcode-519082,China.<br>
> Phone:+86-13543861045 (China), +91-9732636778 (India)<br>
> skype: reach2suman<br>
> <a href="https://www.researchgate.net/profile/Suman_Maity" rel="noreferrer noreferrer" target="_blank">https://www.researchgate.net/profile/Suman_Maity</a> <<a href="https://www.researchgate.net/profile/Suman_Maity" rel="noreferrer noreferrer" target="_blank">https://www.researchgate.net/profile/Suman_Maity</a>>++++++++++++++++++++++++++++++++++++++++++<br>
> <snap.jpg>_______________________________________________<br>
> ncl-talk mailing list<br>
> <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a><br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/696e59f0/attachment-0001.html" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/696e59f0/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 9<br>
Date: Fri, 29 May 2020 12:35:35 +0530<br>
From: "Dr. Suman Maity" <<a href="mailto:suman.buie@gmail.com" target="_blank" rel="noreferrer">suman.buie@gmail.com</a>><br>
To: Karin Meier-Fleischer <<a href="mailto:meier-fleischer@dkrz.de" target="_blank" rel="noreferrer">meier-fleischer@dkrz.de</a>><br>
Cc: "ncl-talk \[ncl-talk\]" <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>><br>
Subject: Re: [ncl-talk] Format tickmarks of y-axis<br>
Message-ID:<br>
<<a href="mailto:CAGbSuGwveevg%2B3ofttUyWNB8%2Bzr6EbVw3qiywdm4L-h2PZLTNg@mail.gmail.com" target="_blank" rel="noreferrer">CAGbSuGwveevg+3ofttUyWNB8+zr6EbVw3qiywdm4L-h2PZLTNg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Thanks Karin. I solved it out as you suggested. Thanks for your help.<br>
Best<br>
Suman<br>
++++++++++++++++++++++++++++++++++++++++++<br>
Dr. Suman Maity<br>
Research Associate<br>
School of Atmospheric Science<br>
Sun Yat-sen University, Zhuhai campus,Tangjiawan Town<br>
Zhuhai, Guangdong, Postcode-519082,China.<br>
Phone:+86-13543861045 (China), +91-9732636778 (India)<br>
skype: reach2suman<br>
<a href="https://www.researchgate.net/profile/Suman_Maity" rel="noreferrer noreferrer" target="_blank">https://www.researchgate.net/profile/Suman_Maity</a><br>
++++++++++++++++++++++++++++++++++++++++++<br>
<br>
<br>
On Fri, May 29, 2020 at 11:58 AM Karin Meier-Fleischer <<br>
<a href="mailto:meier-fleischer@dkrz.de" target="_blank" rel="noreferrer">meier-fleischer@dkrz.de</a>> wrote:<br>
<br>
> Hi Suman,<br>
><br>
> for the ?x 10^2? at the nearly same position as in the plot you send, you<br>
> can use the gsnLeftString resource. But you can also use the gsn_text_ndc<br>
> function to add text at NDC coordinate position.<br>
><br>
> -Karin<br>
><br>
> Am 28.05.2020 um 21:49 schrieb Dr. Suman Maity via ncl-talk <<br>
> <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>>:<br>
><br>
> Dear all<br>
> I want to plot a time series in which format of y axis should be of the<br>
> form as in attached figure. Actually, the Y-axis tickmarks will be arranged<br>
> in the format as 30 x 10^2 but " x 10^2" will be common for all the<br>
> tickmarks and will be mentioned after highest value upward (refer enclosed<br>
> figure). I did formatted the tickmarks in the format using<br>
> res@tmYLFormat = "0@!;*^se"<br>
> but couldn't understand how to put a common " x 10^2" for all the<br>
> tickmarks.<br>
> Any sort of suggestion will be of great help.<br>
><br>
> Best<br>
> Suman<br>
><br>
><br>
> ++++++++++++++++++++++++++++++++++++++++++<br>
> Dr. Suman Maity<br>
> Research Associate<br>
> School of Atmospheric Science<br>
> Sun Yat-sen University, Zhuhai campus,Tangjiawan Town<br>
> Zhuhai, Guangdong, Postcode-519082,China.<br>
> Phone:+86-13543861045 (China), +91-9732636778 (India)<br>
> skype: reach2suman<br>
> <a href="https://www.researchgate.net/profile/Suman_Maity" rel="noreferrer noreferrer" target="_blank">https://www.researchgate.net/profile/Suman_Maity</a><br>
> ++++++++++++++++++++++++++++++++++++++++++<br>
> <snap.jpg>_______________________________________________<br>
> ncl-talk mailing list<br>
> <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a><br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
><br>
><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/0391b675/attachment-0001.html" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/0391b675/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 10<br>
Date: Fri, 29 May 2020 02:42:50 -0700<br>
From: Rashed Mahmood <<a href="mailto:rashidcomsis@gmail.com" target="_blank" rel="noreferrer">rashidcomsis@gmail.com</a>><br>
To: YAN HUIPING <<a href="mailto:yanhp2009@gmail.com" target="_blank" rel="noreferrer">yanhp2009@gmail.com</a>><br>
Cc: Ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>><br>
Subject: Re: [ncl-talk] Error subscript when using indices output from<br>
dim_pqsort to reorder another array<br>
Message-ID:<br>
<<a href="mailto:CAOmfQPqKC0nCraYBW_Qjtf3s8B9-PQZUXLgpZyiS9UXmDRP4Aw@mail.gmail.com" target="_blank" rel="noreferrer">CAOmfQPqKC0nCraYBW_Qjtf3s8B9-PQZUXLgpZyiS9UXmDRP4Aw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Huiping,<br>
I think in this case the following should work, note that your ip variable<br>
has dimensions [2,3] as you can see from the print statements:<br>
<br>
y(0,:)=y(0,ip(0,:))<br>
y(1,:)=y(1,ip(1,:))<br>
<br>
However, I guess this is not what you are trying to do for your original<br>
array of (time,nlat,nlon,nlev)?<br>
If, for example "data" is a variable name with sizes (ntime,nlat,nlon,nlev)<br>
and you want to sort out according to time dimension, you can do something<br>
as:<br>
<br>
data_new = *dim_pqsort_n*(data,*-2*,0) ; read documentation about the option -2<br>
<br>
NOTE that this will sort out your "data" variable in decreasing order.<br>
<br>
See the documentation for different of sorting in descending/ascending<br>
order.<br>
<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort_n.shtml" rel="noreferrer noreferrer" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort_n.shtml</a><br>
<br>
hope that helps,<br>
Cheers,<br>
Rashed<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Thu, May 28, 2020 at 3:49 PM YAN HUIPING via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>><br>
wrote:<br>
<br>
> Thank you Laura, I tried, but it does not help.<br>
> and just now I created a simple script like the example of the function<br>
> dim_pqsort ,and it came out the same errors.<br>
><br>
> ? fatal:Illegal subscript. Subscripts must be scalar or one dimensional<br>
> vectors<br>
><br>
> fatal:["Execute.c":8637]:Execute: Error occurred at or near line 12 in<br>
> file test.ncl"<br>
><br>
> =========================================<br>
><br>
> begin<br>
><br>
><br>
> x=(/(/2,1,3/),(/4,6,5/)/)<br>
> printVarSummary(x)<br>
> print(x)<br>
> ip=dim_pqsort(x,-2)<br>
> print(x)<br>
><br>
> printVarSummary(ip)<br>
><br>
> y=(/(/2,1,3/),(/4,6,5/)/)<br>
> y=y(ip,:)<br>
><br>
> print(y)<br>
> end<br>
><br>
><br>
><br>
> On May 29, 2020, at 6:35 AM, Laura Fowler <<a href="mailto:laura@ucar.edu" target="_blank" rel="noreferrer">laura@ucar.edu</a>> wrote:<br>
><br>
> Hi Huiping:<br>
> may be you need to add delete(TTnew) before the line:<br>
><br>
> delete(TTnew)<br>
> TTnew=y(ip,:,:,:);<br>
> printMinMax(TTnew,0)<br>
><br>
> since TTnew is originally a 4-dimensional array.<br>
> Laura<br>
><br>
><br>
><br>
><br>
> On Thu, May 28, 2020 at 4:23 PM YAN HUIPING via ncl-talk <<br>
> <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>> wrote:<br>
><br>
>> Hi,<br>
>> I post the message<br>
>><br>
>><br>
>> the ncl script:<br>
>><br>
>> ==========================================<br>
>> x=PPnew<br>
>> print(num(ismissing(x)))<br>
>> y=TTnew<br>
>> ip=dim_pqsort_n(x,-2,3)<br>
>> printVarSummary(x)<br>
>> printVarSummary(ip)<br>
>> printMinMax(ip,0)<br>
>> print(dimsizes(ip))<br>
>><br>
>> TTnew=y(ip,:,:,:);<br>
>> printMinMax(TTnew,0)<br>
>> =========================================<br>
>><br>
>> (0) missing number 0<br>
>><br>
>> Variable: x<br>
>> Type: float<br>
>> Total Size: 31948800 bytes<br>
>> 7987200 values<br>
>> Number of Dimensions: 4<br>
>> Dimensions and sizes: [time | 12] x [lat | 160] x [lon | 320] x [LEV |<br>
>> 13]<br>
>> Coordinates:<br>
>> time: [20160116.875..20161216.875]<br>
>> lat: [89.14151942646112..-89.14151942646112]<br>
>> lon: [ 0..358.875]<br>
>> LEV: [107500..5000]<br>
>> Number Of Attributes: 7<br>
>> _FillValue : 1e+20<br>
>> institution : MPIMET<br>
>> cell_methods : time: mean<br>
>> table : 128<br>
>> code : 130<br>
>> units : K<br>
>> long_name : pressure<br>
>><br>
>> Variable: ip<br>
>> Type: integer<br>
>> Total Size: 31948800 bytes<br>
>> 7987200 values<br>
>> Number of Dimensions: 4<br>
>> Dimensions and sizes: [12] x [160] x [320] x [13]<br>
>> Coordinates:<br>
>> (0) min=0 max=12<br>
>> (0) 12<br>
>> (1) 160<br>
>> (2) 320<br>
>> (3) 13<br>
>> fatal:Illegal subscript. Subscripts must be scalar or one dimensional<br>
>> vectors<br>
>><br>
>> ====================<br>
>><br>
>> Y has the same dimensions as X ([time | 12] x [lat | 160] x [lon | 320]<br>
>> x [LEV | 13]). And there is no missing value in X, but Y has some.<br>
>><br>
>><br>
>> Thus, I think there are some bugs here. Could you please help me look<br>
>> into it?<br>
>><br>
>> Thanks,<br>
>> Huiping<br>
>><br>
>><br>
>> On May 29, 2020, at 1:21 AM, Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank" rel="noreferrer">shea@ucar.edu</a>> wrote:<br>
>><br>
>> Whenever you encounter an error, you should add print statements to help<br>
>> you debug the issue.<br>
>><br>
>> printVarSummary(x) ; overview of source variable<br>
>> print("-----") ; visual break<br>
>><br>
>> ip = dim_pqsort(x,-2) ;; descending order<br>
>> printVarSummary(ip)<br>
>> prinyMinMax(ip, 0)<br>
>> print("-----")<br>
>><br>
>> dim_ip = dimsizes(ip)<br>
>> print(dim_ip)<br>
>> print("-----")<br>
>><br>
>> y=y(ip,:,:,:)<br>
>> =============================<br>
>> Are there grid locations that contain all missing values?<br>
>><br>
>><br>
>><br>
>> On Tue, May 26, 2020 at 6:36 PM YAN HUIPING via ncl-talk <<br>
>> <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>> wrote:<br>
>><br>
>>> Hi,<br>
>>> I am using the function dim_pqsort to reorder an array with dimensions<br>
>>> of (time,nlat, nlon, nlev) following the instructions<br>
>>> <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml" rel="noreferrer noreferrer" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_pqsort.shtml</a><br>
>>><br>
>>> ip=dim_pqsort(x,-2);; descending order<br>
>>> y=y(ip,:,:,:)<br>
>>><br>
>>> However, there are error messages: ?fatal:Illegal subscript. Subscripts<br>
>>> must be scalar or one dimensional vectors?.<br>
>>> Ps: the version of NCL I used is 6.5.0<br>
>>><br>
>>> Could please help me on this problem?<br>
>>><br>
>>> Thanks,<br>
>>> Huiping<br>
>>> _______________________________________________<br>
>>> ncl-talk mailing list<br>
>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a><br>
>>> List instructions, subscriber options, unsubscribe:<br>
>>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>><br>
>><br>
>> _______________________________________________<br>
>> ncl-talk mailing list<br>
>> <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a><br>
>> List instructions, subscriber options, unsubscribe:<br>
>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
><br>
><br>
><br>
> --<br>
><br>
> !-------------------------------------------------------------------------------------------------------------<br>
> Laura D. Fowler<br>
><br>
> Mesoscale and Microscale Meteorology Division (MMM)<br>
> National Center for Atmospheric Research<br>
> P.O. Box 3000, Boulder CO 80307-3000<br>
><br>
> e-mail: <a href="mailto:laura@ucar.edu" target="_blank" rel="noreferrer">laura@ucar.edu</a><br>
> phone: 303-497-1628<br>
><br>
><br>
> !-------------------------------------------------------------------------------------------------------------<br>
><br>
><br>
> _______________________________________________<br>
> ncl-talk mailing list<br>
> <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a><br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/41843b21/attachment-0001.html" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/41843b21/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 11<br>
Date: Fri, 29 May 2020 09:58:29 -0700<br>
From: Rashed Mahmood <<a href="mailto:rashidcomsis@gmail.com" target="_blank" rel="noreferrer">rashidcomsis@gmail.com</a>><br>
To: Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank" rel="noreferrer">barry.h.lynn@gmail.com</a>><br>
Cc: ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>><br>
Subject: Re: [ncl-talk] Strange Vector Behavior<br>
Message-ID:<br>
<<a href="mailto:CAOmfQPp7n24mC31uEaDJROUEju9-c9BLHJ7hQ%2Be6vYJmz_LoqA@mail.gmail.com" target="_blank" rel="noreferrer">CAOmfQPp7n24mC31uEaDJROUEju9-c9BLHJ7hQ+e6vYJmz_LoqA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Barry,<br>
I have not used WRF routines so I am not sure if the following would work,<br>
however, if you want to thin your vectors it is better to use the resource<br>
" *vcMinDistanceF*", you might need to play with it a bit to get the<br>
desired look.<br>
See description here:<br>
<a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/vc.shtml" rel="noreferrer noreferrer" target="_blank">https://www.ncl.ucar.edu/Document/Graphics/Resources/vc.shtml</a><br>
<br>
Cheers,<br>
Rashed<br>
<br>
<br>
<br>
<br>
On Thu, May 28, 2020 at 5:30 AM Barry Lynn via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>><br>
wrote:<br>
<br>
> Hello:<br>
><br>
> I left out the text.<br>
><br>
> Before copying it, I have to mention that the cross-section is an excerpt<br>
> from the entire domain. But, radar, etc, and temperature (not shown)<br>
> contour correctly. That is, temperature maps correctly.<br>
><br>
> The excerpted winds seem to be mapping to just 1/4 of the domain.<br>
><br>
> Hello:<br>
><br>
> I am making vertical cross-sections.<br>
><br>
> I wanted to map vectors onto the map, but when I thin the data to plot<br>
> fewer vectors I end up with the vectors going 1/4 of the way across,<br>
> rather than just getting a thinner plotting of the vector data.<br>
><br>
> The full vector plotting is without the "::4." WIth the ::4, I get just<br>
> 1/4 of the cross-section covered.<br>
><br>
> These lines cause the problem.<br>
><br>
> plot_a = gsn_vector(wks,u_plane_a<br>
> (0:zmax_pos,::4),v_plane_a(0:zmax_pos,::4),vecres)<br>
><br>
> plot_b =<br>
> gsn_vector(wks,u_plane_b(0:zmax_pos,::4),v_plane_b(0:zmax_pos,::4),vecres)<br>
><br>
> plot_c =<br>
> gsn_vector(wks,u_plane_c(0:zmax_pos,::4),v_plane_c(0:zmax_pos,::4),vecres)<br>
><br>
><br>
> I have attached the code. I am not sure why this doesn't work, since it<br>
> generally works as advertised. One comment: I am subsetting the u,v data<br>
> before plotting it.<br>
><br>
><br>
> Code attached. Sorry it's so long!<br>
><br>
> On Thu, May 28, 2020 at 2:00 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank" rel="noreferrer">barry.h.lynn@gmail.com</a>> wrote:<br>
><br>
>><br>
>><br>
>> --<br>
>> Barry H. Lynn, Ph.D<br>
>> Senior Associate Scientist, Lecturer,<br>
>> The Institute of the Earth Science,<br>
>> The Hebrew University of Jerusalem,<br>
>> Givat Ram, Jerusalem 91904, Israel<br>
>> Tel: 972 547 231 170<br>
>> Fax: (972)-25662581<br>
>><br>
>> C.E.O, Weather It Is, LTD<br>
>> Weather and Climate Focus<br>
>> <a href="http://weather-it-is.com" rel="noreferrer noreferrer" target="_blank">http://weather-it-is.com</a><br>
>> Jerusalem, Israel<br>
>> Local: 02 930 9525<br>
>> Cell: 054 7 231 170<br>
>> Int-IS: x972 2 930 9525<br>
>><br>
>><br>
><br>
> --<br>
> Barry H. Lynn, Ph.D<br>
> Senior Associate Scientist, Lecturer,<br>
> The Institute of the Earth Science,<br>
> The Hebrew University of Jerusalem,<br>
> Givat Ram, Jerusalem 91904, Israel<br>
> Tel: 972 547 231 170<br>
> Fax: (972)-25662581<br>
><br>
> C.E.O, Weather It Is, LTD<br>
> Weather and Climate Focus<br>
> <a href="http://weather-it-is.com" rel="noreferrer noreferrer" target="_blank">http://weather-it-is.com</a><br>
> Jerusalem, Israel<br>
> Local: 02 930 9525<br>
> Cell: 054 7 231 170<br>
> Int-IS: x972 2 930 9525<br>
><br>
> _______________________________________________<br>
> ncl-talk mailing list<br>
> <a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a><br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/4dc21a1d/attachment-0001.html" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200529/4dc21a1d/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
------------------------------<br>
<br>
End of ncl-talk Digest, Vol 198, Issue 34<br>
*****************************************<br>
</blockquote></div></div></div>