<div dir="ltr"><div dir="ltr"><div>Hello Andries</div><div><br></div><div>I only skimmed the scripts. I did not see anything 'wrong'.</div><div>Perhaps some form of filtering of the source 1x1 grid. <br></div><div><br></div><div>The following filters work on the spherical harmonic coefficients.<br></div><div><br></div><div><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/tri_trunC-1.shtml"><b>tri_trunC   </b></a>: Triangular truncation of spherical harmonic coefficients</div><div><br></div><div><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/exp_tapershC.shtml"><b>exp_tapershC</b></a>: : Performs tapering (filtering) of the spherical harmonic coefficients</div><div><br></div><div>I have a 1x1 grid so I used that. See attached script. Substitute your file.</div><div><br></div><div>Play with the various parameters.</div><div><br></div><div>Of course, the contour intervals will have to be adjusted.</div><div><br></div><div>Hope this helps..</div><div><br></div><div>D<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 7, 2019 at 6:03 AM De Vries  Andries <<a href="mailto:andries.devries@env.ethz.ch">andries.devries@env.ethz.ch</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">Hi Dennis,<br>
<br>
Thank you very much for your helpful response. I looked a bit into this ringing/Gibbs phenomenon and it seems indeed the issue looks very much like that. <br>
<br>
At the moment I see the following options/solutions: <br>
1) accepting the ringing effect in the PV data on a regular grid. Large differences only occur very close to the Pole and might not be a big problem<br>
2) switching to working with data on a gaussian grid. <br>
<br>
Any comments on this? Or perhaps any other solutions that I miss? By the way, please, find attached the scripts how I compute the PV for the regular and Gaussian grids, and another one to assess the differences in the PV files. I forgot to attach those in the previous email. If there is anything in the scripts that looks suspicious or might explain the the issue, please, let me know.<br>
<br>
Cheers,<br>
Andries<br>
________________________________________<br>
From: Dennis Shea [<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>]<br>
Sent: 06 March 2019 19:57<br>
To: De Vries  Andries<br>
Cc: <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
Subject: Re: [ncl-talk] compute PV on hybrid levels on a regular global grid with function pot_vort_hybrid; weird, fluctuating values toward the poles<br>
<br>
<a href="http://www.ncl.ucar.edu/Applications/pot_vort.shtml" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/Applications/pot_vort.shtml</a><br>
<br>
[1]<br>
"Previously, I computed PV using data from ERA-Interim on a gaussian grid without any troubles."<br>
<br>
[2]<br>
"Now I try the same, but with ERA-Interim data on a regular 1x1 grid.<br>
<br>
---<br>
pot_vort_hybrid<<a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/pot_vort_hybrid.shtml" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/Document/Functions/Contributed/pot_vort_hybrid.shtml</a>>: This function works with both gaussian and regular grids. Same code, just a switch for the grid type<br>
<br>
---<br>
I speculate that the ECMWFspectral  interpolation from the source gaussian grid to 1x1 is the issue. Spectral interpolation can result in "ringing" due to Gibbs phenomenon.<br>
<br>
D<br>
<br>
<br>
<br>
<br>
<br>
On Wed, Mar 6, 2019 at 10:31 AM De Vries Andries <<a href="mailto:andries.devries@env.ethz.ch" target="_blank">andries.devries@env.ethz.ch</a><mailto:<a href="mailto:andries.devries@env.ethz.ch" target="_blank">andries.devries@env.ethz.ch</a>>> wrote:<br>
Dear NCL team & NCL users,<br>
<br>
I have an issue with the computation of potential vorticity (PV) on hybrid levels using the function "pot_vort_hybrid". Previously, I computed PV using data from ERA-Interim on a gaussian grid without any troubles. Now I try the same, but with ERA-Interim data on a regular 1x1 grid. I found that values toward the pole are fluctuating with respect to PV that has been provided directly by the ECMWF. (The reason for computing PV myself is to obtain PV isentropic surfaces with higher intervals than provided by ECMWF). In other words, the PV that I compute show increasing, positive & negative alternating values as compared to the PV that is provided by the ECMWF.<br>
<br>
Any idea if I do something wrong, and/or how to fix this issue?<br>
<br>
Please, find attached the two scripts for the computation of PV on a Gaussian grid and on a regular grid, as well as a short script that prints the numerical differences between the two output files. The needed data files to compute PV on a guassian and regular grid, as well as files with PV from ECMWF are uploaded.<br>
<br>
Looking forward for any feedback!<br>
Many thanks!<br>
<br>
Cheers,<br>
Andries<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><mailto:<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>