Skip past header information

Open-File Report 2015-1033

Coastal Change Processes Project Data Report for Oceanographic Observations Near Fire Island, New York, February Through May 2014


Skip past contents information

Matlab m-files



Most of the data processing (see Data Processing page), tidal analysis (see Tidal Analysis page), and plots (see Time-Series Plots page) completed 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 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 2012b v8.0.0. Users are encouraged to look at http://woodshole.er.usgs.gov/pubs/of2007-1194/html/netcdf.html for more information about the NetCDF format and how it's used in our files.

M-files for time series plots (see Time-Series Plots page)

adcp_curr_ts: Creates plots of the timeseries of vectorized water flow data.

adcp_magdir_ts: Creates plots of the timeseries of water flow data magnitude and direction.

adv_ts: Creates a plot of the timeseries of sensor range to boundary, water flow, and standard deviation of water flow.

pcadp_ts: Creates a plot of the timeseries of sensor range to boundary, water flow, and standard deviation of water flow.

obs_ts: Creates a plot of the timeseries of Optical Backscatter Sensor voltage.

ctd_ts: Creates a plot of the timeseries of temperature and salinity.

abs_ave_ts: Creates a plot of the timeseries of acoustic backscatter.

met_ts: Creates a plot of the timeseries of meteorological data from the USGS buoy, as well as data from two National Data Bouy Center buoys.

waves_ts: Creates plots of the timeseries of wave measurement data.

pressure_ts: Creates multi-site plots of pressure measurements.

M-files for tidal analysis (see Tidal Analysis page)

ttide_adcp_indiv : Perform tidal analysis on individual records of ADCP data.

t_tide: Performs harmonic analysis of a time series (called by ttide_adcp_indiv.m, ttide_adcp_comb.m, ttide_aqdp_indiv.m, ttide_aqdp_comb.m, ttide_argn_indiv.m, and ttide_argn_comb.m; Pawlowicz and others, 2002).

Additional M-files

dolandscape: An m-file to configure a figure's properties for landscape printing.

fixpaper: An m-file to configure a figure's properties such that the printed output looks like the on-screen display.

gmax: A function to calculate the maximum value in an array, ignoring NaN values.

gmean: A function to calculate the mean value in an array, ignoring NaN values.

gmin: A function to calculate the minimum value in an array, ignoring NaN values.

gstd: A function to calculate the standard deviation of an array, ignoring NaN values.

julian: A function to convert Gregorian calendar dates to digital Julian days where the Julian day start and end at midnight.

gregorian: A function to convert Julian dates to Gregorian calendar dates.

pl66tn: A function to compute the low-passed time series from a time series of oceanographic data values using the PL64 filter described in Beardsley and others (1985).

smart_interp: A function to interpolate an original time series data set onto a new time base.

suptitle: A function to place a title above all subplots.

tight_subplot: A function to create subplots with less space between plots.