<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki-pnb.eri.ucsb.edu/index.php?action=history&amp;feed=atom&amp;title=Ctdstrip_E.m</id>
	<title>Ctdstrip E.m - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki-pnb.eri.ucsb.edu/index.php?action=history&amp;feed=atom&amp;title=Ctdstrip_E.m"/>
	<link rel="alternate" type="text/html" href="https://wiki-pnb.eri.ucsb.edu/index.php?title=Ctdstrip_E.m&amp;action=history"/>
	<updated>2026-04-19T07:05:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://wiki-pnb.eri.ucsb.edu/index.php?title=Ctdstrip_E.m&amp;diff=192&amp;oldid=prev</id>
		<title>128.111.101.185: Created page with '&lt;pre&gt; function  ctdstrip_E(pb,file) %ctdstrip_E %created by Erik Stassinos 2/10/10 %m function to strip first and third columns from ctd file and write them %to XyymmddD.ASC.stri…'</title>
		<link rel="alternate" type="text/html" href="https://wiki-pnb.eri.ucsb.edu/index.php?title=Ctdstrip_E.m&amp;diff=192&amp;oldid=prev"/>
		<updated>2010-08-05T22:15:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;&amp;lt;pre&amp;gt; function  ctdstrip_E(pb,file) %ctdstrip_E %created by Erik Stassinos 2/10/10 %m function to strip first and third columns from ctd file and write them %to XyymmddD.ASC.stri…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
function  ctdstrip_E(pb,file)&lt;br /&gt;
%ctdstrip_E&lt;br /&gt;
%created by Erik Stassinos 2/10/10&lt;br /&gt;
%m function to strip first and third columns from ctd file and write them&lt;br /&gt;
%to XyymmddD.ASC.strip&lt;br /&gt;
%can run from processing dir.&lt;br /&gt;
%file is just file name without extension&lt;br /&gt;
%this function also makes the &amp;quot;list_ctd&amp;quot; file in the processing directory&lt;br /&gt;
&lt;br /&gt;
%cd .. for when in proc dir.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%cd(pb) %need to change&lt;br /&gt;
here = pwd;&lt;br /&gt;
&lt;br /&gt;
cd ..;&lt;br /&gt;
cd('CTD');&lt;br /&gt;
cd(pb);&lt;br /&gt;
cd('for_ac9');&lt;br /&gt;
copyfile(file,here);&lt;br /&gt;
pattern = fullfile(pwd,'*.asc');%assumes lower case .asc format&lt;br /&gt;
list = dir(pattern);&lt;br /&gt;
if isempty(list)&lt;br /&gt;
    disp('cannot find any .asc files here:')&lt;br /&gt;
    pwd&lt;br /&gt;
    return&lt;br /&gt;
end&lt;br /&gt;
for p = 1:size(list);&lt;br /&gt;
    list_ctd(p,:) = list(p).name;&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
id = load(file,'.ASC');&lt;br /&gt;
x = id(:,1);&lt;br /&gt;
y = id(:,3);&lt;br /&gt;
columns(:,1) = x;&lt;br /&gt;
columns(:,2) = y;&lt;br /&gt;
&lt;br /&gt;
%cd ..&lt;br /&gt;
cd ../../..&lt;br /&gt;
cd('processing'); %sends it back to processing dir&lt;br /&gt;
&lt;br /&gt;
dlmwrite(strcat(file,'.strip'),columns,'delimiter',' ','precision',6);&lt;br /&gt;
dlmwrite('list_ctd',list_ctd,'');&lt;br /&gt;
%cd ..%/..&lt;br /&gt;
&lt;br /&gt;
sprintf('done with ctdstrip_E')&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;[[ctdstrip_E]]&amp;lt;big&amp;gt;&lt;/div&gt;</summary>
		<author><name>128.111.101.185</name></author>
		
	</entry>
</feed>