codas3 adcp processing. bpo transect lines

Post on 14-Jan-2016

228 Views

Category:

Documents

4 Downloads

Preview:

Click to see full reader

TRANSCRIPT

CODAS3 ADCP ProcessingCODAS3 ADCP Processing

BPO Transect LinesBPO Transect Lines

Rotation of 30°Rotation of 30°

GriddingGridding

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.

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

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

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

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.

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

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

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.

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.

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.

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.

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

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.

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

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.

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.

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

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

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.

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

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

top related