libftsh
A Fast Transform for Spherical Harmonics
|
Analyze (expand) using the fast1 algorithm. More...
#include "../libftsh.h"
Defines | |
#define | DOTIME 1 |
Functions | |
int | main (int argc, char *argv[]) |
Analyze (expand) using the fast1 algorithm.
This program does the analysis (expansion)) portion of the fast transform for spherical harmonics, using the plan created by initialize_f1
This is essentially a demo version, since in a real program one would not want to read/write to files this often.
We only do the Associated Legendre Transform part of the SH transform. To do a full transform, you also need to fourier transform in longitude.
Usage: call this routine with 3 command-line arguments: f1_file fcn_file out_file
OPTIONS: set DOTIME to 1 to turn on timing