Astroua / TurbuStat

Statistics of Turbulence Python Package

Home Page:http://turbustat.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make the radial bin sizes easier to access

e-koch opened this issue · comments

The default bin size is 1 pixel so the largest frequencies will have few pixels when binning and shot noise is an issue. The bin size can be changed from run for most of the power-spectra-based methods, but it isn't obvious (radial_pspec_kwargs={'binsize': 1.0}). This seems like something that should be easier for users to change.

Maybe set the default bin size to require a certain number of points on the largest scale bins. Or find the bin size needed to have the shot noise be smaller than the stddev in the bin.

This is now highlighted better in the docs as of #169. There are additional options for the handling of the FFT that are also accessed by passing a kwarg dict, so I've decided to keep the current syntax for setting the bin size.