<div dir="ltr"><div>Hi Mauro,</div><div>I think the data file is poorly formatted. There are several issues with the data, most important ones are:</div><div><br></div><div><b>1) mismatch of dimensions between variable and the coordinates:</b></div><div>Lat/Lon: Dimensions and sizes: [<b>yc | 912]</b> x [xc | 444]</div><div>prec: Dimensions and sizes: [zt | 48] x [yt | 444] x [<b>xt | 912</b>]</div><div><br></div><div>This can be solved by dimension reordering (see in the attached script).<br></div><div><br></div><div><b>2) The data contains NaNs:</b></div><div> GRISO hourly precip rate (mm/h) : min=-nan max=-nan</div><div> NCL has a special function to deal with these (see also in the attached script).<br></div><div><br></div><div>Also you can use NCL's special attributes lat2d and lon2d for assigning 2d coordinates to the variable (see in attached script). <br></div><div><br></div><div>The attached script seems to plot correctly, but make sure that dimension reordering is correct (that is lat and lon are not swapped incorrectly).</div><div><br></div><div>Cheers,</div><div>Rashed<br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 31, 2022 at 11:27 AM Mauro Morichetti via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>Hi all,
<div><br>
</div>
<div>I have problem to plot the data from the following link:</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div style="display:block">
<div role="link" style="display:inline-block"><a rel="nofollow" href="https://drive.google.com/file/d/12jGkoDXOn636XJY2WT15W8fnS_Tk90a4/view?usp=sharing" dir="ltr" role="button" width="300" style="border-radius:10px;display:block;width:300px;overflow:hidden;text-decoration:none" target="_blank">
<table style="table-layout:fixed;border-collapse:collapse;width:300px;background-color:rgb(229,230,233)" width="300" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td>
<table style="table-layout:fixed;background-color:rgb(229,230,233)" width="300" cellspacing="0" cellpadding="0" bgcolor="#E5E6E9">
<tbody>
<tr>
<td style="padding:8px 0px">
<div style="max-width:100%;margin:0px 16px;overflow:hidden">
<div style="font-weight:500;font-size:12px;overflow:hidden;text-overflow:ellipsis;text-align:left">
<a rel="nofollow" href="https://drive.google.com/file/d/12jGkoDXOn636XJY2WT15W8fnS_Tk90a4/view?usp=sharing" style="text-decoration:none" target="_blank"><font style="color:rgba(0,0,0,0.847)" color="#272727">GRISO_Vaia.nc</font></a></div>
<div style="font-weight:400;font-size:11px;overflow:hidden;text-overflow:ellipsis;text-align:left">
<a rel="nofollow" href="https://drive.google.com/file/d/12jGkoDXOn636XJY2WT15W8fnS_Tk90a4/view?usp=sharing" style="text-decoration:none" target="_blank"><font style="color:rgba(0,0,0,0.498)" color="#808080">drive.google.com</font></a></div>
</div>
</td>
<td style="padding:6px 12px 6px 0px" width="36">
<a rel="nofollow" href="https://drive.google.com/file/d/12jGkoDXOn636XJY2WT15W8fnS_Tk90a4/view?usp=sharing" target="_blank"></a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</a></div>
</div>
</div>
</div>
<div><img src="cid:1842f4ff341926a88911">
</div>
<div>
<div>
<div style="display:block">
<div role="link" style="display:inline-block"><a rel="nofollow" href="https://drive.google.com/file/d/12jGkoDXOn636XJY2WT15W8fnS_Tk90a4/view?usp=sharing" dir="ltr" role="button" width="300" style="border-radius:10px;display:block;width:300px;overflow:hidden;text-decoration:none" target="_blank">
<table style="table-layout:fixed;border-collapse:collapse;width:300px;background-color:rgb(229,230,233)" width="300" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td>
<table style="table-layout:fixed;background-color:rgb(229,230,233)" width="300" cellspacing="0" cellpadding="0" bgcolor="#E5E6E9">
<tbody>
<tr>
<td style="padding:6px 12px 6px 0px" width="36">
<a rel="nofollow" href="https://drive.google.com/file/d/12jGkoDXOn636XJY2WT15W8fnS_Tk90a4/view?usp=sharing" target="_blank"></a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</a></div>
</div>
</div>
<div><br>
</div>
<div>I have nominated the variables and added the units to the coordinates, but the plot is not plot correctly, what I am missing?</div>
<div><br>
</div>
<div>The scripts I used is attached, could you help me please?</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Regards</div>
<div><br>
</div>
<div>Mauro</div>
<div><br>
</div>
<div></div>
</div>
<div>
<div></div>
</div>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>