Steps for Processing AON22 BS3a 2022-24 Mooring Data ==================================================== 5/11/2025 The data being processed here is from AON22 mooring BS3. The mooring had 3 ADCPs on it. These are the steps for mooring BS3a deployed at 35 m depth facing up. The steps described here apply to all three. ADCP was calculated from MC pressure sensor deployed along side the buoy. Raw data file: -rw-r--r-- 1 torres torres 15095109 Nov 18 11:33 BS3A_000.000 Final data range was: Actual ADCP start time: 2022/11/05 23:00:00 Actual ADCP end time: 2024/09/17 19:00:00 read_bs3a.m ============ read_bs3a.m - Each station has a specific read program. Here editting criteria, start times, positions, file names, etc were all set. The following editting criteria were applied to all stations: Input: BS3A_000.000 - Raw binary ADCP data Output: aon22_bs3a_step1_raw.mat - Mat file of semi-processed ADCP data. p.pglim = 20 % - Minimum percent good threshold. p.elim = 0.10 m/s - Maximum error velocity. Magnetic variation correction was applied for each ensemble. Data exceeding the thresholds above were set to NaN. Velocity data were rotated to True North by adding magnetic variation angle to direction and converted to U and V components. The criteria p.bblim was set to edit out bins affected by MC tether buoys in the beam path of the ADCP. (if used) The read_.m program sets these parameters and converts raw binary ADCP data and into mat files. The format of the final processed .mat file is described in readme_format_Final1_ice.txt. Process Microcat data are converted into format that can be used by subsequent processing programs. PROCESS_ADCP.M ============== process_adcp.m - Further process ADCP data. Input: aon22_bs3a_step1_raw.mat Output: aon22_bs3a_pro1.mat The following actions were performed with process_adcp.m. % - Read ADCP mat file from loadrdi_sbi.m. % - Calculate speed of sound at transducer and apply velocity correction. % - Create depth array. % - ADCP and Microcat corrected for clock drift (if needed). % - Interpolate Microcat and/or ULS data onto ADCP time grid. % - Set velocities above surface (or cos of beam angle) to NaN. ADCP clock was checked for clock drift. Transducer depth for each ensemble was corrected using MC/ULS pressure. Speed of sound was determined from ADCP temperature and either fixed salinity or salinity from Microcat. A depth array was calculated using the corrected transducer depth. The array was calculated for all bins. Depth refers to + meters below the surface. Each depth corresponds to the center of each bin. Since each ADCP was set up to collect data beyond the surface, negative values are out of the water and used as a criteria to set the velocity data out of the water = NaN. Also, due to side lobe interference, additional data proportional to the cosine of the beam angle were also editted (set to NaN) using the following formula: cos20=(BS/2)+(tr_depth-(tr_depth.*cos(BA)) where BS = binsize BA = beam angle Approximately 8% of the water column velocity data was lost to side lobe interference. t_polyedit8.m ------------- Not needed for this dataset. app_manfbedits2 --------------- Not needed for this dataset. convert_adcp_pro.m ------------------ Change the first line to the appropriate mat file and run it. A set of mat files for each data type will be saved which are used by the plotting routines. scmenu.m --> scpltuvw_c.m ------------------------- Program to plot figures savepro_adcp.m -------------- Saves processed data into convenient structure for archiving. Set iceFL=2 Set outFL=2 OSN18_CF6_Final1.mat - Final processed data. scmenu.m -------- GUI for plotting profiles and contours of velocity, etc. Outliers (mostly near the surface) were corrected by hand using t_polyedit.m routines. Set parameters near the top of the file. The offset settings are for the velocity profile plots. You can set to 0 to have all the profiles over a time range plotted over each other. Or you can set a positve number to space out each profile by X cm/sec. Good for seeing the time evolution of the data. Contouring is good for that too. Make sure you set the offsets back to 0 for the contour plots. If you don't, you will see why. run_scplot.m ------------ Matlab script for automating some of the plotting. Allows you to plot entire time series in 20 day chunks. run_ADCP_to_netCDF.m -------------------- Create netcdf files for archiving OS_OSNAP-CF6_201809_ADCP_100m.nc - Final netcdf file Not used here. Save data and plots for archiving --------------------------------- First copy .webmagikrc file from ~ to working directory and edit > cd > tarcopy .icons /usr1/OSNAP18/CF7/ADCP > cp .webmagickrc /usr1/OSNAP18/CF7/ADCP > cp .dirindex /usr1/OSNAP18/CF7/ADCP > webmagick_DT # Creates webpages for viewing data in directories. Copy format file and processing steps file into working directory > cd ~/matlab/scadcp > cp readme_format_Final1_ice.txt /usr1/AON/AON22/BS3/BS3/BS3a/ADCP > cp process_steps_AON22_BS3a.txt /usr1/AON/AON22/BS3/BS3/BS3a/ADCP > la -1 > listdata > la -1 > listfigs - Edit each of these to have the files and directories you want to save. - Edit the format file and copy over to data directory. - Create tgz file with data and plots. > tar cvfz AON22_BS3a_adcp_data.tgz `cat listdata` > tar cvfz AON22_BS3a_adcp_figs.tgz `cat listfigs` That's it for now! Daniel