-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- reduce gcmfaces.pdf to a few links, including to the reformatted do…
…cumentation hosted at readthedocs - add .gitignore and gcmfaces_calc/calc_UV_zonmer.m (replacement for gcmfaces_calc/calc_UEVNfromUXVY.m) - gcmfaces_calc/calc_UEVNfromUXVY.m: now just applies masks and calls gcmfaces_calc/calc_UV_zonmer.m - gcmfaces_diags/diags_driver_tex.m: add a new section title
- Loading branch information
1 parent
b9bec05
commit b7eb0c4
Showing
5 changed files
with
38 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
docs/_build | ||
.ipynb_checkpoints | ||
octave-workspace | ||
release2_climatology | ||
GRID | ||
devel | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
function [fldUe,fldVn]=calc_UV_zonmer(fldU,fldV); | ||
%object: compute Eastward/Northward vectors form X/Y vectors | ||
%inputs: fldU/fldV are the X/Y vector fields at velocity points | ||
%outputs: fldUe/fldVn are the Eastward/Northward vectors at tracer points | ||
% | ||
%note: this routine does no apply any mask -- unlike the old calc_UEVNfromUXVY.m | ||
|
||
gcmfaces_global; | ||
|
||
[FLDU,FLDV]=exch_UV(fldU,fldV); | ||
|
||
fldUe=fldU; fldVn=fldV; | ||
for iF=1:fldU.nFaces; | ||
tmp1=FLDU{iF}(1:end-1,:,:); tmp2=FLDU{iF}(2:end,:,:); | ||
fldUe{iF}=reshape(nanmean([tmp1(:) tmp2(:)],2),size(tmp1)); | ||
tmp1=FLDV{iF}(:,1:end-1,:); tmp2=FLDV{iF}(:,2:end,:); | ||
fldVn{iF}=reshape(nanmean([tmp1(:) tmp2(:)],2),size(tmp1)); | ||
end; | ||
|
||
FLDU=fldUe; FLDV=fldVn; | ||
cs=mk3D(mygrid.AngleCS,FLDU); sn=mk3D(mygrid.AngleSN,FLDU); | ||
|
||
fldUe=+FLDU.*cs-FLDV.*sn; | ||
fldVn=FLDU.*sn+FLDV.*cs; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters