[ncl-talk] NCL Errors with Plotting IMS Snow Example

Mary Haley haley at ucar.edu
Fri Oct 5 12:26:35 MDT 2018


Just a clarification on this:

Both a boolean (True/False) and a string ("NDCViewport") are allowed for
this resource. However, the gsn_csm scripts were only recognizing the
boolean version of this resource up until NCL V6.5.0.  So, if you have NCL
6.4.0 or earlier, you need to use the boolean. If you have NCL V6.5.0 or
later, then you can use either the string or the boolean.

--Mary


On Tue, Sep 25, 2018 at 4:28 PM, Rick Brownrigg <brownrig at ucar.edu> wrote:

> Hi,
>
> At around line 170 of the script we see these two lines:
>
>   res at tfDoNDCOverlay        = "NDCViewport"
> ; res at tfDoNDCOverlay        = True      ; old method
> The docs for this resource indicate that it used to be of type bool, but
> changed to an enumeration. However, the given default value for this
> resource is shown as False, and the error in the script comes about because
> a utility function called by the plotting code expects a logical value as
> well, not an enumeration.  So this sounds like both a code bug and a
> documentation bug.
>
> You might try uncommenting the line setting the resource to True.
>
> Let me know -- you may get a different error related the resource
> expecting an enumerated value.  I'll file a bug report.
>
> Rick
>
> On Tue, Sep 25, 2018 at 3:52 PM Stuart D Smith <smit1770 at purdue.edu>
> wrote:
>
>> Hello,
>>
>>
>>
>> I am working through the plotting example,  “NIC IMS Snow and Ice
>> Products” from the NCL site ( https://www.ncl.ucar.edu/
>> Applications/nic_ims.shtml ). I did have to make adjustments to the
>> script (attachment for reference), since the file extensions to the ftp
>> site have changed. When plotting the example with the 24 km data, I receive
>> unusual errors when trying to plot the last two figures. The error I
>> receive is the following:
>>
>>
>>
>> “fatal:Conditional statements (if and do while) require SCALAR logical
>> values, see all and any functions
>>
>> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 1809 in
>> file /apps/cent7/ncl/6.4.0/lib/ncarg/nclscripts/csm/gsn_csm.ncl
>>
>> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 7482 in
>> file /apps/cent7/ncl/6.4.0/lib/ncarg/nclscripts/csm/gsn_csm.ncl
>>
>> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 181 in
>> file Plot_IMS_4k.ncl”
>>
>>
>>
>> I have also tried to adjust the plotting script to work for 4km data.
>> However, when plotting the first figure it fails to draw the figure and
>> provides the following error message:
>>
>>
>>
>> fatal:ContourPlotDraw: Workspace reallocation would exceed maximum size
>> 100000000
>>
>> fatal:ContourPlotDraw: draw error
>>
>> fatal:ContourPlotDraw: draw error
>>
>> fatal:PlotManagerDraw: error in plot draw
>>
>> fatal:_NhlPlotManagerDraw: Draw error
>>
>> fatal:Conditional statements (if and do while) require SCALAR logical
>> values, see all and any functions
>>
>> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 1809 in
>> file /apps/cent7/ncl/6.4.0/lib/ncarg/nclscripts/csm/gsn_csm.ncl
>>
>> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 7482 in
>> file /apps/cent7/ncl/6.4.0/lib/ncarg/nclscripts/csm/gsn_csm.ncl
>>
>> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 181 in
>> file Plot_IMS_4k.ncl
>>
>>
>>
>> Could I please have guidance to correct the errors in order to plot both
>> spatial resolutions correctly? I also wanted guidance on adjusting the
>> script to plot a specific area rather than plotting the full extent. The
>> data I have been using is listed in the example on the site, but I have
>> also provided links to the ftp sites as well, which are listed below. Thank
>> you for your time.
>>
>>
>>
>> Regards,
>>
>>
>>
>> -Stuart
>>
>>
>>
>> 4km IMS data
>>
>> ftp://sidads.colorado.edu/pub/DATASETS/NOAA/G02156/4km/2006/
>>
>> IMS metadata
>>
>> ftp://sidads.colorado.edu/pub/DATASETS/NOAA/G02156/metadata/
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181005/786b7c6d/attachment.html>


More information about the ncl-talk mailing list