[ncl-talk] Problem masking lat-lon points from a csv file using a shapefile

Lyndz olagueralyndonmark429 at gmail.com
Thu Sep 13 01:51:59 MDT 2018


Hello,

I am trying to filter Tropical Cyclone (TC) lat-lon points from a csv file
using a shapefile and display the tracks.

I'm reading the csv file and shapefile like this:

    data=asciiread("jma.csv",(/1519,2/),"float")
    load "./shapefile_utils.ncl"
    shp_filename="Bicol_region.shp"
    data_mask    = shapefile_mask_data(data,shp_filename,True)

Error: shapefile_mask_data: Error: not a valid rectilinear, curvilinear, or
uns
tructured grid

I think I am missing a step after reading the csv file. Attached are the
shapefile and csv file.

Any suggestions on how to do this correctly in NCL?

Sincerely,

Lyndz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180913/482d573d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bicol_Region.zip
Type: application/zip
Size: 444500 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180913/482d573d/attachment-0001.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jma.csv
Type: text/csv
Size: 15450 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180913/482d573d/attachment-0001.csv>


More information about the ncl-talk mailing list