% decimate to 3-hourly 3D fields
pnm='~dmenemen/llc_4320/regions/Boxes/Box12/';
for fld={'U','V','W','Theta','Salt'}
    system(['mkdir ' pnm fld{1} '3hourly']);
    fnm=dir([pnm fld{1} '/*_' fld{1} '_*']);
    for f=1:3:length(fnm)
        system(['mv ' pnm fld{1} '/' fnm(f).name ' ' pnm fld{1} '3hourly']);
    end
end
