csdms-contrib / slepian_charlie

Quadratic spectral estimation problems using scalar Slepian functions
GNU General Public License v2.0
1 stars 3 forks source link

zeroj needs to run wignercycle when database not available. threej has similar problem. sixj as well #1

Open AlainPlattner opened 8 years ago

AlainPlattner commented 8 years ago

zeroj line 68:

  error('Insufficient bandwidth for database')
  % HERE WE SHOULD RUN WIGNERCYCLE

Need to make it automatically run wignercycle to improve ease of use. Or at lease print out a warning: please run wignercycle(xxxx)

AlainPlattner commented 8 years ago

threej has a similar problem on line 82 and 85.

AlainPlattner commented 8 years ago

Also in gammap line 258: when we call sixj without having yet calculated any wigner 6j symbols before, then the function crashes because the list of databases is empty

AlainPlattner commented 8 years ago

And even if there is a 6j database already, I get an error in wignercycle

Undefined function or variable "fid1".

Error in wignercycle (line 212) fwrite(fid1,C,fmt1); % The column number, "C"

Error in sixj (line 108) wignercycle(L,6);

AlainPlattner commented 8 years ago

It seems as if there are issues with wignercycle, zeroj, threej, and sixj. To recognize and iron out all issues, I recommend to try and run the programs with an empty /WIGNER directory.

harig00 commented 8 years ago

Frederik should be the one to decide what to do with this, but I will just add that I know there are some things in three and sixj that will purposefully break because he wants people to use wignercycle instead to make the databases. I have not used these much, so he should tell you his "vision".