<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.:<br><br>warning:_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></div><div>Here are the resources I am using after looking at the example script for OZONE, Sparc<br>:<br>;************************************************************************<br>; Resources <br>;***********************************************************************<br><br> res = True<br><br> res@gsnDraw = False ; don't draw individual plots<br> res@gsnFrame = False ; don'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 = "BlAqGrYeOrReVi200"; change the color map<br> res@lbLabelBarOn = False ; will add labelbar in panel<br> res@cnLevelSelectionMode = "ManualLevels"<br><br>;---Various titles<br> res@gsnRightString = ""<br> res@gsnLeftString = ""<br><br>;---Customize tickmarks<br> res@tmXTOn = False ; turn off top tickmarks<br> res@tmYROn = False ; turn off right tickmarks<br> res@tmYLMode = "Explicit" ; 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.3,0.5,0.7,1,5,10,\<br> 25,50,75,100,200,500,700,850,900,1000/)<br><br> tres@tmYLLabels = "" + 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>;*********************************************<br>; Plot the mean of first term <br>;*********************************************<br><br> do ii = 0,11<br> <br> plot(ii) = gsn_csm_pres_hgt(wks,sat_clim(ii,:,:),tres) <br><br> end do<br> <br>;********************************************<br>;Panel the first two plots<br>;********************************************<br> resPanel = True<br><br> resPanel@gsnFrame = True<br> resPanel@gsnMaximize = True<br> resPanel@gsnSpreadColors = True<br> resPanel@gsnPanelLabelBar = True ; add color bar<br> resPanel@gsnPanelTop = 0.95 ; draw up to the bdry of upper plot<br> resPanel@gsnPanelBottom = 0.05 ; move bottom up so size is 0.3<br><br> resPanel@gsnPanelFigureStrings = (/"Jan","Feb","Mar","Apr", "May","June", "July", "Aug","Sep", "Oct","Nov","Dec"/)<br> resPanel@gsnPanelFigureStringsFontHeightF = 0.015<br> resPanel@gsnPanelFigureStringsPerimOn = True<br> resPanel@gsnPanelFigureStringsBackgroundFillColor = -1<br><br> resPanel@lbLabelBarOn = True<br> resPanel@lbOrientation = "vertical"<br> resPanel@lbLabelAutoStride = False<br> resPanel@lbLabelStride = 5<br> resPanel@lbBoxLineThicknessF = 0.1<br> resPanel@lbLabelFontThicknessF = 1.75<br> resPanel@lbLabelFontHeightF = 0.015<br> resPanel@lbBoxLinesOn = False<br><br> resPanel@amJust = "TopLeft"<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"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></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 class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 20, 2016 at 2:58 PM, Soumik Basu <span dir="ltr"><<a href="mailto:sbasu@alaska.edu" target="_blank">sbasu@alaska.edu</a>></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:"Times New Roman";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:"Times New Roman";font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium">Thanks,</span></div><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";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"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></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 'Datasets' , click 'SPARC, OZONE'<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"><<a href="mailto:sbasu@alaska.edu" target="_blank">sbasu@alaska.edu</a>></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> = "ManualLevels"<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> = "horizontal" ;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>"Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning." - 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>"Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning." - 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></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div>-- </div><div>"Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning." - Albert Einstein</div><div><br></div><div>**************************************************************************************************</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>***************************************************************************************************</div></div></div></div>
</div>