<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:10pt;color:#2672EC;background-color:#FFFFFF;font-family:Arial,Helvetica,sans-serif;">
<div>Hi All,<br>
<br>
I want to do shape file masking but I'm getting
<div><span style="color: rgb(255, 0, 0);">shapefile_mask_data: Error: not a valid rectilinear, curvilinear, or unstructured grid</span><br>
</div>
<br>
My variable description by ncl_filedump is as follows:<br>
<br>
Variable: f<br>
Type: file<br>
   dimensions:<br>
      time = 1<br>
      lon = 2805<br>
      lat = 2816<br>
   variables:<br>
      double time ( time )<br>
         units :    hours since 0001-01-01 00:00:00.0<br>
         calendar :    gregorian<br>
<br>
      double latitude ( lat, lon )<br>
         units :    degrees_north<br>
<br>
      double longitude ( lat, lon )<br>
         units :    degrees_east<br>
<br>
      double HEM_MNT ( time, lat, lon )<br>
         coordinates :    latitude longitude<br>
         fillvalue :    -9.e+33<br>
         missing_value :    -9e+33<br>
         _FillValue :    -9e+33<br>
<br>
<br>
and my script section for masking is as follows:<br>
<br>
<div>  var                 = doubletofloat(a->HEM_MNT)<br>
  lat                 =  a->latitude<br>
  lon                 =  a->longitude</div>
  opt             = True<br>
<div>  opt@return_mask = True<br>
  shp_mask = shapefile_mask_data(var(0,:,:),filename,opt)  -------><span style="color: rgb(255, 0, 0);"> error in this line</span><br>
</div>
<br>
</div>
</div>
</body>
</html>