Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update grace2slept.m #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions grace2slept.m
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@
end

else % GEOGRAPHICAL REGIONS and XY REGIONS
% Check if you want the Shannon number of eigenfunctions
if strcmp(J,'N')
J = round((Lwindow+1)^2*spharea(TH));
end
if isstr(TH) % Geographic
% Here, TH gets passed to glmalpha, and glmalpha will interpret
% either the cell of the region
Expand All @@ -124,6 +120,10 @@
else % Closed coordinates (make a hash)
h=hash(TH,'sha1');
end
% Check if you want the Shannon number of eigenfunctions
if strcmp(J,'N')
J = round((Lwindow+1)^2*spharea(TH));
end
% The name of the save file
if lp
fnpl=sprintf('%s/grace2slept-%s-%s-%i-%i-%s.mat',...
Expand Down