Coastal Observing Research and Development Center

COAMPS Winds Model API

Examples, Demos, and Code

JavaScript API

Minified, preferred
Latest stable minified version: http://cordc.ucsd.edu/js/COAMPS/COAMPSWindsAPI.min.js
A specific minified version: http://cordc.ucsd.edu/js/COAMPS/COAMPSWindsAPI-vX.X.X.min.js
The current minified version: http://cordc.ucsd.edu/js/COAMPS/COAMPSWindsAPI-v1.1.3.min.js
Full version, commented
Latest stable version: http://cordc.ucsd.edu/js/COAMPS/COAMPSWindsAPI.js
A specific version: http://cordc.ucsd.edu/js/COAMPS/COAMPSWindsAPI-vX.X.X.js
The current version: http://cordc.ucsd.edu/js/COAMPS/COAMPSWindsAPI-v1.1.3.js
JSDoc Toolkit Auto-Doc
Latest stable version: http://cordc.ucsd.edu/js/COAMPS/jsdoc/
A specific version: http://cordc.ucsd.edu/js/COAMPS/COAMPSWindsAPI-vX.X.X/
The current version: http://cordc.ucsd.edu/js/COAMPS/COAMPSWindsAPI-v1.1.3/

RESTful Web Service

Latest stable version: http://cordc.ucsd.edu/js/COAMPS/query.php
A specific version: http://cordc.ucsd.edu/js/COAMPS/query-vX.X.X.js
The current version: http://cordc.ucsd.edu/js/COAMPS/query-v1.0.1.php

The COAMPSWindsAPI depends on jQuery, version 1.4 or higher. Make sure that you include jQuery in the head section of your web site. Bonus if it's from a trusted CDN.

Chosing a jQuery CDN

Google: http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js
Microsoft: http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.2.min.js
jQuery: http://code.jquery.com/jquery-1.5.2.min.js
http://docs.jquery.com/Downloading_jQuery

Examples:

  1. getForecastTimes - easy
  2. COAMPSWindsAPI_Response - hard
  3. getValuesByLatLonTime - medium
  4. getCurrentValuesByLatLon - medium
  5. getValuesByBoundsTime - medium
  6. getCurrentValuesByBounds - easy
  7. getForecastSeriesByLatLon - medium
  8. (insert|remove|append|replace)Column - hard