1 |
%function interpicks(dirin,dirout,varargin) |
function interpickups(dirin,dirout,varargin) |
2 |
% function interpicks(dirin,dirout,snap) |
% function interpickups(dirin,dirout,snap) |
3 |
% |
% |
4 |
% This function interpolates the data in |
% This function interpolates the data in |
5 |
% a set of mnc pickup files and grid files from the MITgcm |
% a set of mnc pickup files and grid files from the MITgcm |
15 |
% |
% |
16 |
% Snap is an optional argument if there is more than one timestep |
% Snap is an optional argument if there is more than one timestep |
17 |
% in the file. The default is 1. |
% in the file. The default is 1. |
18 |
|
% |
19 |
|
% May be fishy near boundaries if grid is not uniform... |
20 |
|
|
21 |
%if nargin==2 |
if nargin==2 |
22 |
snap=1 |
snap=1 |
23 |
%else |
else |
24 |
% snap=varargin{1} |
snap=varargin{1} |
25 |
%endif |
endif |
26 |
|
|
27 |
if (strcmp(dirin,dirout)) |
if (strcmp(dirin,dirout)) |
28 |
error('dir','You cant use the same input and output directories!') |
error('dir','You cant use the same input and output directories!') |