<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
Hi NCL's users,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
I'm trying to plot a hovmueller, which I select the values of the Y-axis as explicit, but it is not working.<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
When I comment the lines to the explicit axis, the values appear, but not in the order of the data, f<span style="font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">rom highest to lowest
<span style="font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">
(see attached figure)</span>. <span style="font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">I wanted the axis values to be from 1000 to 100, from </span><span style="margin: 0px; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255)">bottom
to top. </span> </span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
Could anyone help me with what is missing on this exemple? <span><br>
</span><span></span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
Thanks</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
Follow the script and summary of the variable:<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
...</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
f1 = addfile("omega.nc", "r")<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
var1 = f1->OMEGA(0,:,:,:)<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
var = lonPivot(var1, 180)<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
AvgLat = dim_avg_n_Wrap( var, 1 )<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
<span>res@tmYLMode = "Explicit"<br>
</span>
<div>res@tmYLValues = (/ 0.,1.,2.,3.,4.,5.,6.,7.,8.,9./)<br>
</div>
<div>res@tmYLLabels = (/"1000","900","800","700","600","500","400","300","200","100"/)<br>
</div>
<span></span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
plot = gsn_csm_hov(wks, AvgLat(:,{-120:-15}), res) <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; color: rgb(0, 0, 0);">
<span>Variable: var<br>
</span>
<div>Type: float<br>
</div>
<div>Total Size: 327680 bytes<br>
</div>
<div> 81920 values<br>
</div>
<div>Number of Dimensions: 3<br>
</div>
<div>Dimensions and sizes: [lev | 10] x [lat | 64] x [lon | 128]<br>
</div>
<div>Coordinates: <br>
</div>
<div> lev: [992.528..99.0432]<br>
</div>
<div> lat: [-87.8638..87.8638]<br>
</div>
<div> lon: [-180..177.1875]<br>
</div>
<div>Number Of Attributes: 7<br>
</div>
<div> time : 0<br>
</div>
<div> time_op : average<br>
</div>
<div> missing_value : 1e+36<br>
</div>
<div> _FillValue : 1e+36<br>
</div>
<div> units : PA/S<br>
</div>
<div> long_name : Vertical velocity (pressure)<br>
</div>
<div> lonPivot : reordered via lonPivot [NCL]: pivotLon=180<br>
</div>
<div><br>
</div>
<div>Variable: AvgLat<br>
</div>
<div>Type: float<br>
</div>
<div>Total Size: 5120 bytes<br>
</div>
<div> 1280 values<br>
</div>
<div>Number of Dimensions: 2<br>
</div>
<div>Dimensions and sizes: [lev | 10] x [lon | 128]<br>
</div>
<div>Coordinates: <br>
</div>
<div> lev: [992.528..99.0432]<br>
</div>
<div> lon: [-180..177.1875]<br>
</div>
<div>Number Of Attributes: 8<br>
</div>
<div> _FillValue : 1e+36<br>
</div>
<div> time : 0<br>
</div>
<div> time_op : average<br>
</div>
<div> units : PA/S<br>
</div>
<div> long_name : Vertical velocity (pressure)<br>
</div>
<div> lonPivot : reordered via lonPivot [NCL]: pivotLon=180<br>
</div>
<div> missing_value : 1e+36<br>
</div>
<div> average_op_ncl : dim_avg_n over dimension(s): lat<br>
</div>
<span></span><br>
</div>
</body>
</html>