<div dir="ltr"><div>UGRD_P0_L103_GLC0 (<b> lv_HTGL3</b>, ygrid_0, xgrid_0 )</div><div>level_type :   Specified height level above ground (m)</div><div>--------------------------------------------------------------------------</div><div><br></div><div>Likely, <b> lv_HTGL3, </b>is a coordinate variable.</div><div><br></div><div>print( UGRD_P0_L103_GLC0<b><span style="color:rgb(255,0,0)">&</span>lv_HTGL3 </b>)</div><div><br></div><div>will tell you the levels (m)</div><div><br></div><div>So ...</div><div><br></div><div>    u2d = UGRD_P0_L103_GLC0 (0,:,: )     <br></div><div><br></div><div>will yield a 2-dimensional variable corresponding to the 0-th dimension.</div><div><br></div><div>Let's say that  <b> lv_HTGL3 </b>contained (/0, 2, 10/)</div><div><br></div><div>You could also use NCL's coordinate subscripting via the <b>{...}</b> syntax<br></div><div><br></div><div><div><div>u2d_0   = UGRD_P0_L103_GLC0 (<b><span style="color:rgb(255,0,0)">{</span>0<span style="color:rgb(255,0,0)">}</span></b>,:,: )</div><div>u2d_2   = UGRD_P0_L103_GLC0 (<b><span style="color:rgb(255,0,0)">{</span>2<span style="color:rgb(255,0,0)">}</span></b>,:,: )</div><div>u2d_10  = UGRD_P0_L103_GLC0 (<b>1<span style="color:rgb(255,0,0)"></span><span style="color:rgb(255,0,0)"></span></b><b><span style="color:rgb(255,0,0)"></span>0<span style="color:rgb(255,0,0)">}</span></b>,:,: )   </div></div><div>    </div></div><div><b></b></div><div><b></b></div><div><b></b></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 25, 2021 at 2:26 AM R. Lucas 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 dir="ltr"><div>Dear NCL users</div><div>i have 2 problems :</div><div><br></div><div>1) Is this varibable level looks like 10m above ground ?</div><div>2) This variable is 3d. How can I remove first dimension, somthing like (0,:,:)</div><div>because I have a fatal error :</div><div>fatal:["Execute.c":7925]:Number of subscripts on right-hand-side do not match<br>                     number of dimensions of variable: (3), Subscripts used: (1)<br></div><div><br></div><div>Thanks in advance.</div><div>Rouss.</div><div><br></div><div><br></div>float UGRD_P0_L103_GLC0 ( lv_HTGL3, ygrid_0, xgrid_0 )<br>         center :       US National Weather Service - NCEP (WMC)<br>         production_status :    Operational products<br>         long_name :    U-component of wind<br>         units :        m s-1<br>         _FillValue :   1e+20<br>         coordinates :  gridlat_0 gridlon_0<br>         grid_type :    Lambert Conformal can be secant or tangent, conical or bipolar<br>         parameter_discipline_and_category :    Meteorological products, Momentum<br>         parameter_template_discipline_category_number :        ( 0, 0, 2, 2 )<br>         level_type :   Specified height level above ground (m)<br>         forecast_time :        0<br>         forecast_time_units :  hours<br>         initial_time : 11/23/2021 (06:00)<br><div><br></div><div>grib2 (WRF ARW)</div><div>NCL 6.6.2</div><div>UBUNTU 20.04</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></blockquote></div>