if(~exist('fname','var'));
    beep
    disp('ERROR: There needs to be a variable named "fname" in the workspace');
    return
end

rlon=nc_varget(fname,'lon_rho');
rlat=nc_varget(fname,'lat_rho');
mask=nc_varget(fname,'mask_rho');

ulon=nc_varget(fname,'lon_u');
ulat=nc_varget(fname,'lat_u');
umask=nc_varget(fname,'mask_u');

vlon=nc_varget(fname,'lon_v');
vlat=nc_varget(fname,'lat_v');
vmask=nc_varget(fname,'mask_v');
