<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Be careful! <div class=""><br class=""></div><div class=""><blockquote type="cite" class="">abossola@olivia:~/Adriana/CESM/MAM7/MAM7_tes4$ gcc--version<br class="">gcc--version: command not found</blockquote><div class=""><br class=""></div>It should be gcc --version (NOTE THE SPACE!!) and not gcc--version </div><div class=""><br class=""></div><div class="">You do the same error afterwards </div><div class=""><br class=""></div><div class=""><blockquote type="cite" class="">ncl 1> ncl-V</blockquote><div class=""><br class=""></div>instead than ncl -V, although also this command should be executed oustide of NCL (only in the bash). The commands uname -a and gcc --version as well need to be executed outside of NCL.</div><div class=""><br class=""></div><div class="">I'd suggest you to have a general introduction on Linux and NCL before attempting to fix your plot.</div><div class=""><br class=""></div><div class="">However, did you try the script that Dennis sent? <br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 23. Aug 2018, at 11:12, <a href="mailto:adriana.bossolasco@cnrs-orleans.fr" class="">adriana.bossolasco@cnrs-orleans.fr</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi<br class=""><br class="">I try the commands and this is what I obtain:<br class=""><br class="">abossola@olivia:~/Adriana/CESM/MAM7/MAM7_tes4$ ncl -V<br class="">6.4.0<br class="">abossola@olivia:~/Adriana/CESM/MAM7/MAM7_tes4$ uname -a<br class="">Linux olivia 4.15.0-32-generic #35-Ubuntu SMP Fri Aug 10 17:58:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux<br class="">abossola@olivia:~/Adriana/CESM/MAM7/MAM7_tes4$ gcc--version<br class="">gcc--version: command not found<br class=""><br class="">Other wise if I type this command in the ncl shell, then says:<br class=""><br class="">ncl 1> ncl-V<br class="">fatal:syntax error: line 1 before or near -<br class="">ncl-<br class=""><br class="">ncl 3> uname -a<br class="">fatal:syntax error: line 3 before or near -<br class="">uname -<br class="">------^<br class=""><br class="">fatal:error in statement<br class="">ncl 4> gcc--version<br class="">fatal:syntax error: line 4 before or near -<br class=""> gcc-<br class="">----^<br class=""><br class="">fatal:error in statement<br class=""><br class="">I know that it is very strange because in my old computer everything working, it could be due to the version of Linux?<br class=""><br class="">This is my version now:<br class="">NAME="Ubuntu"<br class="">VERSION="18.04.1 LTS (Bionic Beaver)"<br class="">ID=ubuntu<br class="">ID_LIKE=debian<br class="">PRETTY_NAME="Ubuntu 18.04.1 LTS"<br class="">VERSION_ID="18.04"<br class="">HOME_URL="<a href="https://www.ubuntu.com/" class="">https://www.ubuntu.com/</a>"<br class="">SUPPORT_URL="<a href="https://help.ubuntu.com/" class="">https://help.ubuntu.com/</a>"<br class="">BUG_REPORT_URL="<a href="https://bugs.launchpad.net/ubuntu/" class="">https://bugs.launchpad.net/ubuntu/</a>"<br class="">PRIVACY_POLICY_URL="<a href="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" class="">https://www.ubuntu.com/legal/terms-and-policies/privacy-policy</a>"<br class="">VERSION_CODENAME=bionic<br class="">UBUNTU_CODENAME=bionic<br class=""><br class="">I really appreciate any help!<br class=""><br class="">Le 22/08/2018 17:58, Dennis Shea a écrit :<br class=""><blockquote type="cite" class="">Sorry. I accidentally hit "Send".<br class="">Attached is the 2nd plot.<br class="">On Wed, Aug 22, 2018 at 9:56 AM, Dennis Shea <<a href="mailto:shea@ucar.edu" class="">shea@ucar.edu</a>> wrote:<br class=""><blockquote type="cite" class="">Not sure why you are not getting color.<br class="">If the following does not create color then please send the output<br class="">from<br class="">%> ncl -V<br class="">%> uname -a<br class="">%> gcc--version<br class="">=========<br class="">;---read in zonal winds<br class="">;a = addfile("MAM_GEOS_1anee.cam.h0.2000-12-07-00000.nc [1]","r")<br class="">;u = a->U(0,35,:,:)<br class="">a = addfile("uwnd.2008.nc [2]","r")<br class="">u = a->uwnd(0,10,:,:)<br class="">printVarSummary (u)<br class="">;print(u)<br class="">wks = gsn_open_wks("png","adriana") ; send graphics to PNG file<br class="">res = True<br class="">res@gsnMaximize = True ; maximize in frame<br class="">res@cnLinesOn = True<br class="">res@cnFillOn = True<br class="">res@cnFillPalette = "BlueYellowRed" ; change the color palette<br class="">res@tiMainString = "Default"<br class="">plot = gsn_csm_contour_map(wks,u,res)<br class="">res@mpFillDrawOrder = "PostDraw" ; Make sure land fill is drawn<br class="">; on top of filled contours<br class="">res@tiMainString = "add gray land fill after contouring"<br class="">plot = gsn_csm_contour_map(wks,u,res)<br class="">On Wed, Aug 22, 2018 at 2:22 AM,<br class=""><<a href="mailto:adriana.bossolasco@cnrs-orleans.fr" class="">adriana.bossolasco@cnrs-orleans.fr</a>> wrote:<br class="">Hi thank you very much for the answer<br class="">I corrected U and print the variable for see if this have values<br class="">now is U(0,34,:,:)<br class="">Variable: u<br class="">Type: float<br class="">Total Size: 55296 bytes<br class="">13824 values<br class="">Number of Dimensions: 2<br class="">Dimensions and sizes: [lat | 96] x [lon | 144]<br class="">Coordinates:<br class="">lat: [ -90.. 90]<br class="">lon: [ 0..357.5]<br class="">Number Of Attributes: 6<br class="">lev : 581.2501460313797<br class="">time : 327<br class="">mdims : 1<br class="">units : m/s<br class="">long_name : Zonal wind<br class="">cell_methods : time: mean<br class="">And also have values, I checked it with print(u)<br class="">But still the graphic is empty (white, no contour fill)<br class="">On the other hand I can not access to <a href="http://ftp.cgd.ucar.edu" class="">ftp.cgd.ucar.edu</a> [3] for<br class="">attach my file. Say:<br class="">ERROR<br class="">The requested URL could not be retrieved<br class="">Any other idea how can I pass the file<br class="">MAM_GEOS_1anee.cam.h0.2000-12-07-00000.nc [1]<br class="">Thank you very much<br class="">Le 21/08/2018 20:36, Dennis Shea a écrit :<br class="">[0]<br class="">If you are just learning NCL, I suggest you look at the USER MANUAL<br class="">at:<br class=""><a href="HTTP://WWW.NCL.UCAR.EDU/DOCUMENT/MANUALS/" class="">HTTP://WWW.NCL.UCAR.EDU/DOCUMENT/MANUALS/</a> [4] [6]<br class="">[1]<br class="">As noted by Toni,<br class="">u = U(0,,:,:)<br class="">is not correct. In fact, it should have generated a FATAL subscript<br class="">syntax error.<br class="">Note: although "fatal", NCL will continue. In fact, it will still<br class="">try<br class="">to create the plot. Since it did not have valid data, NCL generated<br class="">a<br class="">background and a default color lable bar. That is what you attached.<br class="">[2]<br class="">Your following resource setting needs some clarification:<br class="">res@tiMainString = "NCL version 6.1.x will give you gray land"<br class="">For historical reasons, NCL's default graphic mode is<br class="">black-and-white<br class="">(B/W). This is true of *all* NCL versions. Not just 6.1.x.<br class="">When, 'gsn_csm_contour_map' is used, the default background is<br class="">continental outlines with light gray used to fill land areas. See:<br class=""><a href="HTTP://WWW.NCL.UCAR.EDU/APPLICATIONS/CYLINEQ.SHTML" class="">HTTP://WWW.NCL.UCAR.EDU/APPLICATIONS/CYLINEQ.SHTML</a> [5] [7]<br class="">Examples 1 and 2<br class="">Color is turned on via:<br class="">res@cnFillOn = True ; make color graphic<br class="">When color is activated, (a) the background map including the light<br class="">gray land fil is generated; then, (b) the color contour are drawn<br class="">over<br class="">that background. The light gray land fill is overwritten (no big<br class="">deal). The following resource setting tells the<br class="">'gsn_csm_contour_map'<br class="">do the colr contours and then force the gray land fill last. [There<br class="">are some reasons for doing that.]<br class="">res@mpFillDrawOrder = "PostDraw" ; Make sure land fill is drawn<br class="">; on top of filled contours<br class="">[3]<br class="">If you want you can ftp a sample file to:<br class="">ftp <a href="http://ftp.cgd.ucar.edu" class="">ftp.cgd.ucar.edu</a> [3] [8]<br class="">anonymous<br class="">your_email<br class="">cd incoming<br class="">put MAM_GEOS_1anee.cam.h0.2000-12-07-00000.nc [1] [9]<br class="">quit<br class="">On Tue, Aug 21, 2018 at 9:45 AM, Toni Klemm <<a href="mailto:toni-klemm@tamu.edu" class="">toni-klemm@tamu.edu</a>><br class="">wrote:<br class="">Hi Adriana,<br class="">I noticed there are two commas in the command to extract the sind<br class="">vectors: u = a->U(0,,:,:) Could that be the problem?<br class="">Could you attach the netCDF file from the example that you’re<br class="">using? (MAM_GEOS_1anee.cam.h0.2000-12-07-00000.nc [1] [1])<br class="">Toni<br class="">Toni Klemm, Ph.D.<br class="">Postdoctoral Research Associate<br class="">Department of Ecosystem Science and Management<br class="">College of Agriculture and Life Sciences<br class="">Texas A&M University, College Station, TX<br class="">Contributor to the Early Career Climate Forum [3]<br class=""><a href="http://www.toni-klemm.de" class="">www.toni-klemm.de</a> [6] [4] | @toniklemm [5]<br class="">On Aug 21, 2018, at 10:01 AM, <a href="mailto:adriana.bossolasco@cnrs-orleans.fr" class="">adriana.bossolasco@cnrs-orleans.fr</a><br class="">wrote:<br class="">Hi all<br class="">I have a problem with ncl when I try to plot a contour graphic. I<br class="">thought it was a mistake I was making, but then when I try with a<br class="">example very simple still appears blank. And ncl does not tell me<br class="">any error.<br class="">Here is the script (have my file but is exactly the same that<br class="">newcolor_1.ncl)<br class="">;************************************************<br class="">; zonal_2.ncl<br class="">;<br class="">; Concepts illustrated:<br class="">; - Drawing a zonal means plot<br class="">; - Using dim_avg_Wrap to calculate a zonal average<br class="">;************************************************<br class="">;load "/usr/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br class="">;load "/usr/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br class="">;load "/usr/lib/ncarg/nclscripts/csm/contributed.ncl"<br class="">;************************************************<br class="">begin<br class="">;************************************************<br class="">; variable and file handling<br class="">;************************************************<br class="">;---read in zonal winds<br class="">a = addfile("MAM_GEOS_1anee.cam.h0.2000-12-07-00000.nc [1]<br class="">[1]","r")<br class="">u = a->U(0,,:,:) ; July zonal<br class="">winds<br class="">wks = gsn_open_wks("png","newcolor") ; send graphics to PNG<br class="">file<br class="">res = True<br class="">res@gsnMaximize = True ; maximize in frame<br class="">res@cnLinesOn = False<br class="">res@cnFillOn = True<br class="">res@cnFillPalette = "BlueYellowRed" ; change the color<br class="">palette<br class="">res@mpFillDrawOrder = "PostDraw" ; Make sure land fill is drawn<br class="">; on top of filled contours<br class="">res@tiMainString = "NCL version 6.1.x will give you gray land"<br class="">plot = gsn_csm_contour_map(wks,u,res)<br class="">end<br class="">I obtained a map without color fill, I was looking in some<br class="">previous talk but nothing works. Can Anyone help me on this?<br class="">thanks<br class="">I attached the maps<br class="">Thank you<br class="">--<br class="">Adriana Bossolasco<br class="">LPC2E UMR 7328 (CNRS, Université d'Orléans)<br class="">3A avenue de la Recherche Scientifique<br class="">45071 Orléans Cedex 2 - FRANCE<br class="">Tel +33 (0)2 38 25 52 85<br class="">e-mail:<br class=""></blockquote><a href="mailto:adriana.bossolasco@cnrs-orleans.fr" class="">adriana.bossolasco@cnrs-orleans.fr</a><newcolor.png>_______________________________________________<br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk [7] [2]<br class=""></blockquote>_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk [7] [2]<br class=""></blockquote>Links:<br class="">------<br class="">[1] <a href="http://mam_geos_1anee.cam.h0.2000-12-07-00000.nc" class="">http://MAM_GEOS_1anee.cam.h0.2000-12-07-00000.nc</a> [1]<br class="">[2] <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a> [7]<br class="">[3] <a href="http://www.eccforum.org" class="">http://www.eccforum.org</a><br class="">[4] <a href="http://www.toni-klemm.de" class="">http://www.toni-klemm.de</a><br class="">[5] <a href="http://twitter.com/toniklemm" class="">http://twitter.com/toniklemm</a><br class="">[6] <a href="http://www.ncl.ucar.edu/Document/Manuals/" class="">http://www.ncl.ucar.edu/Document/Manuals/</a> [8]<br class="">[7] <a href="http://www.ncl.ucar.edu/Applications/cylineq.shtml" class="">http://www.ncl.ucar.edu/Applications/cylineq.shtml</a> [9]<br class="">[8] <a href="http://ftp.cgd.ucar.edu" class="">http://ftp.cgd.ucar.edu</a><br class="">[9] <a href="http://12-07-00000.nc" class="">http://12-07-00000.nc</a><br class=""> --<br class="">Adriana Bossolasco<br class="">LPC2E UMR 7328 (CNRS, Université d'Orléans)<br class="">3A avenue de la Recherche Scientifique<br class="">45071 Orléans Cedex 2 - FRANCE<br class="">Tel +33 (0)2 38 25 52 85<br class=""><a href="mailto:adriana.bossolasco@cnrs-orleans.fr" class="">e-mail: adriana.bossolasco@cnrs-orleans.fr</a><br class="">Links:<br class="">------<br class="">[1] http://MAM_GEOS_1anee.cam.h0.2000-12-07-00000.nc<br class="">[2] http://uwnd.2008.nc<br class="">[3] http://ftp.cgd.ucar.edu<br class="">[4] HTTP://WWW.NCL.UCAR.EDU/DOCUMENT/MANUALS/<br class="">[5] HTTP://WWW.NCL.UCAR.EDU/APPLICATIONS/CYLINEQ.SHTML<br class="">[6] http://www.toni-klemm.de<br class="">[7] http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class="">[8] http://www.ncl.ucar.edu/Document/Manuals/<br class="">[9] http://www.ncl.ucar.edu/Applications/cylineq.shtml<br class=""></blockquote><br class="">-- <br class="">Adriana Bossolasco<br class="">LPC2E UMR 7328 (CNRS, Université d'Orléans)<br class="">3A avenue de la Recherche Scientifique<br class="">45071 Orléans Cedex 2 - FRANCE<br class="">Tel +33 (0)2 38 25 52 85<br class=""><a href="mailto:adriana.bossolasco@cnrs-orleans.fr" class="">e-mail: adriana.bossolasco@cnrs-orleans.fr</a><br class="">_______________________________________________<br class="">ncl-talk mailing list<br class="">ncl-talk@ucar.edu<br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">Guido Cioni</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://guidocioni.altervista" class="">http://guidocioni.altervista</a>.org</div>
</div>
<br class=""></div></body></html>