Skip to content

Commit

Permalink
Added note that pyspedas.avg_data() is almost always a better choice,…
Browse files Browse the repository at this point in the history
… unless the input is known to be evenly gridded, and the res parameter evenly divides the sample count,.
  • Loading branch information
jameswilburlewis committed Oct 24, 2024
1 parent 7bbcd9f commit 9bdf9be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pytplot/tplot_math/avg_res_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ def avg_res_data(tvar,res,newname=None,new_tvar=None):
-------
None
Notes
-----
This routine uses the xarray coarsen() method to reduce the time resolution. It will only work if the
data is evenly gridded, and the res parameter evenly divides the number of samples.
For most purposes, it is more appropriate to use pyspedas.avg_data() instead.
Examples
--------
Expand Down

0 comments on commit 9bdf9be

Please sign in to comment.