Database Layout

gomoos_control

This database deals mostly with static data that doesn't change with each passing hour. There are many tables, but just one is required to help drive the buoy system, that being mooring. The GOES processing consults this database in order to retrieve the platform id specific to a particular buoy, and the general hourly processing consults it to determine what particular buoys are in the water at any particular time.

mooring

Column NameTypeAttributesComments
mooring_idvarchar(10)NOT NULL, PRIMARY KEYAn example would be "F0101". The first character species a region. The second and third specify a location within that region. The fourth and fifth characters specify a deployment at that particular site.
activechar(1)  Either "Y" or "N"
typevarchar(20)  Either "coastal" or "basin"
latitude float(10,4)   Latitude where deployed.
longitude float(10,4)   Longitude where deployed.
water_depthfloat(10,1)  Depth of water column at deployment site.
scopefloat(10,1)  Needs explanation.
time_depdatetime  Time of deployment
time_recdatetime  Time when the mooring was recovered.
light_listchar(2)  Needs explanation.
buoy_snvarchar(30)  Serial number of buoy. More detailed explanation??
wirerope_lengthfloat(10,1)  Needs explanation.
chain_lengthfloat(10,1)   Needs explanation.
anchor_weightfloat(10,1)   Needs explanation.
solar_wattsfloat(10,1)   Needs explanation.
solar_anglefloat(10,1)   Needs explanation.
campbell_idsmallint(3)  Needs explanation.
site_namevarchar(40)  Short 2-3 word description of mooring location.
add_magnetic_variationfloat(10,1)   Needs explanation.
location_descriptiontext  More detailed description of mooring location.
buoy_schematic_image_urlvarchar(255)   URL of full size schematic of a particular buoy.
buoy_schematic_thumbnail_image_urlvarchar(255)   URL of thumbnail schematic of a particular buoy. Smaller version of buoy_schematic_image_url.
goes_platform_idchar   ID string to use when processing a buoy via the GOES satellite.
time_entrytimestamp(14)   Identifies when a change to the record was made.
status_commenttext  Displayed on an individual buoy web page. Usually some sort of current status message.

An example would be given by

mooring_idF0101
activeN
typeCoastal
latitude 44.0552
longitude -68.9980
water_depth110.1
scope1.320
time_dep 2000-07-10 19:30:00
time_rec 2001-07-10 00:00:00
light_listG
buoy_snX
wirerope_length80
chain_length60
anchor_weight1800.0
solar_watts20.0
solar_angle65.0
campbell_id0
location_commentW. Penobscot Bay
add_magnetic_variation0
location_description5 nm SE of Rockland
buoy_schematic_image_urlhttp://gyre.umeoce.maine.edu/gomoos/buoy/K0101.gif
buoy_schematic_thumbnail_image_urlhttp://gyre.umeoce.maine.edu/gomoos/buoy/K0101_sm.gif
goes_platform_idNULL
time_entry20020906115755
status_commentFull speed ahead.

In this case, buoy F0101 had no GOES transmitter, so there has no GOES platform id.