%  DoLineCheck.m  - Calls plotCtdCasts for different cruises or station
%                   groups to see the cast location. 
%                   Call SetDefaults before running this routine.
%    needs variables set: GEOMINFO CRUISEINFO DEFAULTS
%    sets variables: CruiseName FixGrid Line xrange yrange 
%    calls: SetupPlots plotCtdCasts

global GEOMINFO CRUISEINFO DEFAULTS 

DoAllLines=1;
DoXlines=0;
DoYlines=0;
DoSpecial=0;

xrange=[0 600];
yrange=[-100 350];

%          force read of new cruise info
CRUISEINFO=0;

%CruiseName='NBP0103';
CruiseName='NBP0104';
%CruiseName='NBP0202';
%CruiseName='NBP0204';

FixGrid=0;
%FixGrid=1;

if DoAllLines
%  Line='alls';
  Line='grid';
  SetupPlots;
  plotCtdCasts
%  plotXbtCasts
%  plotXctdCasts
end

if DoXlines

  Line='x500';
  SetupPlots;
  plotCtdCasts

  Line='x460';
  SetupPlots;
  plotCtdCasts

  Line='x420';
  SetupPlots;
  plotCtdCasts

  Line='x380';
  SetupPlots;
  plotCtdCasts

  Line='x340';
  SetupPlots;
  plotCtdCasts

  Line='x300';
  SetupPlots;
  plotCtdCasts

  Line='x260';
  SetupPlots;
  plotCtdCasts

  Line='x220';
  SetupPlots;
  plotCtdCasts

  Line='x180';
  SetupPlots;
  plotCtdCasts

  Line='x140';
  SetupPlots;
  plotCtdCasts

  Line='x100';
  SetupPlots;
  plotCtdCasts

  Line='x060';
  SetupPlots;
  plotCtdCasts

end

if DoYlines

  Line='y260';
  SetupPlots;
  plotCtdCasts

  Line='y220';
  SetupPlots;
  plotCtdCasts

  Line='y180';
  SetupPlots;
  plotCtdCasts

  Line='y140';
  SetupPlots;
  plotCtdCasts

  Line='y100';
  SetupPlots;
  plotCtdCasts

end

if DoSpecial

  Line='r001';
%  Line='x304';
  SetupPlots;
  plotCtdCasts

end
