codas3 adcp processing. bpo transect lines

36
CODAS3 ADCP CODAS3 ADCP Processing Processing

Upload: allen-chambers

Post on 14-Jan-2016

228 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: CODAS3 ADCP Processing. BPO Transect Lines

CODAS3 ADCP ProcessingCODAS3 ADCP Processing

Page 2: CODAS3 ADCP Processing. BPO Transect Lines

BPO Transect LinesBPO Transect Lines

Page 3: CODAS3 ADCP Processing. BPO Transect Lines
Page 4: CODAS3 ADCP Processing. BPO Transect Lines
Page 5: CODAS3 ADCP Processing. BPO Transect Lines
Page 6: CODAS3 ADCP Processing. BPO Transect Lines

Rotation of 30°Rotation of 30°

Page 7: CODAS3 ADCP Processing. BPO Transect Lines

GriddingGridding

Page 8: CODAS3 ADCP Processing. BPO Transect Lines
Page 9: CODAS3 ADCP Processing. BPO Transect Lines

1. Setup1. Setup Make ADCP tree:Make ADCP tree:

>>adcptree.py codas --datatype lta>>adcptree.py codas --datatype lta Setup q_py.cnt for your trip.Setup q_py.cnt for your trip.

Page 10: CODAS3 ADCP Processing. BPO Transect Lines

Copy all ADCP data files into “ping” directory.Copy all ADCP data files into “ping” directory. Run quick_adcp.py:Run quick_adcp.py:

>>quick_adcp.py --cntfile q_py.cnt --auto>>quick_adcp.py --cntfile q_py.cnt --auto Check database to ensure data is entered:Check database to ensure data is entered:

>>cd adcpdb>>cd adcpdb>>showdb tel973>>showdb tel973

Page 11: CODAS3 ADCP Processing. BPO Transect Lines

2. Viewing Data2. Viewing Data From showdb, input time range into timegrid.cnt.From showdb, input time range into timegrid.cnt. Run timegrid.cnt:Run timegrid.cnt:

>>timegrid timegrid.cnt>>timegrid timegrid.cnt

Page 12: CODAS3 ADCP Processing. BPO Transect Lines

Setup adcpsect_vec.cnt for your trip.Setup adcpsect_vec.cnt for your trip.

Run adcpsect_vec.cnt:Run adcpsect_vec.cnt:>>adcpsect adcpsect_vec.cnt>>adcpsect adcpsect_vec.cnt

Page 13: CODAS3 ADCP Processing. BPO Transect Lines

Setup Setup vector_full.cnt.vector_full.cnt.

Run vector_full.cnt:Run vector_full.cnt:>>vector >>vector vector_full.cntvector_full.cnt

View you data.View you data.

Page 14: CODAS3 ADCP Processing. BPO Transect Lines
Page 15: CODAS3 ADCP Processing. BPO Transect Lines

3. Editing Data3. Editing Data

From the “edit” directory, there are two From the “edit” directory, there are two programs to be ran: profst00.cnt and programs to be ran: profst00.cnt and profst02.cnt.profst02.cnt.

Edit both of these according to your trip, Edit both of these according to your trip, and run them:and run them:>>profstat profst00.cnt>>profstat profst00.cnt>>profstat profst02.cnt>>profstat profst02.cnt

Page 16: CODAS3 ADCP Processing. BPO Transect Lines
Page 17: CODAS3 ADCP Processing. BPO Transect Lines

Edit threshld.m so that the output of Edit threshld.m so that the output of profst00.cnt and profst02.cnt are entered.profst00.cnt and profst02.cnt are entered.

Run this program within Matlab:Run this program within Matlab:>>threshld>>threshld

Page 18: CODAS3 ADCP Processing. BPO Transect Lines

The output of The output of threshld.m will be threshld.m will be displayed in the displayed in the Matlab Command Matlab Command Window.Window.

Copy these 3 values Copy these 3 values into setup.m:into setup.m:-D2UV_THRESHOLD-D2UV_THRESHOLD-D2W_THRESHOLD-D2W_THRESHOLD-WVAR_THRESHOLD-WVAR_THRESHOLD

Setup and adjust any Setup and adjust any other relevant other relevant parameters.parameters.

Page 19: CODAS3 ADCP Processing. BPO Transect Lines

In the Matlab Command Window, enter one of In the Matlab Command Window, enter one of the following two commands:the following two commands:>>gautoedit>>gautoedit>>gautoedit(‘use_bt’,1)>>gautoedit(‘use_bt’,1)

The first command above will produce The first command above will produce contour and vector plots using “Navigation” contour and vector plots using “Navigation” referencing.referencing.

The second will produce these plots using The second will produce these plots using “Bottom Track” referencing.“Bottom Track” referencing.

NOTE: It may be wise to produce vector plots NOTE: It may be wise to produce vector plots using both navigation and bottom track using both navigation and bottom track referencing to decide which is superior.referencing to decide which is superior.

Page 20: CODAS3 ADCP Processing. BPO Transect Lines

You will see a GUI similar to the one below.You will see a GUI similar to the one below. From here, you can click “show now” to view your From here, you can click “show now” to view your

data.data. There are also various pop-up menus which contain There are also various pop-up menus which contain

different tools for editing your data.different tools for editing your data.

Page 21: CODAS3 ADCP Processing. BPO Transect Lines

When you click When you click “show now”, you will “show now”, you will be presented with be presented with two windows.two windows.

One shows a series One shows a series of contour plots, and of contour plots, and the other has a the other has a vector plot.vector plot.

Notice the bottom Notice the bottom ringing shown in the ringing shown in the contour plots.contour plots.

Page 22: CODAS3 ADCP Processing. BPO Transect Lines

When updating, ensure to click “list to disk” When updating, ensure to click “list to disk” before you click “show next”.before you click “show next”.

Once you are finished editing, there are a series of Once you are finished editing, there are a series of commands you must enter to update the commands you must enter to update the database. There are as follows.database. There are as follows.

In Windows command prompt:In Windows command prompt:>>dbupdate ../adcpdb/tel973 abottom.asc>>dbupdate ../adcpdb/tel973 abottom.asc>>dbupdate ../adcpdb/tel973 abadprf.asc>>dbupdate ../adcpdb/tel973 abadprf.asc>>badbin ../adcpdb/tel973 abadbin.asc>>badbin ../adcpdb/tel973 abadbin.asc>>set_lgb ../adcpdb/tel973>>set_lgb ../adcpdb/tel973>>setflags setflags.cnt (Edit First)>>setflags setflags.cnt (Edit First)

>>cd ../nav>>cd ../nav>>adcpsect as_nav.tmp>>adcpsect as_nav.tmp>>refabs refabs.tmp>>refabs refabs.tmp>>smoothr smoothr.tmp>>smoothr smoothr.tmp

Page 23: CODAS3 ADCP Processing. BPO Transect Lines

In Matlab command window:In Matlab command window:>>cd ../nav>>cd ../nav>>refsm>>refsm>>cd ../edit>>cd ../edit

In Windows command prompt:In Windows command prompt:putnav putnav.tmpputnav putnav.tmp

The database is now updated.The database is now updated. Repeat steps from earlier to create a vector Repeat steps from earlier to create a vector

plot, and you should see some plot, and you should see some improvements in how the data looks.improvements in how the data looks.

Page 24: CODAS3 ADCP Processing. BPO Transect Lines
Page 25: CODAS3 ADCP Processing. BPO Transect Lines

4. Contour Plots4. Contour Plots Next, we may wish to Next, we may wish to

make contour plots of the make contour plots of the data. These plots will be data. These plots will be done for each individual done for each individual survey line. The current survey line. The current lines are:lines are:-Flemish Cap-Flemish Cap-Bonavista Bay-Bonavista Bay-Funk Island-Funk Island-White Bay-White Bay-Seal Island-Seal Island-Makkovik Bank-Makkovik Bank-Beachy Island-Beachy Island-Southeast Grand Bank-Southeast Grand Bank-Southeast St. Pierre Bank-Southeast St. Pierre Bank-Southwest St. Pierre Bank-Southwest St. Pierre Bank

Page 26: CODAS3 ADCP Processing. BPO Transect Lines

To make a contour plot, we first must To make a contour plot, we first must slightly alter timegrid.cnt so that it only slightly alter timegrid.cnt so that it only contains the time range for a particular line, contains the time range for a particular line, say BB or FC.say BB or FC.

Page 27: CODAS3 ADCP Processing. BPO Transect Lines

Now we can run adcpsect_contour.cnt for our Now we can run adcpsect_contour.cnt for our specified timerange.specified timerange.

This program must be run three times. Once for This program must be run three times. Once for latitude, longitude, and time.latitude, longitude, and time.

Be sure to output each variable differently ie: Be sure to output each variable differently ie: latfc.con, lonfc.con, timfc.con.latfc.con, lonfc.con, timfc.con.

Page 28: CODAS3 ADCP Processing. BPO Transect Lines

Once we have all three *.con files, we need to Once we have all three *.con files, we need to use cut.exe, paste.exe, and trans.exe to create use cut.exe, paste.exe, and trans.exe to create the *.DIST file.the *.DIST file.

Run these with the following commands:Run these with the following commands:

>>cut –d ‘ ‘ –f 2 lonfc.con >temp>>cut –d ‘ ‘ –f 2 lonfc.con >temp>>cut –d ‘ ‘ –f 2 timfc.con >temp2>>cut –d ‘ ‘ –f 2 timfc.con >temp2>>paste temp2 temp latfc.con > tel973_fc.con>>paste temp2 temp latfc.con > tel973_fc.con>>trans tel973_fc.con tel973_fc.dist 47.000 52.833>>trans tel973_fc.con tel973_fc.dist 47.000 52.833

Page 29: CODAS3 ADCP Processing. BPO Transect Lines

With out *.DIST file we are now able to With out *.DIST file we are now able to create contour plots.create contour plots.

This can be done with the use of several This can be done with the use of several variations of a Python program. These are variations of a Python program. These are appropriately named:appropriately named:-Contour_U.py-Contour_U.py-Contour_U_R30.py-Contour_U_R30.py-Contour_V.py-Contour_V.py-Contour_V_R30.py-Contour_V_R30.py-Contour_U_ping.py-Contour_U_ping.py-Contour_U_R30_ping.py-Contour_U_R30_ping.py-Contour_V_ping.py-Contour_V_ping.py-Contour_V_R30_ping.py-Contour_V_R30_ping.py

Page 30: CODAS3 ADCP Processing. BPO Transect Lines
Page 31: CODAS3 ADCP Processing. BPO Transect Lines
Page 32: CODAS3 ADCP Processing. BPO Transect Lines

5. Gridding5. Gridding It is also useful to grid our data.It is also useful to grid our data. By putting our data into a 5m x 5km grid, we By putting our data into a 5m x 5km grid, we

are able to smooth our data and enhance the are able to smooth our data and enhance the final product.final product.

Page 33: CODAS3 ADCP Processing. BPO Transect Lines

We use the program “lateral_grid8.c” to We use the program “lateral_grid8.c” to change the *.DIST file into a *.GRID file.change the *.DIST file into a *.GRID file.

This program must be compiled in CYGWIN This program must be compiled in CYGWIN with the following command:with the following command:>>gcc –o lateral_grid8 lateral_grid8.c -lm >>gcc –o lateral_grid8 lateral_grid8.c -lm

Page 34: CODAS3 ADCP Processing. BPO Transect Lines
Page 35: CODAS3 ADCP Processing. BPO Transect Lines

Once compiled, we can then run lateral_grid8 Once compiled, we can then run lateral_grid8 to produce the *.GRID file.to produce the *.GRID file.

This program can be ran from command This program can be ran from command prompt with the command:prompt with the command:>>>>lateral_grid8 tel973_fc.dist tel973_fc.grid 2010lateral_grid8 tel973_fc.dist tel973_fc.grid 2010

The new *.GRID file can now be contoured The new *.GRID file can now be contoured using the Python programs:using the Python programs:-Contour_U_grid.py-Contour_U_grid.py-Contour_U_R30_grid.py-Contour_U_R30_grid.py-Contour_V_grid.py-Contour_V_grid.py-Contour_V_R30_grid.py-Contour_V_R30_grid.py

Page 36: CODAS3 ADCP Processing. BPO Transect Lines