<div dir="ltr"><div>To what do the data dimensions refer? This is your responsibility.</div><div><span style="color:rgb(153,0,255)"><b>The golden rule of data processing is: Know your data!</b></span><br></div><div>=====</div><div>It is the user's responsibility to know dimension information.... not ncl-talk's responsibility. <br></div><div>=====<br></div><div>The ext variable [<span style="color:rgb(0,0,255)"><b>Column_Optical_Depth_Aerosols_532</b><font color="#000000">] look more like a <b>time series</b> than a vertical cross section.</font></span></div><div><div>I am not sure to what fakeDim44=<b>1 </b>may refer. Perhaps. the '<b>nadir</b>' location. <br></div><span style="color:rgb(0,0,255)"></span></div><div><b><br></b></div><div><b>ext</b> = hdf4_file-><span style="color:rgb(0,0,255)"><b>Column_Optical_Depth_Aerosols_532</b></span><br>printVarSummary(ext) ; [fakeDim43 | <b>3856</b>] x [fakeDim44 | <span style="color:rgb(255,0,255)"><b>1</b></span>] ; <== fakeDim44=<b>1 </b>may refer to the <b>'nadir' </b>of the satellite<span style="color:rgb(255,0,255)"></span><br>printMinMax(ext,0) <span style="color:rgb(255,0,0)">; <b>***This is NOT a vertical cross section***</b></span><br>print("===")</div><div><br></div><div>Latitude = hdf4_file->Latitude</div><div>printVarSummary(Latitude) ; [fakeDim2 |<b> 3856]</b> x [fakeDim3 |<b> <span style="color:rgb(255,0,255)">3</span></b>] ; <== fakeDim3=<b>3 </b>may refer to the left/nadir/right scan locations<br>printMinMax(Latitude,0) ;<br>print("===")</div><div><br></div><div>Longitude = hdf4_file->Longitude<br>printVarSummary(Longitude) [fakeDim2 |<b> 3856]</b> x [fakeDim3 |<b> <span style="color:rgb(255,0,255)">3</span></b>] <br>printMinMax(Longitude,0) <br></div><div><br></div><div>time = hdf4_file->Profile_Time<br>time@units = "seconds since 1993-01-01 00:00"<br></div><div><br></div><div>ptinVarSummary(time) ; [fakeDim6 | <b>3856]</b> x [fakeDim3 |<b> <span style="color:rgb(255,0,255)">3</span></b>]; ; <== fakeDim6=<b>3 </b>may refer to the left/nadir/right scan times</div><div>printMinMax(time,0) ; Info:<br>print("===")<br></div><br><div><br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 1, 2019 at 10:56 AM Debasish Hazra via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@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>Thanks Rick for pointing that out. But unlike the examples in (<a href="http://www.ncl.ucar.edu/Applications/Scripts/calipso_3.ncl" target="_blank">http://www.ncl.ucar.edu/Applications/Scripts/calipso_3.ncl</a>), variable I want to see has different dimensions. Example page dimensions are
<pre>[fakeDim70 | 3001] x [fakeDim71 | 399]</pre>
which is why altitude reading from text file can be assigned to one of the dimension. Here it is not. <br></div><div><br></div><div>Variable: ext<br>Type: float<br>Total Size: 15424 bytes<br> 3856 values<br>Number of Dimensions: 2<br>Dimensions and sizes: [fakeDim43 | 3856] x [fakeDim44 | 1]<br>Coordinates:<br>Number Of Attributes: 4<br> units : NoUnits<br> format : Float_32<br> valid_range : 0...3<br> hdf_name : Column_Optical_Depth_Aerosols_532</div><div><br></div><div>How Do I modify that.</div><div><br></div><div>Thanks</div><div>Debasish<br></div><div><br></div><div> <br> <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 1, 2019 at 11:44 AM Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@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>From the docs on fspan:</div><div><br></div><div><em> npts</em>
<p> Number of equally-spaced points desired between <em>start</em> and
<em>finish</em>. This value must be >= 2. <br></p><p><a href="http://ncl.ucar.edu/Document/Functions/Built-in/fspan.shtml" target="_blank">http://ncl.ucar.edu/Document/Functions/Built-in/fspan.shtml</a></p><p>You saying you want one -point between 0 and the length of your arrays.</p><p>Rick<br></p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 1, 2019 at 9:11 AM Debasish Hazra via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@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>Hi,</div><div>I am following NCL examples of Calipso to plot vertical distribution of a variable. But I am getting error in fspan as (but I checked the variable dimension) :</div><div>fatal:fspan: number of elements parameter is less-than-or-equal-to one, can't continue</div><div>Attached is the code and also sent the file through ftp.</div><div><br></div><div>Thanks in advance</div><div>Debasish<br></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></blockquote></div>
</blockquote></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></blockquote></div>