Skip past header information
USGS - science for a changing world

Open-File Report 2014–1159


Coastal Change Processes Project Data Report for Observations Near Fire Island, New York, January to April 2012


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/staffpages/cdenham/public_html/
for more information about the NetCDF format.

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_ndbc_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.


Accessibility FOIA Privacy Policies and Notices

Take Pride in America logo USA.gov logo U.S. Department of the Interior | U.S. Geological Survey
URL: http://pubsdata.usgs.gov/pubs/of/2014/1159/ofr2014-1159-mfiles.html
Page Contact Information: GS Pubs Web Contact
Page Last Modified: Wednesday, 07-Dec-2016 20:05:31 EST