<div dir="ltr"><div><div><div>Hi ,<br></div>Could someone help me fix this error? <br><br></div>Thanks,<br></div>DZ<br><div><div><br>fatal:Argument type mismatch on argument (2) of (linint2_Wrap) can not coerce<br><br><div><div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">dale zuri</b> <span dir="ltr"><<a href="mailto:dalezuri@gmail.com">dalezuri@gmail.com</a>></span><br>Date: Thu, Nov 9, 2017 at 4:41 PM<br>Subject: [ncl-talk] Sub: linint2 error..<br>To: <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br><br><br><div dir="ltr"><div><div><div><div>Hi NCL users,<br></div>Could someone help me fix this? <br></div>Thanks<br></div>DZ<br>fatal:Number of subscripts do not match number of dimensions of variable,(2) Subscripts used, (1) Subscripts expected<br>fatal:["Execute.c":8575]:<wbr>Execute: Error occurred at or near line 17 in file Interp.ncl<br><br>Variable: iz<br>Type: file<br>filename: pmask_cv2<br>path: <a href="http://pmask_cv2.nc" target="_blank">pmask_cv2.nc</a><br> file global attributes:<br> dimensions:<br> lon = 76<br> lat = 26<br> variables:<br> float mask ( lat, lon )<br> _FillValue : -999.9<br><br> float lat ( lat )<br> units : degrees_north<br> long_name : latitude<br><br> float lon ( lon )<br> units : degrees_east<br> long_name : longitude<br><br><br>Variable: p<br>Type: float<br>Total Size: 26422272 bytes<br> 6605568 values<br>Number of Dimensions: 3<br>Dimensions and sizes: [time | 366] x [lat | 94] x [lon | 192]<br>Coordinates: <br> time: [1297320..1306080]<br> lat: [88.542..-88.542]<br> lon: [ 0..358.125]<br>Number Of Attributes: 15<br> long_name : mean Daily Net Longwave Radiation Flux at Surface<br> units : W/m^2<br> precision : 1<br> least_significant_digit : 0<br> GRIB_id : 112<br> GRIB_name : NLWRS<br> var_desc : Net Longwave Radiation Flux<br> dataset : NCEP Reanalysis Daily Averages<br> level_desc : Surface<br> statistic : Mean<br> parent_stat : Individual Obs<br> missing_value : -9.96921e+36<br> actual_range : ( -69.19995, 237.2 )<br> valid_range : ( -100, 400 )<br> _FillValue : -9.96921e+36<br><br><br></div>PROGRAM: <br><br>begin<br>;;;;;;;;;;;;;;;;;ERA;;;;;;;;;;<wbr>;;;;;;;;;;;;;;;;;<br> iz = addfile("<a href="http://pmask.nc" target="_blank">pmask.nc</a>","r")<br> print(iz)<br> printVarSummary(iz)<br>P1=iz->mask<br> ds = addfile("<a href="http://nlwrs.sfc.gauss.1948.nc" target="_blank">nlwrs.sfc.gauss.1948.<wbr>nc</a>","r")<br> p = ds->nlwrs(:,:,:)<br> printVarSummary(p)<br>;*****************************<wbr>***********************<br> fo = linint2_Wrap(P1&lon,P1&lat,iz(<wbr>:,:), True, p&lon,p&lat, 0)<br><br>end<br><br><br></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></div><br></div></div></div></div></div>