% bio_save.m

% write ascii files

[m n o] = size(no3);

% save command below saves variables in order created. period.
% because the folks at Mathworks have decreed that it be so.

% So, the variables used below cannot have been previously
% created within the matlab session that calls this script.

Aa = reshape(no3 ,m*n,o);
Bb = reshape(pno3,m*n,o);
Cc = reshape(zoo ,m*n,o);
Dd = reshape(nh4 ,m*n,o);
Ee = reshape(det ,m*n,o);
Ff = reshape(chl ,m*n,o);
Gg = reshape(pnh4,m*n,o);

%a=no3'; b=Pno3'; c2=zoo'; d=nh4'; e=det'; f=chl'; g=Pnh4';

save bio_fields.dat Aa Bb Cc Dd Ee Ff Gg -ascii

