-
Notifications
You must be signed in to change notification settings - Fork 23
Appendix A
Shawn Harrison edited this page Jan 27, 2017
·
3 revisions
Appendix A: Example Pixel Collection m-file
The following is an example m-file used to create a cBathy array for Agate Beach, Oregon, in 2011. It works only for Argus systems but can be used as an illustration or template for other systems. The cBathy-specific part of the code is the five lines follow the comment ‘% create a large matrix coverage for cBathy’ and simply creates a matrix of pixel instruments over the sampling area with x and y spacing of 10 and 20 m, respectively.
% pixel array design for Agate Beach
%
% Designed 10/05/11
% Holman
clear all; DBConnect;
global DBIsOkForAutoGeoms
DBIsOkForAutoGeoms ='noautook'
PIXForget; PIXSetStation('argus00');
% create a large matrix coverage for cBathy x1 = 150; x2 = 2500; dx = 10.0;
y1 = -1300; y2 = 2000; dy = 20;
tide=0;
iid1=PIXCreateInstrument('mBW','matrix', PIXFixedZ+PIXDeBayerStack);
PIXAddMatrix(iid1,x1, y1, x2, y2, tide, dx, dy);
% Now schedule the collection. epoch=matlab2Epoch(now); cams = [0 1 3];
idBWPack = PIXCreatePackage(demoTest, [iid1]);
r=PIXBuildCollect(idBWPack,epoch,tide,cams);
PIXScheduleCollectIII(cams,2048,2,r);