From carvandar at hotmail.com Mon Nov 4 05:12:13 2024 From: carvandar at hotmail.com (Carina V. Barca) Date: Mon, 4 Nov 2024 12:12:13 +0000 Subject: [ncl-talk] ncl problem with shapefile. Message-ID: Good afternoon, I installed ncl 6.2 using conda, I can make the precipitation graph for example, but when I load the shapefile it shows me lines, and the file is fine, the shape that makes the lines. I attach the image that does not draw the shapefile and one that does. Thanks! Enviado desde Outlook -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: precipitacion.000011.png Type: image/png Size: 104770 bytes Desc: precipitacion.000011.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: precipitacion.png Type: image/png Size: 18536 bytes Desc: precipitacion.png URL: From barry.h.lynn at gmail.com Tue Nov 5 02:44:56 2024 From: barry.h.lynn at gmail.com (Barry Lynn) Date: Tue, 5 Nov 2024 11:44:56 +0200 Subject: [ncl-talk] Trying to add a greek character Message-ID: Hello: I have spent the last hour or so plus trying to decipher the manual, which is often very well documented. I can't find how to add "Delta" to my text that appears below my bar graph. txres = True delta_var_name = gsn_text_ndc(wks,":F8:d",.2,.6,txres) + " Liquid Water (g m~S~-3~N~)" pnlres at lbTitleString = delta_var_name This gives me an error, and this also gives me an error. fatal:syntax error: line 376 in file ./diff_vert_aligned_liquid.ncl before or near : delta = "gsn_text_ndc(wks,": -------------------------------^ I need to present the "Delta" in front of the text "Liquid Water..." Thank you. -- Barry H. Lynn, Ph.D Senior Scientist, Lecturer, The Institute of Earth Sciences, The Hebrew University of Jerusalem, Givat Ram, Jerusalem 91904, Israel Tel: 972 547 231 170 Fax: (972)-25662581 Weather It Is, LTD Weather and Climate Focus https://weather-it-is.com Jerusalem, Israel Local: 02 930 9525 Cell: 054 7 231 170 Int-IS: x972 2 930 9525 -------------- next part -------------- An HTML attachment was scrubbed... URL: From meier-fleischer at dkrz.de Tue Nov 5 04:39:18 2024 From: meier-fleischer at dkrz.de (Karin Meier-Fleischer) Date: Tue, 5 Nov 2024 12:39:18 +0100 Subject: [ncl-talk] Trying to add a greek character In-Reply-To: References: Message-ID: <4b24ac2c-96e2-4962-832d-5fa5775bfee8@dkrz.de> Hi Barry, just use the labelbar resource @lbTitleString: ? pnlres at lbTitleString??? = "~F33~D~F21~" + " Liquid Water (g m~S~-3~N~)" Regards, Karin Am 05.11.24 um 10:44 schrieb Barry Lynn via ncl-talk: > Hello: > > I have spent the last hour or so plus trying to decipher the manual, > which is often very well documented. > > I can't find how to add? "Delta" to my text that appears below my bar > graph. > > txres = True > > delta_var_name = gsn_text_ndc(wks,":F8:d",.2,.6,txres) + " Liquid > Water (g m~S~-3~N~)" > > pnlres at lbTitleString= delta_var_name > > > This gives me an error, and this also gives me an error. > > > fatal:syntax error: line 376 in file ./diff_vert_aligned_liquid.ncl > before or near : > > delta = "gsn_text_ndc(wks,": > > -------------------------------^ > > > I need to present the "Delta" in front of the text "Liquid Water..." > > Thank you. > -- > > Barry H. Lynn, Ph.D > Senior Scientist, Lecturer, > The Institute of Earth Sciences, > The Hebrew University of Jerusalem, > Givat Ram, Jerusalem 91904, Israel > Tel: 972 547 231 170 > Fax: (972)-25662581 > > Weather It Is, LTD > Weather and Climate Focus > https://weather-it-is.com > Jerusalem, Israel > Local: 02 930 9525 > Cell: 054 7 231 170 > Int-IS: x972 2 930 9525 > > > _______________________________________________ > ncl-talk mailing list > ncl-talk at mailman.ucar.edu > List instructions, subscriber options, unsubscribe: > https://mailman.ucar.edu/mailman/listinfo/ncl-talk -- Dipl. Geophys. Karin Meier-Fleischer Visualization Group - Python, CDO, NCL Application Support Deutsches Klimarechenzentrum GmbH (DKRZ) Bundesstrasse 45a - D-20146 Hamburg - Germany Phone: +49 (0)40 460094 126 Fax: +49 (0)40 460094 270 E-Mail:meier-fleischer at dkrz.de URL:www.dkrz.de Gesch?ftsf?hrer: Prof. Dr. Thomas Ludwig Sitz der Gesellschaft: Hamburg Amtsgericht Hamburg HRB 39784 -------------- next part -------------- An HTML attachment was scrubbed... URL: From barry.h.lynn at gmail.com Tue Nov 5 04:41:01 2024 From: barry.h.lynn at gmail.com (Barry Lynn) Date: Tue, 5 Nov 2024 13:41:01 +0200 Subject: [ncl-talk] Trying to add a greek character In-Reply-To: References: Message-ID: Hi: Thank you. Is that listed on some page you can remember? Barry H. Lynn, Ph.D Senior Scientist, Lecturer, The Institute of Earth Sciences, The Hebrew University of Jerusalem, Givat Ram, Jerusalem 91904, Israel Tel: 972 547 231 170 Fax: (972)-25662581 Weather It Is, LTD Weather and Climate Focus https://weather-it-is.com Jerusalem, Israel Local: 02 930 9525 Cell: 054 7 231 170 Int-IS: x972 2 930 9525 On Tue, 5 Nov 2024 at 11:44 Barry Lynn wrote: > Hello: > > I have spent the last hour or so plus trying to decipher the manual, which > is often very well documented. > > I can't find how to add "Delta" to my text that appears below my bar > graph. > > txres = True > > delta_var_name = gsn_text_ndc(wks,":F8:d",.2,.6,txres) + " Liquid > Water (g m~S~-3~N~)" > > pnlres at lbTitleString = delta_var_name > > > This gives me an error, and this also gives me an error. > > > fatal:syntax error: line 376 in file ./diff_vert_aligned_liquid.ncl > before or near : > > delta = "gsn_text_ndc(wks,": > > -------------------------------^ > > I need to present the "Delta" in front of the text "Liquid Water..." > > Thank you. > -- > > Barry H. Lynn, Ph.D > Senior Scientist, Lecturer, > The Institute of Earth Sciences, > The Hebrew University of Jerusalem, > Givat Ram, Jerusalem 91904, Israel > Tel: 972 547 231 170 > Fax: (972)-25662581 > > Weather It Is, LTD > Weather and Climate Focus > https://weather-it-is.com > Jerusalem, Israel > Local: 02 930 9525 > Cell: 054 7 231 170 > Int-IS: x972 2 930 9525 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From meier-fleischer at dkrz.de Tue Nov 5 04:44:06 2024 From: meier-fleischer at dkrz.de (Karin Meier-Fleischer) Date: Tue, 5 Nov 2024 12:44:06 +0100 Subject: [ncl-talk] Trying to add a greek character In-Reply-To: References: Message-ID: You can find the hint on the examples text page in the xy_10.ncl script https://www.ncl.ucar.edu/Applications/Scripts/xy_10.ncl Or in the labelbar examples. Am 05.11.24 um 12:41 schrieb Barry Lynn via ncl-talk: > Hi: > > Thank you. > > Is that listed on some page you can remember? > > > Barry H. Lynn, Ph.D > Senior Scientist, Lecturer, > The Institute of Earth Sciences, > The Hebrew University of Jerusalem, > Givat Ram, Jerusalem 91904, Israel > Tel: 972 547 231 170 > Fax: (972)-25662581 > > Weather It Is, LTD > Weather and Climate Focus > https://weather-it-is.com > Jerusalem, Israel > Local: 02 930 9525 > Cell: 054 7 231 170 > Int-IS: x972 2 930 9525 > > > > On Tue, 5 Nov 2024 at 11:44 Barry Lynn wrote: > > Hello: > > I have spent the last hour or so plus trying to decipher the > manual, which is often very well documented. > > I can't find how to add? "Delta" to my text that appears below my > bar graph. > > txres = True > > delta_var_name = gsn_text_ndc(wks,":F8:d",.2,.6,txres) + " Liquid > Water (g m~S~-3~N~)" > > pnlres at lbTitleString= delta_var_name > > > This gives me an error, and this also gives me an error. > > > fatal:syntax error: line 376 in file > ./diff_vert_aligned_liquid.ncl before or near : > > delta = "gsn_text_ndc(wks,": > > -------------------------------^ > > > I need to present the "Delta" in front of the text "Liquid Water..." > > Thank you. > -- > > Barry H. Lynn, Ph.D > Senior Scientist, Lecturer, > The Institute of Earth Sciences, > The Hebrew University of Jerusalem, > Givat Ram, Jerusalem 91904, Israel > Tel: 972 547 231 170 > Fax: (972)-25662581 > > Weather It Is, LTD > Weather and Climate Focus > https://weather-it-is.com > Jerusalem, Israel > Local: 02 930 9525 > Cell: 054 7 231 170 > Int-IS: x972 2 930 9525 > > > _______________________________________________ > ncl-talk mailing list > ncl-talk at mailman.ucar.edu > List instructions, subscriber options, unsubscribe: > https://mailman.ucar.edu/mailman/listinfo/ncl-talk -- Dipl. Geophys. Karin Meier-Fleischer Visualization Group - Python, CDO, NCL Application Support Deutsches Klimarechenzentrum GmbH (DKRZ) Bundesstrasse 45a - D-20146 Hamburg - Germany Phone: +49 (0)40 460094 126 Fax: +49 (0)40 460094 270 E-Mail:meier-fleischer at dkrz.de URL:www.dkrz.de Gesch?ftsf?hrer: Prof. Dr. Thomas Ludwig Sitz der Gesellschaft: Hamburg Amtsgericht Hamburg HRB 39784 -------------- next part -------------- An HTML attachment was scrubbed... URL: From meier-fleischer at dkrz.de Wed Nov 6 00:43:20 2024 From: meier-fleischer at dkrz.de (Karin Meier-Fleischer) Date: Wed, 6 Nov 2024 08:43:20 +0100 Subject: [ncl-talk] ncl problem with shapefile. In-Reply-To: References: Message-ID: Hi Carina, without your script and the shapefile it is not really possible to say what happened. Which region do you want to plot and what are the minimum and maximum values of the shapefile coordinate x (longitude)? Regards, Karin Am 04.11.24 um 13:12 schrieb Carina V. Barca via ncl-talk: > Good afternoon, I installed ncl 6.2 using conda, I can make the > precipitation graph for example, but when I load the shapefile it > shows me lines, and the file is fine, the shape that makes the lines. > I attach the image that does not draw the shapefile and one that does. > Thanks! > > > Enviado desde Outlook > > > _______________________________________________ > ncl-talk mailing list > ncl-talk at mailman.ucar.edu > List instructions, subscriber options, unsubscribe: > https://mailman.ucar.edu/mailman/listinfo/ncl-talk -- Dipl. Geophys. Karin Meier-Fleischer Visualization Group - Python, CDO, NCL Application Support Deutsches Klimarechenzentrum GmbH (DKRZ) Bundesstrasse 45a - D-20146 Hamburg - Germany Phone: +49 (0)40 460094 126 Fax: +49 (0)40 460094 270 E-Mail:meier-fleischer at dkrz.de URL:www.dkrz.de Gesch?ftsf?hrer: Prof. Dr. Thomas Ludwig Sitz der Gesellschaft: Hamburg Amtsgericht Hamburg HRB 39784 -------------- next part -------------- An HTML attachment was scrubbed... URL: From carvandar at hotmail.com Wed Nov 6 06:46:24 2024 From: carvandar at hotmail.com (Carina V. Barca) Date: Wed, 6 Nov 2024 13:46:24 +0000 Subject: [ncl-talk] ncl problem with shapefile. Message-ID: Hello Karin thanks for your answer. I attach the scripts here and the shape file. Thanks for your help. Carina Enviado desde Outlook -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: poligonal.zip Type: application/x-zip-compressed Size: 3988 bytes Desc: poligonal.zip URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: precipitacion.000007.png Type: image/png Size: 109614 bytes Desc: precipitacion.000007.png URL: From carvandar at hotmail.com Wed Nov 6 06:46:24 2024 From: carvandar at hotmail.com (Carina V. Barca) Date: Wed, 6 Nov 2024 13:46:24 +0000 Subject: [ncl-talk] ncl problem with shapefile. Message-ID: Hello Karin thanks for your answer. I attach the scripts here and the shape file. Thanks for your help. Carina Enviado desde Outlook -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: poligonal.zip Type: application/x-zip-compressed Size: 3988 bytes Desc: poligonal.zip URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: precipitacion.000007.png Type: image/png Size: 109614 bytes Desc: precipitacion.000007.png URL: From meier-fleischer at dkrz.de Wed Nov 6 06:57:24 2024 From: meier-fleischer at dkrz.de (Karin Meier-Fleischer) Date: Wed, 6 Nov 2024 14:57:24 +0100 Subject: [ncl-talk] ncl problem with shapefile. In-Reply-To: References: Message-ID: <3e916c6c-6e72-40e5-92e9-8cdb59149e2f@dkrz.de> In addition to the shapefile, the associated files are also required. Can you send me the link to the shapefile download? Am 06.11.24 um 14:46 schrieb Carina V. Barca via ncl-talk: > Hello Karin thanks for your answer. > I attach the scripts here and the shape file. > Thanks for your help. > > Carina > > > Enviado desde Outlook > > > _______________________________________________ > ncl-talk mailing list > ncl-talk at mailman.ucar.edu > List instructions, subscriber options, unsubscribe: > https://mailman.ucar.edu/mailman/listinfo/ncl-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From meier-fleischer at dkrz.de Wed Nov 6 07:57:20 2024 From: meier-fleischer at dkrz.de (Karin Meier-Fleischer) Date: Wed, 6 Nov 2024 15:57:20 +0100 Subject: [ncl-talk] ncl problem with shapefile. In-Reply-To: <3e916c6c-6e72-40e5-92e9-8cdb59149e2f@dkrz.de> References: <3e916c6c-6e72-40e5-92e9-8cdb59149e2f@dkrz.de> Message-ID: <78952ca3-d496-482a-962d-d719ec49b1d2@dkrz.de> I was able to reconstruct the .shx file on the command line with (using csh): setenv SHAPE_RESTORE_SHX SHAPE_RESTORE_SHX ncl_filedump poligonal.shp The problem seems to be the black box of the wrf routines. I guess that the longitude range of the shapefile is not the same as of the wrf data, maybe one has a range 0?-360? and the other -180?-180?. I'm not a wrf expert and so you should better ask a wrf/ncl expert. Am 06.11.24 um 14:57 schrieb Karin Meier-Fleischer via ncl-talk: > In addition to the shapefile, the associated files are also required. > Can you send me the link to the shapefile download? > > > > Am 06.11.24 um 14:46 schrieb Carina V. Barca via ncl-talk: >> Hello Karin thanks for your answer. >> I attach the scripts here and the shape file. >> Thanks for your help. >> >> Carina >> >> >> Enviado desde Outlook >> >> >> _______________________________________________ >> ncl-talk mailing list >> ncl-talk at mailman.ucar.edu >> List instructions, subscriber options, unsubscribe: >> https://mailman.ucar.edu/mailman/listinfo/ncl-talk > > > _______________________________________________ > ncl-talk mailing list > ncl-talk at mailman.ucar.edu > List instructions, subscriber options, unsubscribe: > https://mailman.ucar.edu/mailman/listinfo/ncl-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: