-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinit_ctd_proc.bat
2550 lines (2499 loc) · 156 KB
/
init_ctd_proc.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@echo off
SETLOCAL
SET _EXITSTATUS=0
SET _ARGNUM=0
SET BASE_DIR=c:\users\Public\Documents
FOR %%i IN (%*) DO SET /A _ARGNUM+=1
IF %_ARGNUM% LSS 1 (
SET _EXITSTATUS=1
GOTO:_SHOWUSAGE
)
IF %_ARGNUM% GTR 2 (
call :_SHOWUSAGE %0%
set _EXITSTATUS=1
GOTO:_EOF
)
IF %_ARGNUM% EQU 2 (
SET BASE_DIR=%2
)
REM ########################################################################
REM # The cruise name. This value is used to construct the file names #
REM # that be read and written to. #
REM #
SET CRUISE_ID=%1
REM # #
REM ########################################################################
REM # Path to the Sea Bird executables that will run with wine. #
REM # #
SET SBE_DIR="c:\Program Files (x86)\Sea-Bird\SBEDataProcessing-Win32"
REM # #
REM ########################################################################
REM # Base directory that holds the CTD processing files #
REM # All directories assosciated with CTD processing will fall under this #
REM # directory. #
REM # #
SET CTD_DIR=%BASE_DIR%\ctd_proc
REM # #
REM ########################################################################
REM # Directory where the raw data files are placed. #
REM # This corresponds to %1 in the sbe_batch.dat script. #
REM # #
SET RAW_DIR=%CTD_DIR%\raw_data
REM # #
REM ########################################################################
REM # Directory where the 1db processed data will be placed. #
REM # This corresponds to %3 in the sbe_batch.dat script. #
REM # #
SET PROCDATA_1DB_DIR=%CTD_DIR%\1db\proc_data
REM # #
REM ########################################################################
REM # Directory where the 1hz processed data will be placed. #
REM # #
REM # This corresponds to %4 in the sbe_batch.dat script. #
SET PROCDATA_1HZ_DIR=%CTD_DIR%\1hz\proc_data
REM # #
REM ########################################################################
REM # Directory that holds the 1db PSA files. #
REM # This corresponds to %5 in the sbe_batch.dat script. #
REM # #
SET PSA_1DB=%CTD_DIR%\1db\psa
REM # #
REM ########################################################################
REM # Directory that holds the 1hz PSA files. #
REM # This corresponds to %6 in the sbe_batch.dat script. #
REM # #
SET PSA_1HZ=%CTD_DIR%\1hz\psa
REM # #
REM ########################################################################
REM # Directory where the bottle files will be placed. #
REM # This corresponds to %7 in the sbe_batch.dat script. #
REM # #
SET BOTTLE_DIR=%CTD_DIR%\bottle
REM # #
REM ########################################################################
REM # Directory that holds the processing scripts. #
REM # #
SET SBEBATCH_DIR=%CTD_DIR%\batch_files
REM # #
REM ########################################################################
REM # #
SET BATCH_FILE=%SBEBATCH_DIR%\sbe_batch.dat
REM # #
REM ########################################################################
REM # Builds the directory structure. Once built, the PSA files need to be
REM # manually placed into the appropriate locations.
IF NOT EXIST %RAW_DIR% (
mkdir %RAW_DIR%
)
IF NOT EXIST %PROCDATA_1DB_DIR% (
mkdir %PROCDATA_1DB_DIR%
)
IF NOT EXIST %PROCDATA_1HZ_DIR% (
mkdir %PROCDATA_1HZ_DIR%
)
IF NOT EXIST %PSA_1DB% (
mkdir %PSA_1DB%
)
IF NOT EXIST %PSA_1HZ% (
mkdir %PSA_1HZ%
)
IF NOT EXIST %BOTTLE_DIR% (
mkdir %BOTTLE_DIR%
)
IF NOT EXIST %SBEBATCH_DIR% (
mkdir %SBEBATCH_DIR%
)
REM # Generate 1db files
REM #### COPY BELOW THIS LINE ####
REM #### START AlignCTD.psa ####
echo ^<?xml version="1.0" encoding="UTF-8"?^> >%PSA_1DB%\AlignCTD.psa
echo ^<Align_CTD ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<Version value="7.23.2" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ServerName value="Align CTD" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<InputDir value="C:\Users\scs.user.rb\CTD\ab1802\proc_data\1db" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<InputFileArray size="1" GrowBy="-1" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ArrayItem index="0" value="ab1802_000.cnv" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^</InputFileArray^> >>%PSA_1DB%\AlignCTD.psa
echo ^<OutputDir value="C:\Users\scs.user.rb\CTD\ab1802\proc_data\1db" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<NameAppend value="" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<OutputFile value="ab1802_000.cnv" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<LastProcessed value="0" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<CalcArray Size="11" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<CalcArrayItem index="0" CalcID="81" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<Calc UnitID="6" Ordinal="0" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<FullName value="Temperature [ITS-90, deg C]" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^</Calc^> >>%PSA_1DB%\AlignCTD.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\AlignCTD.psa
echo ^<CalcArrayItem index="1" CalcID="81" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<Calc UnitID="6" Ordinal="1" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<FullName value="Temperature, 2 [ITS-90, deg C]" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^</Calc^> >>%PSA_1DB%\AlignCTD.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\AlignCTD.psa
echo ^<CalcArrayItem index="2" CalcID="12" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<Calc UnitID="58" Ordinal="0" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<FullName value="Conductivity [S/m]" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^</Calc^> >>%PSA_1DB%\AlignCTD.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\AlignCTD.psa
echo ^<CalcArrayItem index="3" CalcID="12" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<Calc UnitID="58" Ordinal="1" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<FullName value="Conductivity, 2 [S/m]" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^</Calc^> >>%PSA_1DB%\AlignCTD.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\AlignCTD.psa
echo ^<CalcArrayItem index="4" CalcID="57" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<Calc UnitID="63" Ordinal="0" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<FullName value="Oxygen raw, SBE 43 [V]" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^</Calc^> >>%PSA_1DB%\AlignCTD.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\AlignCTD.psa
echo ^<CalcArrayItem index="5" CalcID="57" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<Calc UnitID="63" Ordinal="1" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<FullName value="Oxygen raw, SBE 43, 2 [V]" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^</Calc^> >>%PSA_1DB%\AlignCTD.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\AlignCTD.psa
echo ^<CalcArrayItem index="6" CalcID="1" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<Calc UnitID="29" Ordinal="0" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<FullName value="Altimeter [m]" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^</Calc^> >>%PSA_1DB%\AlignCTD.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\AlignCTD.psa
echo ^<CalcArrayItem index="7" CalcID="39" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<Calc UnitID="4" Ordinal="0" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<FullName value="Latitude [deg]" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^</Calc^> >>%PSA_1DB%\AlignCTD.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\AlignCTD.psa
echo ^<CalcArrayItem index="8" CalcID="40" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<Calc UnitID="4" Ordinal="0" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<FullName value="Longitude [deg]" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^</Calc^> >>%PSA_1DB%\AlignCTD.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\AlignCTD.psa
echo ^<CalcArrayItem index="9" CalcID="55" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<Calc UnitID="68" Ordinal="0" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<FullName value="Oxygen, SBE 43 [dov/dt]" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<WindowSize value="2.000000" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ApplyTauCorrection value="1" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^</Calc^> >>%PSA_1DB%\AlignCTD.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\AlignCTD.psa
echo ^<CalcArrayItem index="10" CalcID="55" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<Calc UnitID="68" Ordinal="1" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<FullName value="Oxygen, SBE 43, 2 [dov/dt]" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<WindowSize value="2.000000" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ApplyTauCorrection value="1" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^</Calc^> >>%PSA_1DB%\AlignCTD.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\AlignCTD.psa
echo ^</CalcArray^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ValArray size="11" ^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ValArrayItem index="0" value="0.000000" variable_name="Temperature" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ValArrayItem index="1" value="0.000000" variable_name="Temperature" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ValArrayItem index="2" value="0.000000" variable_name="Conductivity" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ValArrayItem index="3" value="0.000000" variable_name="Conductivity" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ValArrayItem index="4" value="1.073000" variable_name="Oxygen raw, SBE 43" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ValArrayItem index="5" value="1.073000" variable_name="Oxygen raw, SBE 43" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ValArrayItem index="6" value="0.000000" variable_name="Altimeter" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ValArrayItem index="7" value="0.000000" variable_name="Latitude" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ValArrayItem index="8" value="0.000000" variable_name="Longitude" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ValArrayItem index="9" value="1.073000" variable_name="Oxygen, SBE 43" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^<ValArrayItem index="10" value="1.073000" variable_name="Oxygen, SBE 43" /^> >>%PSA_1DB%\AlignCTD.psa
echo ^</ValArray^> >>%PSA_1DB%\AlignCTD.psa
echo ^</Align_CTD^> >>%PSA_1DB%\AlignCTD.psa
REM #### END AlignCTD.psa ####
REM #### START BinAvg.psa ####
echo ^<?xml version="1.0" encoding="UTF-8"?^> >%PSA_1DB%\BinAvg.psa
echo ^<Bin_Average ^> >>%PSA_1DB%\BinAvg.psa
echo ^<Version value="7.26.7.114" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<ServerName value="Bin Average" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<InputDir value="C:\Users\scs.user.rb\CTD\ab1802\proc_data\1db" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<InputFileArray size="1" GrowBy="-1" ^> >>%PSA_1DB%\BinAvg.psa
echo ^<ArrayItem index="0" value="ab1802_012.cnv" /^> >>%PSA_1DB%\BinAvg.psa
echo ^</InputFileArray^> >>%PSA_1DB%\BinAvg.psa
echo ^<OutputDir value="C:\Users\scs.user.rb\CTD\ab1802\proc_data\1db" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<NameAppend value="" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<OutputFile value="ab1802_012.cnv" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<LastProcessed value="0" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<BinType value="0" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<BinSize value="1.000000" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<IncludeNumberScans value="1" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<ExcludeMarkedBad value="1" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<ScansToSkip value="0" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<ScansToOmit value="0" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<MinScansPerBin value="30" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<MaxScansPerBin value="90" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<CastToProcess value="0" high="2" low="0" initialValue="0" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<IncludeSurfaceBin value="0" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<SurfaceBinMinVal value="0.000000" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<SurfaceBinMaxVal value="0.000000" /^> >>%PSA_1DB%\BinAvg.psa
echo ^<SurfaceBinVal value="0.000000" /^> >>%PSA_1DB%\BinAvg.psa
echo ^</Bin_Average^> >>%PSA_1DB%\BinAvg.psa
REM #### END BinAvg.psa ####
REM #### START BottleSum.psa ####
echo ^<?xml version="1.0" encoding="UTF-8"?^> >%PSA_1DB%\BottleSum.psa
echo ^<Bottle_Summary ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Version value="7.21h" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ServerName value="Bottle Summary" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<InstrumentPath value="Z:\Users\jhooper\Documents\Work_Data\WBTS\ab1403\sbe_ctd\raw_data\AB1403_002.XMLCON" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<InstrumentMatch value="0" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<InputDir value="Z:\Users\jhooper\Documents\Work_Data\WBTS\ab1403\sbe_ctd\1db\proc_data" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<InputFileArray size="1" GrowBy="-1" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<ArrayItem index="0" value="ab1403_002.ros" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</InputFileArray^> >>%PSA_1DB%\BottleSum.psa
echo ^<OutputDir value="Z:\Users\jhooper\Documents\Work_Data\WBTS\ab1403\sbe_ctd\bottle" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<NameAppend value="" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<OutputFile value="ab1403_002.btl" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<LastProcessed value="0" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<OutputMinMaxValues value="0" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<AverageCalcArray Size="15" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="0" CalcID="72" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="-1" Ordinal="0" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Scan Count" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="1" CalcID="84" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="52" Ordinal="0" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Time, Elapsed [seconds]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="2" CalcID="17" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="31" Ordinal="0" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Depth [salt water, m]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<Latitude value="0.000000" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="3" CalcID="65" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="3" Ordinal="0" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Pressure, Digiquartz [db]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="4" CalcID="81" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="6" Ordinal="0" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Temperature [ITS-90, deg C]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="5" CalcID="81" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="6" Ordinal="1" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Temperature, 2 [ITS-90, deg C]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="6" CalcID="12" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="58" Ordinal="0" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Conductivity [S/m]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="7" CalcID="12" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="58" Ordinal="1" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Conductivity, 2 [S/m]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="8" CalcID="57" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="63" Ordinal="0" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Oxygen raw, SBE 43 [V]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="9" CalcID="57" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="63" Ordinal="1" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Oxygen raw, SBE 43, 2 [V]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="10" CalcID="1" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="29" Ordinal="0" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Altimeter [m]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="11" CalcID="39" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="4" Ordinal="0" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Latitude [deg]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="12" CalcID="40" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="4" Ordinal="0" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Longitude [deg]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="13" CalcID="55" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="68" Ordinal="0" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Oxygen, SBE 43 [dov/dt]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<WindowSize value="2.000000" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ApplyTauCorrection value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="14" CalcID="55" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="68" Ordinal="1" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Oxygen, SBE 43, 2 [dov/dt]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<WindowSize value="2.000000" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ApplyTauCorrection value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^</AverageCalcArray^> >>%PSA_1DB%\BottleSum.psa
echo ^<SelectArray ^> >>%PSA_1DB%\BottleSum.psa
echo ^<ArrayItem index="0" value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ArrayItem index="1" value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ArrayItem index="2" value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ArrayItem index="3" value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ArrayItem index="4" value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ArrayItem index="5" value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ArrayItem index="6" value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ArrayItem index="7" value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ArrayItem index="8" value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ArrayItem index="9" value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ArrayItem index="10" value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ArrayItem index="11" value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ArrayItem index="12" value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ArrayItem index="13" value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ArrayItem index="14" value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</SelectArray^> >>%PSA_1DB%\BottleSum.psa
echo ^<DeriveCalcArray Size="6" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="0" CalcID="62" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="6" Ordinal="0" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Potential Temperature [ITS-90, deg C]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="1" CalcID="62" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="6" Ordinal="1" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Potential Temperature, 2 [ITS-90, deg C]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="2" CalcID="70" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="49" Ordinal="0" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Salinity, Practical [PSU]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="3" CalcID="70" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="49" Ordinal="1" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Salinity, Practical, 2 [PSU]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="4" CalcID="55" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="40" Ordinal="0" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Oxygen, SBE 43 [ml/l]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<WindowSize value="2.000000" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ApplyTauCorrection value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^<CalcArrayItem index="5" CalcID="55" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<Calc UnitID="40" Ordinal="1" ^> >>%PSA_1DB%\BottleSum.psa
echo ^<FullName value="Oxygen, SBE 43, 2 [ml/l]" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<WindowSize value="2.000000" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^<ApplyTauCorrection value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Calc^> >>%PSA_1DB%\BottleSum.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\BottleSum.psa
echo ^</DeriveCalcArray^> >>%PSA_1DB%\BottleSum.psa
echo ^<ApplyTauCorrection value="1" /^> >>%PSA_1DB%\BottleSum.psa
echo ^</Bottle_Summary^> >>%PSA_1DB%\BottleSum.psa
REM #### END BottleSum.psa ####
REM #### START CellTM.psa ####
echo ^<?xml version="1.0" encoding="UTF-8"?^> >%PSA_1DB%\CellTM.psa
echo ^<Cell_Thermal_Mass ^> >>%PSA_1DB%\CellTM.psa
echo ^<Version value="7.21h" /^> >>%PSA_1DB%\CellTM.psa
echo ^<ServerName value="Cell Thermal Mass" /^> >>%PSA_1DB%\CellTM.psa
echo ^<InputDir value="Z:\Users\jhooper\Documents\Work_data\WBTS\ab1302\sbe_ctd\1db\proc_data" /^> >>%PSA_1DB%\CellTM.psa
echo ^<InputFileArray size="1" GrowBy="-1" ^> >>%PSA_1DB%\CellTM.psa
echo ^<ArrayItem index="0" value="ab1302_001.cnv" /^> >>%PSA_1DB%\CellTM.psa
echo ^</InputFileArray^> >>%PSA_1DB%\CellTM.psa
echo ^<OutputDir value="Z:\Users\jhooper\Documents\Work_data\WBTS\ab1302\sbe_ctd\1db\proc_data" /^> >>%PSA_1DB%\CellTM.psa
echo ^<NameAppend value="" /^> >>%PSA_1DB%\CellTM.psa
echo ^<OutputFile value="ab1302_001.cnv" /^> >>%PSA_1DB%\CellTM.psa
echo ^<LastProcessed value="0" /^> >>%PSA_1DB%\CellTM.psa
echo ^<Primary ^> >>%PSA_1DB%\CellTM.psa
echo ^<Correct value="1" /^> >>%PSA_1DB%\CellTM.psa
echo ^<TempSensor value="0" /^> >>%PSA_1DB%\CellTM.psa
echo ^<TA_Amplitude value="0.030000" /^> >>%PSA_1DB%\CellTM.psa
echo ^<TA_TimeConstant value="7.000000" /^> >>%PSA_1DB%\CellTM.psa
echo ^</Primary^> >>%PSA_1DB%\CellTM.psa
echo ^<Secondary ^> >>%PSA_1DB%\CellTM.psa
echo ^<Correct value="1" /^> >>%PSA_1DB%\CellTM.psa
echo ^<TempSensor value="1" /^> >>%PSA_1DB%\CellTM.psa
echo ^<TA_Amplitude value="0.030000" /^> >>%PSA_1DB%\CellTM.psa
echo ^<TA_TimeConstant value="7.000000" /^> >>%PSA_1DB%\CellTM.psa
echo ^</Secondary^> >>%PSA_1DB%\CellTM.psa
echo ^</Cell_Thermal_Mass^> >>%PSA_1DB%\CellTM.psa
REM #### END CellTM.psa ####
REM #### START DatCnv.psa ####
echo ^<?xml version="1.0" encoding="UTF-8"?^> >%PSA_1DB%\DatCnv.psa
echo ^<Data_Conversion ^> >>%PSA_1DB%\DatCnv.psa
echo ^<Version value="7.23.1" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<ServerName value="Data Conversion" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<InstrumentPath value="J:\ab1602\sbe_ctd\raw_data\ab1602_001.xmlcon" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<InstrumentMatch value="0" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<InputDir value="J:\ab1602\sbe_ctd\raw_data" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<InputFileArray size="1" GrowBy="-1" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<ArrayItem index="0" value="ab1602_001.hex" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</InputFileArray^> >>%PSA_1DB%\DatCnv.psa
echo ^<OutputDir value="J:\ab1602\sbe_ctd\1db\proc_data" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<NameAppend value="" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<OutputFile value="ab1602_001" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<LastProcessed value="0" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<ProcessScansToEnd value="1" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<ScansToSkip value="0" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<ScansToProcess value="1" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<MergeHeaderFile value="0" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<OutputFormat value="0" high="1" low="0" initialValue="0" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<FromCast value="0" high="1" low="0" initialValue="0" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<CreateFile value="2" high="2" low="0" initialValue="0" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<ScanRangeSource value="3" high="3" low="0" initialValue="3" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<ScanRangeOffset value="0.000000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<ScanRangeDuration value="5.500000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<StartTimeOption value="1" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<PromptForNoteAndOrStartTime value="0" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<CalcArray Size="15" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<CalcArrayItem index="0" CalcID="72" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<Calc UnitID="-1" Ordinal="0" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<FullName value="Scan Count" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</Calc^> >>%PSA_1DB%\DatCnv.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\DatCnv.psa
echo ^<CalcArrayItem index="1" CalcID="84" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<Calc UnitID="52" Ordinal="0" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<FullName value="Time, Elapsed [seconds]" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</Calc^> >>%PSA_1DB%\DatCnv.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\DatCnv.psa
echo ^<CalcArrayItem index="2" CalcID="17" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<Calc UnitID="31" Ordinal="0" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<FullName value="Depth [salt water, m]" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<Latitude value="26.500000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</Calc^> >>%PSA_1DB%\DatCnv.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\DatCnv.psa
echo ^<CalcArrayItem index="3" CalcID="65" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<Calc UnitID="3" Ordinal="0" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<FullName value="Pressure, Digiquartz [db]" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</Calc^> >>%PSA_1DB%\DatCnv.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\DatCnv.psa
echo ^<CalcArrayItem index="4" CalcID="81" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<Calc UnitID="6" Ordinal="0" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<FullName value="Temperature [ITS-90, deg C]" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</Calc^> >>%PSA_1DB%\DatCnv.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\DatCnv.psa
echo ^<CalcArrayItem index="5" CalcID="81" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<Calc UnitID="6" Ordinal="1" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<FullName value="Temperature, 2 [ITS-90, deg C]" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</Calc^> >>%PSA_1DB%\DatCnv.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\DatCnv.psa
echo ^<CalcArrayItem index="6" CalcID="12" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<Calc UnitID="58" Ordinal="0" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<FullName value="Conductivity [S/m]" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</Calc^> >>%PSA_1DB%\DatCnv.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\DatCnv.psa
echo ^<CalcArrayItem index="7" CalcID="12" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<Calc UnitID="58" Ordinal="1" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<FullName value="Conductivity, 2 [S/m]" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</Calc^> >>%PSA_1DB%\DatCnv.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\DatCnv.psa
echo ^<CalcArrayItem index="8" CalcID="57" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<Calc UnitID="63" Ordinal="0" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<FullName value="Oxygen raw, SBE 43 [V]" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<ApplyHysteresisCorrection value="0" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</Calc^> >>%PSA_1DB%\DatCnv.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\DatCnv.psa
echo ^<CalcArrayItem index="9" CalcID="57" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<Calc UnitID="63" Ordinal="1" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<FullName value="Oxygen raw, SBE 43, 2 [V]" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<ApplyHysteresisCorrection value="0" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</Calc^> >>%PSA_1DB%\DatCnv.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\DatCnv.psa
echo ^<CalcArrayItem index="10" CalcID="1" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<Calc UnitID="29" Ordinal="0" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<FullName value="Altimeter [m]" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</Calc^> >>%PSA_1DB%\DatCnv.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\DatCnv.psa
echo ^<CalcArrayItem index="11" CalcID="39" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<Calc UnitID="4" Ordinal="0" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<FullName value="Latitude [deg]" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</Calc^> >>%PSA_1DB%\DatCnv.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\DatCnv.psa
echo ^<CalcArrayItem index="12" CalcID="40" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<Calc UnitID="4" Ordinal="0" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<FullName value="Longitude [deg]" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</Calc^> >>%PSA_1DB%\DatCnv.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\DatCnv.psa
echo ^<CalcArrayItem index="13" CalcID="55" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<Calc UnitID="68" Ordinal="0" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<FullName value="Oxygen, SBE 43 [dov/dt]" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<WindowSize value="5.000000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<ApplyHysteresisCorrection value="0" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<ApplyTauCorrection value="1" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</Calc^> >>%PSA_1DB%\DatCnv.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\DatCnv.psa
echo ^<CalcArrayItem index="14" CalcID="55" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<Calc UnitID="68" Ordinal="1" ^> >>%PSA_1DB%\DatCnv.psa
echo ^<FullName value="Oxygen, SBE 43, 2 [dov/dt]" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<WindowSize value="5.000000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<ApplyHysteresisCorrection value="0" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<ApplyTauCorrection value="1" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</Calc^> >>%PSA_1DB%\DatCnv.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\DatCnv.psa
echo ^</CalcArray^> >>%PSA_1DB%\DatCnv.psa
echo ^<MiscellaneousDataForCalculations ^> >>%PSA_1DB%\DatCnv.psa
echo ^<Latitude value="26.500000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<Longitude value="0.000000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<DescentRateAndAcceleration ^> >>%PSA_1DB%\DatCnv.psa
echo ^<WindowSize value="2.000000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</DescentRateAndAcceleration^> >>%PSA_1DB%\DatCnv.psa
echo ^<Oxygen ^> >>%PSA_1DB%\DatCnv.psa
echo ^<WindowSize value="5.000000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<ApplyHysteresisCorrection value="0" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<ApplyTauCorrection value="1" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</Oxygen^> >>%PSA_1DB%\DatCnv.psa
echo ^<AverageSoundVelocity ^> >>%PSA_1DB%\DatCnv.psa
echo ^<MinimumPressure value="20.000000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<MinimumSalinity value="20.000000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<PressureWindowSize value="20.000000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<TimeWindowSize value="60.000000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</AverageSoundVelocity^> >>%PSA_1DB%\DatCnv.psa
echo ^<PlumeAnomaly ^> >>%PSA_1DB%\DatCnv.psa
echo ^<ThetaB value="0.000000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<SalinityB value="0.000000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<ThetaZSalinityZRatio value="0.000000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<ReferencePressure value="0.000000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</PlumeAnomaly^> >>%PSA_1DB%\DatCnv.psa
echo ^<PotentialTempAnomaly ^> >>%PSA_1DB%\DatCnv.psa
echo ^<A0 value="0.000000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<A1 value="0.000000" /^> >>%PSA_1DB%\DatCnv.psa
echo ^<A1Multiplier value="0" /^> >>%PSA_1DB%\DatCnv.psa
echo ^</PotentialTempAnomaly^> >>%PSA_1DB%\DatCnv.psa
echo ^</MiscellaneousDataForCalculations^> >>%PSA_1DB%\DatCnv.psa
echo ^</Data_Conversion^> >>%PSA_1DB%\DatCnv.psa
REM #### END DatCnv.psa ####
REM #### START Derive.psa ####
echo ^<?xml version="1.0" encoding="UTF-8"?^> >%PSA_1DB%\Derive.psa
echo ^<Derive ^> >>%PSA_1DB%\Derive.psa
echo ^<Version value="7.25.0.319" /^> >>%PSA_1DB%\Derive.psa
echo ^<ServerName value="Derive" /^> >>%PSA_1DB%\Derive.psa
echo ^<InstrumentPath value="Z:\Users\jhooper\Documents\Work_data\WBTS\ab1602\sbe_ctd\raw_data\ab1602_003.xmlcon" /^> >>%PSA_1DB%\Derive.psa
echo ^<InstrumentMatch value="0" /^> >>%PSA_1DB%\Derive.psa
echo ^<InputDir value="Z:\Users\jhooper\Documents\Work_data\WBTS\ab1602\sbe_ctd\1db\proc_data" /^> >>%PSA_1DB%\Derive.psa
echo ^<InputFileArray size="1" GrowBy="-1" ^> >>%PSA_1DB%\Derive.psa
echo ^<ArrayItem index="0" value="ab1602_003.cnv" /^> >>%PSA_1DB%\Derive.psa
echo ^</InputFileArray^> >>%PSA_1DB%\Derive.psa
echo ^<OutputDir value="Z:\Users\jhooper\Documents\Work_data\WBTS\ab1602\sbe_ctd\1db\proc_data" /^> >>%PSA_1DB%\Derive.psa
echo ^<NameAppend value="" /^> >>%PSA_1DB%\Derive.psa
echo ^<OutputFile value="ab1602_003.cnv" /^> >>%PSA_1DB%\Derive.psa
echo ^<LastProcessed value="0" /^> >>%PSA_1DB%\Derive.psa
echo ^<CalcArray Size="11" ^> >>%PSA_1DB%\Derive.psa
echo ^<CalcArrayItem index="0" CalcID="55" ^> >>%PSA_1DB%\Derive.psa
echo ^<Calc UnitID="40" Ordinal="0" ^> >>%PSA_1DB%\Derive.psa
echo ^<FullName value="Oxygen, SBE 43 [ml/l]" /^> >>%PSA_1DB%\Derive.psa
echo ^<WindowSize value="5.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\Derive.psa
echo ^<ApplyTauCorrection value="0" /^> >>%PSA_1DB%\Derive.psa
echo ^</Calc^> >>%PSA_1DB%\Derive.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Derive.psa
echo ^<CalcArrayItem index="1" CalcID="55" ^> >>%PSA_1DB%\Derive.psa
echo ^<Calc UnitID="40" Ordinal="1" ^> >>%PSA_1DB%\Derive.psa
echo ^<FullName value="Oxygen, SBE 43, 2 [ml/l]" /^> >>%PSA_1DB%\Derive.psa
echo ^<WindowSize value="5.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\Derive.psa
echo ^<ApplyTauCorrection value="0" /^> >>%PSA_1DB%\Derive.psa
echo ^</Calc^> >>%PSA_1DB%\Derive.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Derive.psa
echo ^<CalcArrayItem index="2" CalcID="62" ^> >>%PSA_1DB%\Derive.psa
echo ^<Calc UnitID="6" Ordinal="0" ^> >>%PSA_1DB%\Derive.psa
echo ^<FullName value="Potential Temperature [ITS-90, deg C]" /^> >>%PSA_1DB%\Derive.psa
echo ^</Calc^> >>%PSA_1DB%\Derive.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Derive.psa
echo ^<CalcArrayItem index="3" CalcID="62" ^> >>%PSA_1DB%\Derive.psa
echo ^<Calc UnitID="6" Ordinal="1" ^> >>%PSA_1DB%\Derive.psa
echo ^<FullName value="Potential Temperature, 2 [ITS-90, deg C]" /^> >>%PSA_1DB%\Derive.psa
echo ^</Calc^> >>%PSA_1DB%\Derive.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Derive.psa
echo ^<CalcArrayItem index="4" CalcID="70" ^> >>%PSA_1DB%\Derive.psa
echo ^<Calc UnitID="49" Ordinal="0" ^> >>%PSA_1DB%\Derive.psa
echo ^<FullName value="Salinity, Practical [PSU]" /^> >>%PSA_1DB%\Derive.psa
echo ^</Calc^> >>%PSA_1DB%\Derive.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Derive.psa
echo ^<CalcArrayItem index="5" CalcID="70" ^> >>%PSA_1DB%\Derive.psa
echo ^<Calc UnitID="49" Ordinal="1" ^> >>%PSA_1DB%\Derive.psa
echo ^<FullName value="Salinity, Practical, 2 [PSU]" /^> >>%PSA_1DB%\Derive.psa
echo ^</Calc^> >>%PSA_1DB%\Derive.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Derive.psa
echo ^<CalcArrayItem index="6" CalcID="15" ^> >>%PSA_1DB%\Derive.psa
echo ^<Calc UnitID="53" Ordinal="0" ^> >>%PSA_1DB%\Derive.psa
echo ^<FullName value="Density [sigma-theta, kg/m^3]" /^> >>%PSA_1DB%\Derive.psa
echo ^</Calc^> >>%PSA_1DB%\Derive.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Derive.psa
echo ^<CalcArrayItem index="7" CalcID="15" ^> >>%PSA_1DB%\Derive.psa
echo ^<Calc UnitID="53" Ordinal="1" ^> >>%PSA_1DB%\Derive.psa
echo ^<FullName value="Density, 2 [sigma-theta, kg/m^3]" /^> >>%PSA_1DB%\Derive.psa
echo ^</Calc^> >>%PSA_1DB%\Derive.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Derive.psa
echo ^<CalcArrayItem index="8" CalcID="2" ^> >>%PSA_1DB%\Derive.psa
echo ^<Calc UnitID="33" Ordinal="0" ^> >>%PSA_1DB%\Derive.psa
echo ^<FullName value="Average Sound Velocity [Chen-Millero, m/s]" /^> >>%PSA_1DB%\Derive.psa
echo ^<Latitude value="26.500000" /^> >>%PSA_1DB%\Derive.psa
echo ^<MinPressure value="20.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^<MinSalinity value="20.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^<PressureWindowSize value="20.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^<TimeWindowSize value="60.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^</Calc^> >>%PSA_1DB%\Derive.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Derive.psa
echo ^<CalcArrayItem index="9" CalcID="55" ^> >>%PSA_1DB%\Derive.psa
echo ^<Calc UnitID="61" Ordinal="0" ^> >>%PSA_1DB%\Derive.psa
echo ^<FullName value="Oxygen, SBE 43 [umol/kg]" /^> >>%PSA_1DB%\Derive.psa
echo ^<WindowSize value="5.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\Derive.psa
echo ^<ApplyTauCorrection value="0" /^> >>%PSA_1DB%\Derive.psa
echo ^</Calc^> >>%PSA_1DB%\Derive.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Derive.psa
echo ^<CalcArrayItem index="10" CalcID="55" ^> >>%PSA_1DB%\Derive.psa
echo ^<Calc UnitID="61" Ordinal="1" ^> >>%PSA_1DB%\Derive.psa
echo ^<FullName value="Oxygen, SBE 43, 2 [umol/kg]" /^> >>%PSA_1DB%\Derive.psa
echo ^<WindowSize value="5.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\Derive.psa
echo ^<ApplyTauCorrection value="0" /^> >>%PSA_1DB%\Derive.psa
echo ^</Calc^> >>%PSA_1DB%\Derive.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Derive.psa
echo ^</CalcArray^> >>%PSA_1DB%\Derive.psa
echo ^<MiscellaneousDataForCalculations ^> >>%PSA_1DB%\Derive.psa
echo ^<Latitude value="26.500000" /^> >>%PSA_1DB%\Derive.psa
echo ^<Longitude value="0.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^<DescentRateAndAcceleration ^> >>%PSA_1DB%\Derive.psa
echo ^<WindowSize value="2.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^</DescentRateAndAcceleration^> >>%PSA_1DB%\Derive.psa
echo ^<Oxygen ^> >>%PSA_1DB%\Derive.psa
echo ^<WindowSize value="5.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\Derive.psa
echo ^<ApplyTauCorrection value="0" /^> >>%PSA_1DB%\Derive.psa
echo ^</Oxygen^> >>%PSA_1DB%\Derive.psa
echo ^<AverageSoundVelocity ^> >>%PSA_1DB%\Derive.psa
echo ^<MinimumPressure value="20.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^<MinimumSalinity value="20.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^<PressureWindowSize value="20.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^<TimeWindowSize value="60.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^</AverageSoundVelocity^> >>%PSA_1DB%\Derive.psa
echo ^<PlumeAnomaly ^> >>%PSA_1DB%\Derive.psa
echo ^<ThetaB value="0.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^<SalinityB value="0.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^<ThetaZSalinityZRatio value="0.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^<ReferencePressure value="0.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^</PlumeAnomaly^> >>%PSA_1DB%\Derive.psa
echo ^<PotentialTempAnomaly ^> >>%PSA_1DB%\Derive.psa
echo ^<A0 value="0.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^<A1 value="0.000000" /^> >>%PSA_1DB%\Derive.psa
echo ^<A1Multiplier value="0" /^> >>%PSA_1DB%\Derive.psa
echo ^</PotentialTempAnomaly^> >>%PSA_1DB%\Derive.psa
echo ^</MiscellaneousDataForCalculations^> >>%PSA_1DB%\Derive.psa
echo ^</Derive^> >>%PSA_1DB%\Derive.psa
REM #### END Derive.psa ####
REM #### START Filter.psa ####
echo ^<?xml version="1.0" encoding="UTF-8"?^> >%PSA_1DB%\Filter.psa
echo ^<Filter ^> >>%PSA_1DB%\Filter.psa
echo ^<Version value="7.21h" /^> >>%PSA_1DB%\Filter.psa
echo ^<ServerName value="Filter" /^> >>%PSA_1DB%\Filter.psa
echo ^<InputDir value="Z:\Users\jhooper\Documents\Work_Data\WBTS\ab1403\sbe_ctd\1db\proc_data" /^> >>%PSA_1DB%\Filter.psa
echo ^<InputFileArray size="1" GrowBy="-1" ^> >>%PSA_1DB%\Filter.psa
echo ^<ArrayItem index="0" value="ab1403_002.cnv" /^> >>%PSA_1DB%\Filter.psa
echo ^</InputFileArray^> >>%PSA_1DB%\Filter.psa
echo ^<OutputDir value="Z:\Users\jhooper\Documents\Work_Data\WBTS\ab1403\sbe_ctd\1db\proc_data" /^> >>%PSA_1DB%\Filter.psa
echo ^<NameAppend value="" /^> >>%PSA_1DB%\Filter.psa
echo ^<OutputFile value="ab1403_002.cnv" /^> >>%PSA_1DB%\Filter.psa
echo ^<LastProcessed value="0" /^> >>%PSA_1DB%\Filter.psa
echo ^<TimeConstFilterA value="0.030000" /^> >>%PSA_1DB%\Filter.psa
echo ^<TimeConstFilterB value="0.150000" /^> >>%PSA_1DB%\Filter.psa
echo ^<CalcArray Size="13" ^> >>%PSA_1DB%\Filter.psa
echo ^<CalcArrayItem index="0" CalcID="17" ^> >>%PSA_1DB%\Filter.psa
echo ^<Calc UnitID="31" Ordinal="0" ^> >>%PSA_1DB%\Filter.psa
echo ^<FullName value="Depth [salt water, m]" /^> >>%PSA_1DB%\Filter.psa
echo ^<Latitude value="0.000000" /^> >>%PSA_1DB%\Filter.psa
echo ^</Calc^> >>%PSA_1DB%\Filter.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Filter.psa
echo ^<CalcArrayItem index="1" CalcID="65" ^> >>%PSA_1DB%\Filter.psa
echo ^<Calc UnitID="3" Ordinal="0" ^> >>%PSA_1DB%\Filter.psa
echo ^<FullName value="Pressure, Digiquartz [db]" /^> >>%PSA_1DB%\Filter.psa
echo ^</Calc^> >>%PSA_1DB%\Filter.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Filter.psa
echo ^<CalcArrayItem index="2" CalcID="81" ^> >>%PSA_1DB%\Filter.psa
echo ^<Calc UnitID="6" Ordinal="0" ^> >>%PSA_1DB%\Filter.psa
echo ^<FullName value="Temperature [ITS-90, deg C]" /^> >>%PSA_1DB%\Filter.psa
echo ^</Calc^> >>%PSA_1DB%\Filter.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Filter.psa
echo ^<CalcArrayItem index="3" CalcID="81" ^> >>%PSA_1DB%\Filter.psa
echo ^<Calc UnitID="6" Ordinal="1" ^> >>%PSA_1DB%\Filter.psa
echo ^<FullName value="Temperature, 2 [ITS-90, deg C]" /^> >>%PSA_1DB%\Filter.psa
echo ^</Calc^> >>%PSA_1DB%\Filter.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Filter.psa
echo ^<CalcArrayItem index="4" CalcID="12" ^> >>%PSA_1DB%\Filter.psa
echo ^<Calc UnitID="58" Ordinal="0" ^> >>%PSA_1DB%\Filter.psa
echo ^<FullName value="Conductivity [S/m]" /^> >>%PSA_1DB%\Filter.psa
echo ^</Calc^> >>%PSA_1DB%\Filter.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Filter.psa
echo ^<CalcArrayItem index="5" CalcID="12" ^> >>%PSA_1DB%\Filter.psa
echo ^<Calc UnitID="58" Ordinal="1" ^> >>%PSA_1DB%\Filter.psa
echo ^<FullName value="Conductivity, 2 [S/m]" /^> >>%PSA_1DB%\Filter.psa
echo ^</Calc^> >>%PSA_1DB%\Filter.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Filter.psa
echo ^<CalcArrayItem index="6" CalcID="57" ^> >>%PSA_1DB%\Filter.psa
echo ^<Calc UnitID="63" Ordinal="0" ^> >>%PSA_1DB%\Filter.psa
echo ^<FullName value="Oxygen raw, SBE 43 [V]" /^> >>%PSA_1DB%\Filter.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\Filter.psa
echo ^</Calc^> >>%PSA_1DB%\Filter.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Filter.psa
echo ^<CalcArrayItem index="7" CalcID="57" ^> >>%PSA_1DB%\Filter.psa
echo ^<Calc UnitID="63" Ordinal="1" ^> >>%PSA_1DB%\Filter.psa
echo ^<FullName value="Oxygen raw, SBE 43, 2 [V]" /^> >>%PSA_1DB%\Filter.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\Filter.psa
echo ^</Calc^> >>%PSA_1DB%\Filter.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Filter.psa
echo ^<CalcArrayItem index="8" CalcID="1" ^> >>%PSA_1DB%\Filter.psa
echo ^<Calc UnitID="29" Ordinal="0" ^> >>%PSA_1DB%\Filter.psa
echo ^<FullName value="Altimeter [m]" /^> >>%PSA_1DB%\Filter.psa
echo ^</Calc^> >>%PSA_1DB%\Filter.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Filter.psa
echo ^<CalcArrayItem index="9" CalcID="39" ^> >>%PSA_1DB%\Filter.psa
echo ^<Calc UnitID="4" Ordinal="0" ^> >>%PSA_1DB%\Filter.psa
echo ^<FullName value="Latitude [deg]" /^> >>%PSA_1DB%\Filter.psa
echo ^</Calc^> >>%PSA_1DB%\Filter.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Filter.psa
echo ^<CalcArrayItem index="10" CalcID="40" ^> >>%PSA_1DB%\Filter.psa
echo ^<Calc UnitID="4" Ordinal="0" ^> >>%PSA_1DB%\Filter.psa
echo ^<FullName value="Longitude [deg]" /^> >>%PSA_1DB%\Filter.psa
echo ^</Calc^> >>%PSA_1DB%\Filter.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Filter.psa
echo ^<CalcArrayItem index="11" CalcID="55" ^> >>%PSA_1DB%\Filter.psa
echo ^<Calc UnitID="68" Ordinal="0" ^> >>%PSA_1DB%\Filter.psa
echo ^<FullName value="Oxygen, SBE 43 [dov/dt]" /^> >>%PSA_1DB%\Filter.psa
echo ^<WindowSize value="2.000000" /^> >>%PSA_1DB%\Filter.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\Filter.psa
echo ^<ApplyTauCorrection value="1" /^> >>%PSA_1DB%\Filter.psa
echo ^</Calc^> >>%PSA_1DB%\Filter.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Filter.psa
echo ^<CalcArrayItem index="12" CalcID="55" ^> >>%PSA_1DB%\Filter.psa
echo ^<Calc UnitID="68" Ordinal="1" ^> >>%PSA_1DB%\Filter.psa
echo ^<FullName value="Oxygen, SBE 43, 2 [dov/dt]" /^> >>%PSA_1DB%\Filter.psa
echo ^<WindowSize value="2.000000" /^> >>%PSA_1DB%\Filter.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\Filter.psa
echo ^<ApplyTauCorrection value="1" /^> >>%PSA_1DB%\Filter.psa
echo ^</Calc^> >>%PSA_1DB%\Filter.psa
echo ^</CalcArrayItem^> >>%PSA_1DB%\Filter.psa
echo ^</CalcArray^> >>%PSA_1DB%\Filter.psa
echo ^<FilterTypeArray ^> >>%PSA_1DB%\Filter.psa
echo ^<ArrayItem index="0" value="2" /^> >>%PSA_1DB%\Filter.psa
echo ^<ArrayItem index="1" value="2" /^> >>%PSA_1DB%\Filter.psa
echo ^<ArrayItem index="2" value="0" /^> >>%PSA_1DB%\Filter.psa
echo ^<ArrayItem index="3" value="0" /^> >>%PSA_1DB%\Filter.psa
echo ^<ArrayItem index="4" value="0" /^> >>%PSA_1DB%\Filter.psa
echo ^<ArrayItem index="5" value="0" /^> >>%PSA_1DB%\Filter.psa
echo ^<ArrayItem index="6" value="0" /^> >>%PSA_1DB%\Filter.psa
echo ^<ArrayItem index="7" value="0" /^> >>%PSA_1DB%\Filter.psa
echo ^<ArrayItem index="8" value="0" /^> >>%PSA_1DB%\Filter.psa
echo ^<ArrayItem index="9" value="1" /^> >>%PSA_1DB%\Filter.psa
echo ^<ArrayItem index="10" value="1" /^> >>%PSA_1DB%\Filter.psa
echo ^<ArrayItem index="11" value="1" /^> >>%PSA_1DB%\Filter.psa
echo ^<ArrayItem index="12" value="1" /^> >>%PSA_1DB%\Filter.psa
echo ^</FilterTypeArray^> >>%PSA_1DB%\Filter.psa
echo ^</Filter^> >>%PSA_1DB%\Filter.psa
REM #### END Filter.psa ####
REM #### START LoopEdit.psa ####
echo ^<?xml version="1.0" encoding="UTF-8"?^> >%PSA_1DB%\LoopEdit.psa
echo ^<Loop_Edit ^> >>%PSA_1DB%\LoopEdit.psa
echo ^<Version value="7.21h" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^<ServerName value="Loop Edit" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^<InputDir value="C:\Data\Cruises\ctd\gomecc2\1db\proc_data" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^<InputFileArray size="1" GrowBy="-1" ^> >>%PSA_1DB%\LoopEdit.psa
echo ^<ArrayItem index="0" value="rv1203_001.cnv" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^</InputFileArray^> >>%PSA_1DB%\LoopEdit.psa
echo ^<OutputDir value="C:\Data\Cruises\ctd\gomecc2\1db\proc_data" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^<NameAppend value="" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^<OutputFile value="rv1203_001.cnv" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^<LastProcessed value="0" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^<MinVelocityType value="0" high="1" low="0" initialValue="0" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^<MinCTD_Velocity value="0.250000" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^<TimeWindowSize value="300.000000" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^<PercentMeanSpeed value="20.000000" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^<ExcludeMarkedBad value="1" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^<RemoveSurfaceSoak value="1" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^<UseDeckPressure value="1" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^<SurfaceSoakDepth value="10.000000" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^<SurfaceSoakDepthMin value="5.000000" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^<SurfaceSoakDepthMax value="20.000000" /^> >>%PSA_1DB%\LoopEdit.psa
echo ^</Loop_Edit^> >>%PSA_1DB%\LoopEdit.psa
REM #### END LoopEdit.psa ####
REM #### START MarkScan.psa ####
echo ^<?xml version="1.0" encoding="UTF-8"?^> >%PSA_1DB%\MarkScan.psa
echo ^<Mark_Scan ^> >>%PSA_1DB%\MarkScan.psa
echo ^<Version value="7.23.1" /^> >>%PSA_1DB%\MarkScan.psa
echo ^<ServerName value="Mark Scan" /^> >>%PSA_1DB%\MarkScan.psa
echo ^<InputDir value="Z:\Users\james.hooper" /^> >>%PSA_1DB%\MarkScan.psa
echo ^<InputFileArray size="0" GrowBy="-1" /^> >>%PSA_1DB%\MarkScan.psa
echo ^<OutputDir value="Z:\Users\james.hooper" /^> >>%PSA_1DB%\MarkScan.psa
echo ^<NameAppend value="" /^> >>%PSA_1DB%\MarkScan.psa
echo ^<OutputFile value="" /^> >>%PSA_1DB%\MarkScan.psa
echo ^<LastProcessed value="0" /^> >>%PSA_1DB%\MarkScan.psa
echo ^<Offset value="-5" /^> >>%PSA_1DB%\MarkScan.psa
echo ^<Duration value="10" /^> >>%PSA_1DB%\MarkScan.psa
echo ^</Mark_Scan^> >>%PSA_1DB%\MarkScan.psa
REM #### END MarkScan.psa ####
REM #### START SeaPlot.psa ####
echo ^<?xml version="1.0" encoding="UTF-8"?^> >%PSA_1DB%\SeaPlot.psa
echo ^<Sea_Plot ^> >>%PSA_1DB%\SeaPlot.psa
echo ^<Version value="7.21h" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ServerName value="Sea Plot" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<InputDir value="C:\Data\Cruises\ctd\gomecc2\1db\proc_data" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<InputFileArray size="1" GrowBy="-1" ^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ArrayItem index="0" value="drv1203_001.cnv" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^</InputFileArray^> >>%PSA_1DB%\SeaPlot.psa
echo ^<OutputType value="0" high="3" low="0" initialValue="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<OutputDir value="C:\Data\Cruises\ctd\gomecc2\1db\proc_data" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<NameAppend value="" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<OutputFile value="drv1203_001" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<LastProcessed value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<PrintSetup ^> >>%PSA_1DB%\SeaPlot.psa
echo ^<Orientation value="1" high="2" low="0" initialValue="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<PrintFullPage value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<OutputUnits value="0" high="2" low="0" initialValue="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<OutputWidth value="201.500000" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<OutputHeight value="115.000000" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^</PrintSetup^> >>%PSA_1DB%\SeaPlot.psa
echo ^<MetafileSetup ^> >>%PSA_1DB%\SeaPlot.psa
echo ^<OutputUnits value="0" high="2" low="0" initialValue="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<OutputWidth value="201.500000" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<OutputHeight value="115.000000" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^</MetafileSetup^> >>%PSA_1DB%\SeaPlot.psa
echo ^<JpegSetup ^> >>%PSA_1DB%\SeaPlot.psa
echo ^<OutputWidth value="720" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<OutputHeight value="411" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^</JpegSetup^> >>%PSA_1DB%\SeaPlot.psa
echo ^<BitmapSetup ^> >>%PSA_1DB%\SeaPlot.psa
echo ^<OutputWidth value="720" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<OutputHeight value="411" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^</BitmapSetup^> >>%PSA_1DB%\SeaPlot.psa
echo ^<PlotType value="2" high="5" low="0" initialValue="2" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<Title value="" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<AddFileName value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<TitleColor value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<FontType value="Arial" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<FontSize value="2" high="2" low="0" initialValue="2" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<GridLine value="3" high="3" low="0" initialValue="3" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<GridStyle value="0" high="3" low="0" initialValue="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<GridInFront value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<InsideBackColor value="16777215" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<OutsideBackColor value="16777215" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<SymbolSize value="0" high="2" low="0" initialValue="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<SymbolFrequency value="6" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<MonchromePlot value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<PlotSymbolsOnly value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ShowLineLegends value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<MarkDataPoints value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ShowPlotShadow value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<BlackTextAxes value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<AutoRangePadding value="5" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ProcessScansToEnd value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ScansToProcess value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<SkipAtStart value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<SkipBetweenPoints value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<PlotBadScans value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<LiftPenOverBadData value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<PrintSizeFrom value="0" high="2" low="0" initialValue="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<Axis index="0" ^> >>%PSA_1DB%\SeaPlot.psa
echo ^<IncludeAxis value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<CalcID value="65" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<Calc UnitID="3" Ordinal="0" ^> >>%PSA_1DB%\SeaPlot.psa
echo ^<FullName value="Pressure, Digiquartz [db]" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^</Calc^> >>%PSA_1DB%\SeaPlot.psa
echo ^<Derived value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ShowDateTime value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ConvertSystemTimeToLocalTime value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<AutoLabel value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<CustomLabel value="" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<LineType value="0" high="11" low="0" initialValue="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<LineColor value="32768" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<LineSymbol value="3" high="13" low="0" initialValue="3" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<LinearScale value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<AutoRange value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<FixedMinimum value="0.000000" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<FixedMaximum value="10.000000" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<AutoDivisions value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<MajorDivisions value="4" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<MinorDivisions value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ReverseScale value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<DupCnt value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^</Axis^> >>%PSA_1DB%\SeaPlot.psa
echo ^<Axis index="1" ^> >>%PSA_1DB%\SeaPlot.psa
echo ^<IncludeAxis value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<CalcID value="12" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<Calc UnitID="58" Ordinal="0" ^> >>%PSA_1DB%\SeaPlot.psa
echo ^<FullName value="Conductivity [S/m]" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^</Calc^> >>%PSA_1DB%\SeaPlot.psa
echo ^<Derived value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ShowDateTime value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ConvertSystemTimeToLocalTime value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<AutoLabel value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<CustomLabel value="" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<LineType value="0" high="11" low="0" initialValue="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<LineColor value="32768" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<LineSymbol value="3" high="13" low="0" initialValue="3" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<LinearScale value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<AutoRange value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<FixedMinimum value="0.000000" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<FixedMaximum value="10.000000" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<AutoDivisions value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<MajorDivisions value="4" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<MinorDivisions value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ReverseScale value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<DupCnt value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^</Axis^> >>%PSA_1DB%\SeaPlot.psa
echo ^<Axis index="2" ^> >>%PSA_1DB%\SeaPlot.psa
echo ^<IncludeAxis value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<CalcID value="12" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<Calc UnitID="58" Ordinal="1" ^> >>%PSA_1DB%\SeaPlot.psa
echo ^<FullName value="Conductivity, 2 [S/m]" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^</Calc^> >>%PSA_1DB%\SeaPlot.psa
echo ^<Derived value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ShowDateTime value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ConvertSystemTimeToLocalTime value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<AutoLabel value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<CustomLabel value="" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<LineType value="0" high="11" low="0" initialValue="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<LineColor value="8388608" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<LineSymbol value="9" high="13" low="0" initialValue="3" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<LinearScale value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<AutoRange value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<FixedMinimum value="0.000000" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<FixedMaximum value="10.000000" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<AutoDivisions value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<MajorDivisions value="4" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<MinorDivisions value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ReverseScale value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<DupCnt value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^</Axis^> >>%PSA_1DB%\SeaPlot.psa
echo ^<Axis index="3" ^> >>%PSA_1DB%\SeaPlot.psa
echo ^<IncludeAxis value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<CalcID value="55" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<Calc UnitID="61" Ordinal="0" ^> >>%PSA_1DB%\SeaPlot.psa
echo ^<FullName value="Oxygen, SBE 43 [umol/Kg]" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<WindowSize value="2.000000" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ApplyHysteresisCorrection value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ApplyTauCorrection value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^</Calc^> >>%PSA_1DB%\SeaPlot.psa
echo ^<Derived value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ShowDateTime value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<ConvertSystemTimeToLocalTime value="0" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<AutoLabel value="1" /^> >>%PSA_1DB%\SeaPlot.psa
echo ^<CustomLabel value="" /^> >>%PSA_1DB%\SeaPlot.psa