Skip header Identifier symbol and link to USGS Home page
Long-term Oceanographic Observations in Western Massachusetts Bay, Offshore of Boston
U.S. Geological Survey Digital Data Series DDS-74, Version 2.0

Matlab M-Files

Skip navigational side bar

Most of the plots and statistical analysis done for this report were created using Matlab software, created by Mathworks (www.mathworks.com ). Plots were converted to tagged PDF format using Adobe (www.adobe.com) Acrobat.

DISCLAIMER: The Matlab m-files provide partial documentation of the techniques used to create the analyses and plots in this report. The m-files are not turn-key programs and are not supported by their creator or by USGS.

This code was designed to run on Matlab 6.0 with NetCDF installed. Users are encouraged to look at http://woodshole.er.usgs.gov/staffpages/cdenham/public_html/
for more information about the NetCDF format.

adcp_contour: Creates the contour plots of the ADCP data from all depths. (See "Time Series Plots".)

adcp_deep: Creates a table of the depth of the deepest ADCP bin available for each deployment.

adcp_ell_plots: Creates the plots of the principal axes data by month for the ADCP. (See"Mean Flow".)

adcp_ell_tables: Creates tables of the principal axes data by month for the ADCP. (See"Principal Axes".)

adcp_scat_plots: Creates scatter plots of the principal axes data for the ADCP. (See"Scatter Plots".)

adcp_vpv: Program to convert the ADCP current data into .vel files for use with the USGS Velocity Profile Viewer. (See "Time Series Plots".)

adcp_whisk: Creates whisker plots of the ADCP data from select depths. (See "Time Series Plots".)

anglextocompass: Converts angles measured in degrees counterclockwise from east to degrees clockwise from north.

archive_mblt: Scans the data directories and creates a matlab file containing information about the data files.

attn: Creates plots of the beam attenuation data . (See "Time Series Plots".)

binsort: Sorts information into specified bins, such as sorting current into speed and direction bins.

compare_sites: Creates plots comparing the monthly mean and variability of wind stress, surface current at sites A and B, and standard deviation of pressure. (See "Time Series Plots".)

attn: Creates plots of the data available at each site over time . (See "Data Available".)

master_mblt: The primary m-file used to run other individual commands for creating this report.

mblt_windstress: Calculates the wind stress from NOAA Buoy 44013 wind speed data.

mixed_plot: Creates a plot of significant wave height, beam attenuation, sediment trapping rate, current speed, and bottom pressure from Site A. (see "Time Series Plots".)

monthly_stats: Calculates the monthly statistics of meteorological and oceanographic observations. (See "Statistics".)

monthly_stats2: Continuation of "monthly_stats.m", which was getting to large and unwieldy. (See "Statistics".)

monthly_stats_rivers: Calculates the monthly statistics of river streamflow observations. (See "Statistics".)

pcm_ell_plots: Creates the plots of the principal axes data by month for the point current meters. (See "Mean Flow".)

pcm_ell_tables: Creates the tables of the principal axes data by month for the point current meters. (See "Principal Axes".)

pcm_scat_plots: Creates scatter plots of the principal axes data for the point current meters. (See "Scatter Plots".)

pcm_whisk: Creates whisker plots of the point current meter data. (See "Time Series Plots".)

pres_plot: Creates plots of the pressure data . (See "Time Series Plots".)

river_ts: Creates plots of the salinity, temperature, and river discharge data. (See "Time Series Plots".)

sed_trap: Creates plots of the trapping rate from the tube sediment traps by year. (See "Time Series Plots".)

sed_trap_2: Creates plots of the trapping rate from the tube and time series sediment traps from all years. (See "Time Series Plots".)

sed_trap_month: Creates plots and tables of the time series sediment trap data, sorted by month and year. (See "Monthly Statistics".)

show_filters: Plots the filter weights for the PL33 low-pass filter and plots the filter in frequency space. (See "Data Processing".)

singlejd: Converts two component julian date measurements into one component julian date.

smart_interp: A data interpolation routine modified from the Mathworks "interp1.m" command. This code separates the data into chunks based on gaps in the original time series to prevent linear interpolation over large data gaps.

smart_interp_pres: Similar to the "smart_interp.m" command, but the mean of each data chunk is removed.

sort_currents: Sorts currents into speed and direction using binsort.m. (See "Currents Sorted By Speed and Direction".)

tides: Performs all of the tidal analysis. (See "Tidal Analysis".)

uvtospdir: Converts U and V components of a vector in speed and direction measured counterclockwise from east.

value2index: Determines the index of the point in a series numerically closest to a given target value.

weath_plot: Creates plots of various meteorological data . (See "Time Series Plots".)

write_vpv: A subcall of adcp_vpv.


Jump to top of page
Return to supplementary files. Go on to metadata.

Skip past USGS  Links [an error occurred while processing this directive]