<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div><span>Hello,</span></div><div><span>Though I rarely get assistance on this forum (which may be a signal that my posts are either unreasonable or unclear or both), I will still request for assistance.</span></div><div><span>I have data on a curvilinear grid. I am able to display my data ok. However I would like to mask out data outside my area of interest. For the masking to work (mask_.4.ncl) I think I need to attach coordinates to my variable, otherwise I get a blank plot.</span></div><div><span>Part if my script is given below, and it works up to the line "<span><span>lon2d = f->lon" for th</span></span>e case of no masking.</span></div><div><span><br></span></div><div><span>I have been fidgeting with the lines that follow the above line, to effect the masking. The errors I get are indicated against the trials I made.</span></div><div><span>Assistance will be appreciated.<br></span></div><div><span><br></span></div><div><span>begin</span></div><div><span></span><br></div><span> diri="/home/zmumba/CORDEX/CDO_Out/"<br> filename = "month01.nc"<br> f = addfile(diri+filename,"r")<br><br> p = f->pr*86400<br><br> lat2d = f->lat ; (y,x)<br> lon2d = f->lon ; (y,x)<br></span><span></span><div><br></div><div>; Lines below added to effect masking<br></div><span> p!0 = "lat2d" ; No error message at this and following line.<br> p!1 = "lon2d"<br></span><span><br>; p&lat2d = lat2d ; fatal:No coordinate variable exists for dimension (lat2d) in variable (p).<br> p&lat2d = lat ; fatal:Variable (lat) is undefined.<br><br> p&lon2d = lon2d ; will obviously give errors as above<br><br>; How to formulate the following?<br>;-------------------------------<br> p&lat2d@units = "degrees_north"<br> p&lon2d@units = "degrees_east"<br> lat2d@long_name = "latitude"<br> lon2d@long_name = "longitude"<br><br><br></span><br></div></div></body></html>