[ncl-talk] Problem with mask_9.ncl example

Lyndz olagueralyndonmark429 at gmail.com
Sun Apr 5 11:36:44 MDT 2020


Dear NCL-experts,

I am trying to replicate the mask_9.ncl example but using a new shapefile.
When I run the script, I got the following errors:

 Copyright (C) 1995-2019 - All Rights Reserved

 University Corporation for Atmospheric Research

 NCAR Command Language Version 6.6.2

 The use of this software is governed by a License Agreement.

 See http://www.ncl.ucar.edu/ for more details.

(0) shapefile_mask_data: Error: not a valid rectilinear, curvilinear, or
unstructured grid



Attached are the shapefile and script.
The ncdump of the input netcdf file is below:

*dimensions:*

* time = UNLIMITED ; // (1 currently)*

* bnds = 2 ;*

* longitude = 360 ;*

* latitude = 280 ;*

*variables:*

* double time(time) ;*

* time:standard_name = "time" ;*

* time:bounds = "time_bnds" ;*

* time:units = "days since 1951-1-1 0" ;*

* time:calendar = "standard" ;*

* time:axis = "T" ;*

* double time_bnds(time, bnds) ;*

* double longitude(longitude) ;*

* longitude:standard_name = "longitude" ;*

* longitude:long_name = "Longitude" ;*

* longitude:units = "degrees_east" ;*

* longitude:axis = "X" ;*

* double latitude(latitude) ;*

* latitude:standard_name = "latitude" ;*

* latitude:long_name = "Latitude" ;*

* latitude:units = "degrees_north" ;*

* latitude:axis = "Y" ;*

* float precip(time, latitude, longitude) ;*

* precip:long_name = "daily precipitation analysis interpolated onto
0.25deg grids [mm/day]" ;*

* precip:units = "mm/day" ;*

* precip:_FillValue = -99.9f ;*

* precip:missing_value = -99.9f ;*

* precip:level_description = "Earth surface" ;*

Any advise on how to do this correctly in NCL?

I'll appreciate any help.

Sincerely,
Lyndz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200406/891def20/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Mask9_example.ncl
Type: application/octet-stream
Size: 4229 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200406/891def20/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: climatetype.zip
Type: application/zip
Size: 1240222 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200406/891def20/attachment-0001.zip>


More information about the ncl-talk mailing list