Re: Error while accessing RANGS, please respond

From: Karin Meier-Fleischer <meier-fleischer_at_nyahnyahspammersnyahnyah>
Date: Sat Dec 14 2013 - 13:45:41 MST

Dear Alberto,

Problem 1: the RANGS/GSHHS files should be stored in $NCARG_ROOT/lib/ncarg/database/rangs directory.

>> ls -la $NCARG_ROOT/lib/ncarg/database/rangs
total 275296
drwxr-xr-x 18 k204045 staff 612 14 Okt 16:44 .
drwxr-xr-x@ 33 k204045 staff 1122 14 Okt 16:44 ..
-rwxr-xr-x 1 k204045 staff 89496428 14 Okt 16:44 gshhs(0).rim
-rwxr-xr-x 1 k204045 staff 20775224 14 Okt 16:44 gshhs(1).rim
-rwxr-xr-x 1 k204045 staff 5099196 14 Okt 16:44 gshhs(2).rim
-rwxr-xr-x 1 k204045 staff 1109192 14 Okt 16:44 gshhs(3).rim
-rwxr-xr-x 1 k204045 staff 170948 14 Okt 16:44 gshhs(4).rim
-rwxr-xr-x 1 k204045 staff 259200 14 Okt 16:44 rangs(0).cat
-rwxr-xr-x 1 k204045 staff 6518664 14 Okt 16:44 rangs(0).cel
-rwxr-xr-x 1 k204045 staff 259200 14 Okt 16:44 rangs(1).cat
-rwxr-xr-x 1 k204045 staff 5945492 14 Okt 16:44 rangs(1).cel
-rwxr-xr-x 1 k204045 staff 259200 14 Okt 16:44 rangs(2).cat
-rwxr-xr-x 1 k204045 staff 4062215 14 Okt 16:44 rangs(2).cel
-rwxr-xr-x 1 k204045 staff 259200 14 Okt 16:44 rangs(3).cat
-rwxr-xr-x 1 k204045 staff 3398642 14 Okt 16:44 rangs(3).cel
-rwxr-xr-x 1 k204045 staff 259200 14 Okt 16:44 rangs(4).cat
-rwxr-xr-x 1 k204045 staff 3045848 14 Okt 16:44 rangs(4).cel

If you don't want to install the RANGS files in the recommended directory, you can set the environment variable
NCARG_RANGS to the directory containing the files.

Problem 2: You generate the contour plot before you have defined a colormap, so NCL will take the default
colormap.

To use the colormap with gsn_define_colormap move the call upward to the line below line 298.

   wks = gsn_open_wks(type,psoutfilename)
   gsn_define_colormap(wks,"WhViBlGrYeOrReWh")

Bye,
Karin

Am 14.12.2013 um 21:14 schrieb Alberto Mario Striedinger Pinilla <astriedinger@gmail.com>:

> ​Dear all,
>
> I am having 2 problems when plotting contour maps of a variable with ncl 6.1.2. Please let me know what could be causing these to happen:
>
> Problem 1:
> I am plotting while accessing RANGS. I have no problem if I use the medium or low resolutions. But once I try to use RANGS I get these errors:
>
> fatal:MapRGDHDrawMapList: MDRGOL/MDRGOF - ERROR OPENING RANGS/GSHHS CAT FILE
> fatal:PlotManagerPostDraw: error in plot post-draw
> fatal:_NhlPlotManagerDraw: PostDraw error
>
>
> I thought the problem was permissions and ownership, but all folders and files (including .nc files) are not restricted.
> At the end I do get the plot I want but, the coast lines do not appear, and the labels, titles, and other texts in the plot do not appear either.
>
> Problem 2:
> This may be a trivial problem, but I Say it anyway​
> ​My colour scale is nit working properly, I am using the colour name :
> gsn_define_colormap(wks,"
> WhViBlGrYeOrReWh") --line : 347 in the code
> But the colours appearing are not those set in the NCL website. THe NCL default colours do work though.
> ------
>
> The RANGS in my directory are all in the same folder rangs, and where recently replaced yesterday just in case I happened to have bad files, but that did not help either.
>
> I am providing two plot files, one that works under the lower resolutions, and the one using RANGS.
> I am providing the code I used, the file from the variable comes from, and this is the code line I used when executing the commands on bash:
>
> ./contour_var_thanet.sh ~/Documents/thanet/test/wrfout_d03_2010-03-19_00\:00\:00 y y 51.27 1.27 51.67 1.8333 HFX 0 nc -62 -45 2
>
> where : ~/Documents/thanet/test/wrfout_d03_2010-03-19_00\:00\:00 is the file location
> where: y y 51.27 1.27 51.67 1.8333 HFX 0 nc -62 -45 2 is the input to my code.
> The code line wehre I use the map resources for the RANGS is : --line 282
>
> I thank you in advance, and look for your response.
>
> ​
> wrfout_d03_2010-03-19_00:00:00
> ​
>
> ​
> Alberto M. Striedinger. P.
> Student Intern Researcher at MeteoConsult .NL.
> MSc. Sustainable Energy Technology
> Eindhoven University of Technology
> BSc.Mechanical Engineering
> Universidad del Norte & USF
> +31
>
>
> ​
> <contour_var_thanet.sh><wrfout_d03_2010-03-19_00_00_00_contour_HFX_0.ps><wrfout_d03_2010-03-19_00_00_00_contour_HFX_0_RANGS.ps>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_________________________________
Karin Meier-Fleischer
Deutsches Klimarechenzentrum GmbH
Application Support
Visualization
Bundesstrasse 45a
D-20146 Hamburg, Germany

E-Mail: meier-fleischer@dkrz.de
Internet: http://www.dkrz.de/
Phone: +49 40 460094 126
Fax: +49 40 460094 270

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Dec 14 13:45:58 2013

This archive was generated by hypermail 2.1.8 : Wed Dec 18 2013 - 14:29:51 MST