tomodrgn.dose.calculate_spatial_frequencies#
- calculate_spatial_frequencies(angpix: float, boxsize_ht: int) ndarray [source]#
Calculate spatial frequencies for image of width D-1 pixels with sampling of angpix Å/px
- Parameters:
angpix – scalar of pixel size in Å/px, dtype float
boxsize_ht – scalar of fourier-symmetrized box width in pixels (typically odd, 1px larger than input image)
- Returns:
numpy array of spatial frequency at each pixel (units 1/Å), shape (D, D), dtype float