<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>It looks liked you copied some existing script and made some changes.</div><div>      var   =   f->PVapor(0,:,:)    ;-- first time step, latitude=40N, longitude=0-60E.   <br></div><div>                                               ; ????? the comment has <b>nothing</b> to do with the varaiable<br></div><div>... also ...<br></div><div>      res@tiMainString = <b>"DKRZ NCL Example: Slice plot at 40N</b>"  ;  ??????????<br></div><div>----</div><div><br></div><div>Please '<b>Look at the Data</b>'</div><div>Pay attention to the data structure. Look carefully at your variables, the dimension sizes and dimension names.</div><div><br></div><div>;;      <b>Scanline = 116</b> ;<br>;;      <b>Field_of_view = 30 </b>;<br>;;      Channel = 20 ;<br>;;      <b>P_Layer = 100</b> ;<br>;;      <b>P_Level = 101</b> ;<br>;;      Qc_dim = 4 ;<br><br>;;      float Latitude(Scanline, Field_of_view) ;<br>;;              Latitude:long_name = "Latitude of the view (-90,90)" ;<br>;;      float Longitude(Scanline, Field_of_view) ;<br>;;              Longitude:long_name = "Longitude of the view (-180,180)" ;<br>;;      float <b>PVapor</b>(Scanline, Field_of_view, <b>P_Layer</b>) ;<br>;;              PVapor:long_name = "Water vapor profile in g/kg" ;<br>;;              PVapor:scale = 1. ;<br>;;      float <b>Player</b>(P_Layer) ;<br>;;              Player:description = "Pressure for each layer in mb" ;<br>;;      float <b>Plevel</b>(P_Level) ;<br>;;              Plevel:description = "Pressure for each level in mb" ;<br></div><div><br></div><div>Your script contains:</div><div><br></div><div>ncl 8>   var   =   f->PVapor(0,:,:)    ;-- first time step, latitude=40N, longitude=0-60E.</div><div>                                                      ; ^^^^^^^^^^^^^^^^  Huh? ^^^^^^^^^^^^^^^^^^^^^<br></div><div> ncl 9>   lev   =  f->Plevel               ; No!!!!   size <b>101,</b> PVapor is size <b>100</b><br></div><div><br></div><div>The comment is <b>not appropriate</b></div><div>The variable<b> PVapor i</b>s dimensioned <b>(</b>Scanline, Field_of_view, <b><b>P_Layer</b>) . </b>P_Layer is size<b> 100.<br></b></div><div>Yet you are trying <b>(I think)</b> to use Plevel(P_Level)  which is size <b>P_level=101.</b></div><div><br></div><div>This is why ncl-talk always advises:    <b>Look at your data!</b></div><div><b><br></b></div><div>Scanline          ==>Time</div><div>Field_of_View ==> Latitude, Longitude<b><br></b></div><div>P_Layer          ==>  Pressure levels<br></div><div><br></div><div><br></div><div><br></div><div><b></b></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 26, 2018 at 3:42 AM Elham Ghasemifar <<a href="mailto:elham.ghasemifar@modares.ac.ir" target="_blank">elham.ghasemifar@modares.ac.ir</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-7674235156069391393m_3061485903919277645divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p></p>
<div id="m_-7674235156069391393m_3061485903919277645divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p></p>
<div id="m_-7674235156069391393m_3061485903919277645divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Dear colleges</p>
<p>hello</p>
<p>i want to plot water vapor cross section , and i already mention the data has scan line and field of view instead of latitude and longitude, latitude and longitude are separate variable in the file, water vapor has 3 dimension namely scan line, field of
 view and player.</p>
<p>i don't know why i got the warning :</p>
<p></p>
<div>warning:ScalarFieldSetValues: coordinate array sfXArray requires 100 elements: defaulting<br>
warning:ScalarFieldSetValues: coordinate array sfYArray requires 30 elements: defaulting<br>
<br>
</div>
<p></p>
<p>i attached the plot and the script, <br>
</p>
<p>any helps will be gratefully appreciated .</p>
<p><br>
</p>
<p><br>
</p>
</div>
<p></p>
</div>
<p></p>
</div>
</div>

_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailman/listinfo/ncl-talk</a><br>
</blockquote></div></div>