-*- text -*-

20220109
	PostgreSQL 14.1.

	misc_tests.rb:
	Added 1 new test.

	importNOS_TideRefs.rb and importNOS_TideSubs.rb:
	Flagged guessed geogroups in renamings info.

	importNOS_TideSubs.rb:
	Removed trailing \n from notes.

	importNOS_CurRefs.rb and importNOS_CurSubs.rb:
	Persisted name, state, tz from previous year's data.
	Added generation of renamings template.
	Removed one-time code.

	importNOS_CurRefs.rb:
	Removed meridian logic obsoleted by GMT phases.

	scrape-MDAPI-2-geogroups.rb:
	Revised to fetch into separate files instead of concatenating.

	importNOS_JsonReaders.rb:
	Changed readStationsByGroupTidesJson to read separate files.
	Changed getCurrentConstForSid to get majorPhaseGMT.

	importNOS_Geogroups.rb:
	Interpreted null level as level 7 (for new geogroups 1840-1842).
	Nilled out Gulf Coast and Gulf of Alaska in L6rewrite.

	importNOS_Queries.rb:
	Removed obsolete queries.
	Added new queries for currents.

	importNOS_DodgyCode.rb:
	Added patterns to standardize Vieques Island and Isla de Vieques to
	just Vieques.

	importNOS_Util.rb:
	Removed function mangle.  Use db.escape_string.

	sample.rb:
	Removed obsolete comment.

20210110
	PostgreSQL 13.1.

	Added support for downloading and importing current refs.

	Renovated name generation code for both tides and currents.

	scrape-MDAPI-*:
	Updated URLs and comments.

	parse-oldcurlists.rb:
	Revised to work with latest oldcurlists.

	sample.rb:
	Removed legacy currents option.

	getPreds.rb:
	Updated URLs; changed to new API for currents predictions.

	misc_tests.rb:
	Added 3 new tests.

	dwf-export.sh:
	Added set -e.

	To do next time:  carry over currents metadata that are worth saving.

20191229
	PostgreSQL 12.1.

	sample.rb:
	Adjusted CUR option to exclude recent data.

	importNOS_CurSubs.rb:
	Fixed wrong variable name in unhandled type error message.
	Allowed limited import of new current subs (only for Washington).

	Other changes to allow import of new current subs:
	  Added scrape-currents-regions-lists.sh.
	  Added parse-oldcurlists.rb.
	  importNOS_Queries.rb additions and modifications.
	  importNOS_Geogroups.rb commented-out code was moved to
	    parse-oldcurlists.rb.

	importNOS_DodgyCode.rb:
	In guessTimezone, changed St. Lawrence Island exception to test
	coordinates instead of name.

	dwf-export.sh:
	Changed from bz2 to xz.

20190615
        getPreds.rb:  Include mean flood/ebb direction for currents.

20181227
	PostgreSQL 11.1.

	hbexport.pgcc:
	Fixed fragile parsing of command line.

	importNOS_CurSubs.rb:
	Finished migration to sidplus.  Removed one-time code from 2017.

	importNOS_TideRefs.rb:
	Removed one-time fix for Wake Island.
        Changed insert to use "returning" so oids no longer needed.

	Used https everywhere.  Used --progress=dot for some wgets.

	harmbase2.sql:
	Removed "with oids" from data_sets.

20180107
	PostgreSQL 10.1.

	scrape_web.rb:
	Replaced with 3 scripts that use the CO-OPS Metadata API (MDAPI).

	import:
	Replaced pgcc program with scripts that read the MDAPI JSON files.
	Dropped support for all other formats.
	Merged in several postprocessing scripts.
	Changed current station IDs to "sidplus" (station ID, followed by
	  underscore and "bin number" to separate depths).
	Stopped including periods in U.S.A., F.S.M., D.C., and the like.

	sample.rb:
	Enhanced to allow checking a specific station ID or all current
	  reference stations (replacing make_currents_test_script.pgcc).
	Factored the NOAA web site access out to a separate script,
	  getPreds.rb.

	harmbase2.sql:
	Added new aliases for constituents used by Anchorage (9455920):
	  M2KS2 => M2(KS)2
	  2SNMK2 => 2SN(MK)2
	  2KMSN2 => 2KM(SN)2
	  THETA1 => THE1
	  OO2 => OQ2-HORN
	  RP1 => PSI1
	  KJ2 => KJ2-IHO
	Added definition of KJ2-IHO.
	Dropped the tables drops and footnotes, which are no longer used by
	  import.

	export:
	Renamed to hbexport to eliminate clash with shell built-in command.
	Added --flip option.

	Debian.sh:
	Removed failing attempt to export nonfree data.

	configure.ac and Makefile.am:
	Moved all scripts to pkgdatadir to reduce clutter in bin.

	Purged outdated scripts, examples, renamings, and associated cruft.

20161231
	PostgreSQL 9.6.1.

	Changed the definition of constituent 3KM5, which is used only by
	Anchorage (9455920), to reduce differences with predictions from
	NOAA's web service.

	Moved Western Aleutians longitude fix from importNOSST.pgcc to
	preparse_tide_predictions_pages.rb.

        Ported improved coordinate-matching code of NOSSC back to NOSST.

        Make use of previous year's data for disambiguating states of
        subcurrents.

	Enhanced sample.rb to bring up NOAA prediction pages for comparison
	and moved from scripts to nos subdir.

	Purged unused scripts.

20151227
	PostgreSQL 9.4.5.

	Significant changes to import.
	- Harmonic constants from opendap.co-ops.nos.noaa.gov/axis
	- Datums from tidesandcurrents.noaa.gov/api
	- Sub currents from "NOAA Current Predictions *Beta*" site
	- Coordinates preferentially taken from regional station lists
	- The relevant NOS formats are now called NOS (for tidal harmonic
	  constants), NOSST (NOS subordinate tide), and NOSSC (NOS
	  subordinate current).

	For this year, the names of all sub current stations were synthesized
	from scratch instead of matched from old data.  The few post-import
	fixups are in renamings-cursubs.txt.

	On the NOAA currents site, if a station is in an area (e.g., Potomac
	River) that crosses several states (e.g., MD, VA, DC), the station is
	duplicated under all three states.  Import uses the state from the
	station list if it is unambiguous and otherwise makes a guess based
	on the nearest station appearing in last year's data.

	Corrected handling of stations on the Columbia River Datum.  Bug
	report credit:  Mark Hayden.

	The rename utility once again applies to all stations but logging has
	been adjusted on the assumption that only a few stations are being
	renamed.  Unmatched renamings are reported; unmatched stations are
	not.

	Purged obsolete code.

	Fixed time zone detection for Savoonga.

20141224
	PostgreSQL 9.3.5.

	importNOS.pgcc and scrape_web.cc updated to obtain and use
	station coordinates from Station Info pages.

	Belatedly updated other URLs used in scrape_web.cc.
	importNOS.pgcc is not yet tested with those new pages.

20131229
	PostgreSQL 9.3.2.

	Schema:  added 4 constituent aliases as needed for the new Anchorage.
	scanFootnotes.cc:  replaced by scanFootnotes.rb.
	scrape_web.cc:  repaired link rot at top level; still using old CGI
	                for the rest.
	importNOS.pgcc:  updated for changes to station_list.html.
	importNOSS.pgcc:  updated for changes to tab2 current pages.
	importNOSSnew.pgcc:  updated to use new station ID field in tidepages.
	import.pgcc:  fixed SQL code rot in guess_aliases.

	Added scripts/sample.rb.

20121224
	PostgreSQL 9.2.2.

	Changes to renaming strategies per continued fallout from the tides
	migrating to the new web site, plus the usual churn.

20120302
	Added some consts.  Added Golden Gate subs to renamings-USA.txt.
        Revised dwf-export.sh.

20111230
	PostgreSQL 9.1.2.

	NOAA completely changed the web site for subordinate tide stations.

	- Added NOSSnew import format.

	- Made complicated changes to renaming process.  NOS and NOSSnew now
	are renamed by import.

	The names extracted from the new web site were not compatible with
	the old renamings-USA.txt, so stations were identified by matching
	coordinates with last year's data.  Next year it should be possible
	to match subordinate tide stations on station ID, as was done this
	year for reference stations.

	Currents have not yet been migrated to the new site and they are
	still using the old renamings-USA.txt.  The rename program has been
	modified to restrict the scope to only those stations whose import
	date is 'today'.

	Also handled "usual churn" in benchmarks and tab2.

20101230
	PostgreSQL 8.4.6.

	The usual churn to handle changes in NOS input.

20091227
	Upgraded to PostgreSQL 8.4.2.

	Changed handling of null/zero multipliers to default to 0.001 instead
	of unity.

20081228

	Added ONOS format.

	Extended NOSS import to handle currents.

	Reversed the formation of contextualized names in importNOSS.pgcc and
	made harmonizing changes to renamings-USA.txt.  They were backwards
	for historical reasons (the backwards names used to be included in
	the web scrape).  This change should yield improved default naming
	for stations that do not have a renaming.

	Added renameRenamings.cc (used for ibid.)

	Added state column to data_sets and script add_states.sql.

	Included one-off utility subcurrent_states.pgcc used to guess
	states for currents based on nearest tide station.

	Fixed export crash for sub stations with xfields.

20070905

	Added Congen header check to configure.ac and Congen version
	check to export.pgcc.

	Added GPL notices in all installed programs.

	Fixed code rot in meds (use libdstr).

20070903

	Automaked the main part of the distribution (not including nos
	and meds web-scrapers).

	Added export switches --free and --nonfree.

	Added Debian.sh script to build free and non-free TCD files
	from SQL "source."

	Moved miscellaneous .sh and .sql scripts into the scripts
	subdirectory.

	Moved import format examples into the examples subdirectory.

20070818

	Revised export to use Congen 1.6 (libcongen); removed dependency
	on tcd-utils.

	Relicensed under GPLv3.
