[ncl-talk] error in shapefile_mask_data.ncl
Zhang, Xiao
xiao.zhang at pnnl.gov
Wed Jul 6 12:43:44 MDT 2016
Hi
I use ncl 6.1.0 and would like to use function shapefile_mask_data. Since it has not been built in, I use the code provided from the website but got error message. Could you please help with this? Thank you!
"fatal:syntax error: line 158 in file ./shapefile_mask_data.ncl before or near :
lat_sub :
------------------^
fatal:error in statement
fatal:syntax error: line 159 in file ./shapefile_mask_data.ncl before or near :
lon_sub :
------------------^
fatal:error in statement
fatal:Syntax Error in block, block not executed"
Here are the codes I used.
https://www.ncl.ucar.edu/Support/talk_archives/2014/att-0432/shapefile_mask_data.ncl
part of my code
shpfile = "USA_adm_shp/USA_adm0.shp"
opt = True
opt at return_mask = True
;load self-define function
load "./shapefile_mask_data.ncl"
land_mask_a1 = shapefile_mask_data(dif_a1(0,:,:),shpfile,opt)
Best,
Xiao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160706/b8e6c547/attachment.html
More information about the ncl-talk
mailing list