<div dir="ltr"><div class="gmail_default" style="font-size:small">Soumik,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Under the hood, the gsn_csm_pres_hgt tries to overlay your Y axis on a log Y axis.  If your pressure values are too irregularly spaced, then trying to put the plot over a log axis may be a problem.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For debugging purposes, you can try calling gsn_csm_contour just to see if you can create a basic contour plot.:</div><div class="gmail_default" style="font-size:small"><br></div><span style="font-size:12.8px">  plot(ii) = gsn_csm_<div class="gmail_default" style="font-size:small;display:inline">​contour​</div>(wks,sat_clim(</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">ii,:,:),tres) </span><br style="font-size:12.8px"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You won&#39;t get the height values, and your pressure axis won&#39;t be reversed or &quot;log&quot;&#39;d, but at least you can see if the contours look okay.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Also, you may want to look at the pressure coordinate values that you calculated to make sure they look reasonable.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 22, 2016 at 1:20 PM, Soumik Basu <span dir="ltr">&lt;<a href="mailto:sbasu@alaska.edu" target="_blank">sbasu@alaska.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello,<br><br>I am still having problem with getting the plots properly. My original data was a model output and hence on sigma level so I extrapolated the data to pressure levels. Could that be a problem? <br><br></div>I am still getting the following error messages.:<span class=""><br><br>warning:_<wbr>NhlCreateSplineCoordApprox: Attempt to create spline approximation for Y axis failed: consider adjusting trYTensionF value<br>warning:IrTransInitialize: error creating spline approximation for trYCoordPoints; defaulting to linear<br>warning:LlSetValues: invalid range for Y Axis log mode; setting trYLog off<br><br><br></span></div><div>Here are the resources I am using after looking at the example script for OZONE, Sparc<br>:<br>;*****************************<wbr>******************************<wbr>*************<br>; Resources <br>;*****************************<wbr>******************************<wbr>************<br><br>  res                      = True<br><br>  res@gsnDraw              = False    ; don&#39;t draw individual plots<br>  res@gsnFrame             = False    ; don&#39;t advance frame<br><br>  res@trYReverse           = True     ; reverse Y axis<br><br>;---Customize contours<br>  res@cnFillOn             = True     ; turn on contour fill<br>  res@cnLineLabelsOn       = False    ; turn off line labels<br>  res@cnInfoLabelOn        = False    ; turn off info label<br>  res@cnFillPalette        = &quot;BlAqGrYeOrReVi200&quot;; change the color map<br>  res@lbLabelBarOn         = False    ; will add labelbar in panel<br>  res@cnLevelSelectionMode = &quot;ManualLevels&quot;<br><br>;---Various titles<br>  res@gsnRightString       = &quot;&quot;<br>  res@gsnLeftString        = &quot;&quot;<br><br>;---Customize tickmarks<br>  res@tmXTOn                = False       ; turn off top tickmarks<br>  res@tmYROn               = False      ; turn off right tickmarks<br>  res@tmYLMode            = &quot;Explicit&quot;  ; will explicitly label left axis (later)<br><br><br>;---Now create individual resource lists for each variable<br><br>  tres = res<br><br>;---Set explicit labels on left Y axis<br><br>  tres@tmYLValues          = (/0.005,0.01,0.03,0.05,0.1,0.<wbr>3,0.5,0.7,1,5,10,\<br>                               25,50,75,100,200,500,700,850,<wbr>900,1000/)<br><br>  tres@tmYLLabels          = &quot;&quot; + tres@tmYLValues<br><br>;---Fix the contour levels for both plots<br><br>  temp_mnmxint = nice_mnmxintvl( min(sat_clim), max(sat_clim), 10, False)<br>  <br><br>;*****************************<wbr>****************<br>;  Plot the mean of first term <br>;*****************************<wbr>****************<br><br>  do ii = 0,11<br>  <br>  plot(ii) = gsn_csm_pres_hgt(wks,sat_clim(<wbr>ii,:,:),tres) <br><br>  end do<br> <br>;*****************************<wbr>***************<br>;Panel the first two plots<br>;*****************************<wbr>***************<br>  resPanel                              = True<br><br>  resPanel@gsnFrame                     = True<br>  resPanel@gsnMaximize          <wbr>                = True<br>  resPanel@gsnSpreadColors                     = True<br>  resPanel@gsnPanelLabelBar             = True       ; add color bar<br>  resPanel@gsnPanelTop          <wbr>                = 0.95        ; draw up to the bdry of upper plot<br>  resPanel@gsnPanelBottom       <wbr>                = 0.05        ; move bottom up so size is 0.3<br><br>  resPanel@gsnPanelFigureStrings         = (/&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;, &quot;May&quot;,&quot;June&quot;, &quot;July&quot;, &quot;Aug&quot;,&quot;Sep&quot;, &quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;/)<br>  resPanel@<wbr>gsnPanelFigureStringsFontHeigh<wbr>tF     = 0.015<br>  resPanel@<wbr>gsnPanelFigureStringsPerimOn     = True<br>  resPanel@<wbr>gsnPanelFigureStringsBackgroun<wbr>dFillColor = -1<br><br>  resPanel@lbLabelBarOn         <wbr>                = True<br>  resPanel@lbOrientation                 = &quot;vertical&quot;<br>  resPanel@lbLabelAutoStride                = False<br>  resPanel@lbLabelStride                 = 5<br>  resPanel@lbBoxLineThicknessF  <wbr>                = 0.1<br>  resPanel@lbLabelFontThicknessF<wbr>                = 1.75<br>  resPanel@lbLabelFontHeightF   <wbr>                = 0.015<br>  resPanel@lbBoxLinesOn         <wbr>                = False<br><br>  resPanel@amJust               <wbr>                = &quot;TopLeft&quot;<br>  <br>  gsn_panel            (wks,plot,(/4,3/),resPanel)<br><br><br><br></div><div>Thanks,<br></div><div>Soumik<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 20, 2016 at 3:55 PM, Dennis Shea <span dir="ltr">&lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Try now ... just look at the graphics code.  D<br></div><div><div class="h5"><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 20, 2016 at 2:58 PM, Soumik Basu <span dir="ltr">&lt;<a href="mailto:sbasu@alaska.edu" target="_blank">sbasu@alaska.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thank you Dennis. <div><br></div><div>If I click on sparc_2.ncl it is giving an error message. </div><div><br></div><div><span style="color:rgb(0,0,0);font-family:&quot;Times New Roman&quot;;font-size:medium">The requested URL /Applications/Scripts/sparc_2.<wbr>ncl was not found on this server.</span><br></div><div><span style="color:rgb(0,0,0);font-family:&quot;Times New Roman&quot;;font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-family:&quot;Times New Roman&quot;;font-size:medium">Thanks,</span></div><div><span style="color:rgb(0,0,0);font-family:&quot;Times New Roman&quot;;font-size:medium">Soumik</span></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 20, 2016 at 6:27 AM, Dennis Shea <span dir="ltr">&lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Please look at the Applications<br><br><a href="http://www.ncl.ucar.edu/Applications/" target="_blank">http://www.ncl.ucar.edu/Applic<wbr>ations/</a><br><br></div>Under &#39;Datasets&#39; , click &#39;SPARC, OZONE&#39;<br><br></div>Look at the figures. The pressure axis extends higher than 0.01. Code is at: sparc_2.ncl<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Fri, Aug 19, 2016 at 7:03 PM, Soumik Basu <span dir="ltr">&lt;<a href="mailto:sbasu@alaska.edu" target="_blank">sbasu@alaska.edu</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div>Hello ncl-users,<br><br></div>I am trying to plot a pressure vs latitude plot where the pressure goes 1000 hPa to 0.01 hPa. But if I try to plot anything above 1 hPa I am getting a set of following errors. <br><br>warning:_NhlCreateSplineCoordA<wbr>pprox: Attempt to create spline approximation for Y axis failed: consider adjusting trYTensionF value<br>warning:IrTransInitialize: error creating spline approximation for trYCoordPoints; defaulting to linear<br>warning:LlSetValues: invalid range for Y Axis log mode; setting trYLog off<br><br></div>Here is the resource part of my plot: <br><br>;*****************************<wbr>******************************<wbr>*************<br>; Resources for the plot<br>;*****************************<wbr>******************************<wbr>************<br><br>  res                           <wbr>   = True      <br>  <br>  res@gsnDraw                   <wbr>   = False<br>  res@gsnFrame                  <wbr>   = False<br>  res@gsnMaximize               <wbr>   = False<br>  res@gsnSpreadColors           <wbr>   = True <br>  res@gsnSpreadColors           <wbr>   = True                ; use full colormap<br><br>  res@cnFillOn                  <wbr>   = True               <br>  res@cnLinesOn                 <wbr>   = False           <br>  res@cnLevelSelectionMode      <wbr>   = &quot;ManualLevels&quot;<br>  res@cnMinLevelValF            <wbr>   = 180<br>  res@cnMaxLevelValF            <wbr>   = 300<br>  res@cnLevelSpacingF           <wbr>   = 2<br>  res@cnInfoLabelOn             <wbr>   = False                     ; turn off cn info label<br>  res@cnLineLabelsOn            <wbr>   = False<br>  res@cnLineLabelFontHeightF    <wbr>   = 0.015<br><br>  res@tmLabelAutoStride         <wbr>   = True<br>  res@tmXTOn                    <wbr>   = False<br>  res@tmYROn                    <wbr>   = True<br>  res@tmXBLabelFontHeightF      <wbr>   = 0.030 <br>  res@tmYLLabelFontHeightF      <wbr>   = 0.030<br><br>  res@trYTensionF               <wbr>   = 0.5 <br>  res@trYLog                    <wbr>   = True<br><br>  res@lbOrientation             <wbr>   = &quot;horizontal&quot;  ;vertical label bar<br>  res@lbLabelBarOn              <wbr>   = False<br>  res@lbLabelAutoStride         <wbr>   = True<br><br><div><div><br clear="all"><div><div>I guess it is due to the irregular pressure axis but is there any way to solve it and make a plot properly? Thank you for any suggestions. <br><br></div><div>Thanks,<br></div><div>Soumik<br></div><div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div>-- </div><div>&quot;Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning.&quot; - Albert Einstein</div><div><br></div><div>******************************<wbr>******************************<wbr>******************************<wbr>********</div><div>Dr. Soumik Basu</div><div>Post Doctoral Fellow, International Arctic Research Center, UAF, Fairbanks, AK, USA</div><div>Nanjing University of Information Science and Technology, Nanjing, China</div><div>PhD in Atmospheric Sciences</div><div>M.Sc. in Atmospheric Sciences</div><div>Email: <a href="mailto:suvro05@gmail.com" target="_blank">suvro05@gmail.com</a></div><div>website: <a href="http://soumikbasu.weebly.com/" target="_blank">http://soumikbasu.weebly.com/</a></div><div><br></div><div>******************************<wbr>******************************<wbr>******************************<wbr>*********</div></div></div></div>
</div></div></div></div></div>
<br></div></div>______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div>-- </div><div>&quot;Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning.&quot; - Albert Einstein</div><div><br></div><div>******************************<wbr>******************************<wbr>******************************<wbr>********</div><div>Dr. Soumik Basu</div><div>Post Doctoral Fellow, International Arctic Research Center, UAF, Fairbanks, AK, USA</div><div>Nanjing University of Information Science and Technology, Nanjing, China</div><div>PhD in Atmospheric Sciences</div><div>M.Sc. in Atmospheric Sciences</div><div>Email: <a href="mailto:suvro05@gmail.com" target="_blank">suvro05@gmail.com</a></div><div>website: <a href="http://soumikbasu.weebly.com/" target="_blank">http://soumikbasu.weebly.com/</a></div><div><br></div><div>******************************<wbr>******************************<wbr>******************************<wbr>*********</div></div></div></div>
</div>
</div></div></blockquote></div><br></div>
</div></div></div></div></blockquote></div><div><div class="h5"><br><br clear="all"><br>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div>-- </div><div>&quot;Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning.&quot; - Albert Einstein</div><div><br></div><div>******************************<wbr>******************************<wbr>******************************<wbr>********</div><div>Dr. Soumik Basu</div><div>Post Doctoral Fellow, International Arctic Research Center, UAF, Fairbanks, AK, USA</div><div>Nanjing University of Information Science and Technology, Nanjing, China</div><div>PhD in Atmospheric Sciences</div><div>M.Sc. in Atmospheric Sciences</div><div>Email: <a href="mailto:suvro05@gmail.com" target="_blank">suvro05@gmail.com</a></div><div>website: <a href="http://soumikbasu.weebly.com/" target="_blank">http://soumikbasu.weebly.com/</a></div><div><br></div><div>******************************<wbr>******************************<wbr>******************************<wbr>*********</div></div></div></div>
</div></div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>