<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:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Dear NCL users,</p>
<p><br>
</p>
<p>I am trying to use ncl to extract one variable from wrf output to a separate netcdf files for further analysis. I was trying to modify the script here provided by the UCAR website. <a href="http://www.ncl.ucar.edu/Applications/netcdf4.shtml" class="OWAAutoLink" id="LPlnk23067" previewremoved="true">http://www.ncl.ucar.edu/Applications/netcdf4.shtml</a>.
So I have created a script attached with this email. However, I am having an error as below:</p>
<p></p>
<div><br>
</div>
<div>fatal:Number of dimensions in parameter (2) of (filedimdef) is (2), (1) dimensions were expected</div>
<div>fatal:["Execute.c":8575]:Execute: Error occurred at or near line 58 in file wrf_op_1.ncl</div>
<div><br>
</div>
<div>I understand this is showing a mismatching dimension, in this case is the lat and lon. The example case is a one dimension netcdf file for its lat and lon, but my file should have 2d for lat and lon. Is there a different way of doing what I am doing? </div>
<div><br>
</div>
<div>Hope someone could provide some help.</div>
<div><br>
</div>
<div>Best,</div>
<div><br>
</div>
<div>Yu</div>
<p></p>
<div id="LPBorder_GT_14896306247450.8337959031423823" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14896306247420.8105389483599279" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_14896306247430.6689998337642498" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14896306247430.4100041202760838"></div>
<div id="LPTitle_14896306247440.10221918094671634" style="top: 0px; color: rgb(0, 120, 215); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14896306247440.2982852028756018" href="http://www.ncl.ucar.edu/Applications/netcdf4.shtml" target="_blank" style="text-decoration: none;">Reading and writing NetCDF-4 - ncl.ucar.edu</a></div>
<div id="LPMetadata_14896306247440.11452900932194954" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
www.ncl.ucar.edu</div>
<div id="LPDescription_14896306247440.8553183031828786" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
NCL Home> Application examples> File IO || Data files for some examples. Example pages containing: tips | resources | functions/procedures Reading and writing NetCDF-4</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
</div>
</body>
</html>