generated from NEFSC/NEFSC-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better plots, add units, handle 0 data more clear
- Loading branch information
1 parent
9acebab
commit a5c3b4c
Showing
2 changed files
with
51 additions
and
7 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,33 @@ | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% Typical fileName: 'Lat_Lon_Grid_ABUN....' | ||
% or 'Lat_Lon_Survey_ABUN...' | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
function units = GetUnits(fileName) | ||
units =''; | ||
k=strfind(fileName,'ABUN'); | ||
if k>0, units = 'scallops/m^2';end | ||
|
||
k=strfind(fileName,'BIOM'); | ||
if k>0, units = 'g/m^2';end | ||
|
||
k=strfind(fileName,'EBMS'); | ||
if k>0, units = 'metric tons';end | ||
|
||
k=strfind(fileName,'FEFF'); | ||
if k>0, units = 'unitless';end | ||
|
||
k=strfind(fileName,'FMOR'); | ||
if k>0, units = 'unitless';end | ||
|
||
k=strfind(fileName,'LAND'); | ||
if k>0, units = 'scallops';end | ||
|
||
k=strfind(fileName,'LNDW'); | ||
if k>0, units = 'grams';end | ||
|
||
k=strfind(fileName,'LPUE'); | ||
if k>0, units = 'landings/day';end | ||
|
||
k=strfind(fileName,'RECR'); | ||
if k>0, units = 'scallops/m^2';end | ||
end |
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