enzh-CNfrdeeliwitjakorues

SIO-CalCOFI Developmental Blog

Notes on software, hardware, methods, and technical metadata.

  • Home
    Home This is where you can find all the blog posts throughout the site.
  • Categories
    Categories Displays a list of categories from this blog.
  • Tags
    Tags Displays a list of tags that have been used in the blog.
  • Bloggers
    Bloggers Search for your favorite blogger from this site.
  • Team Blogs
    Team Blogs Find your favorite team blogs here.
  • Login
    Login Login form
17
Oct

DECODR Line.Sta Calculator Negative Longitude Fix

Posted by on in DECODR
  • Font size: Larger Smaller
  • Hits: 1164
  • Print

The line.sta calculator uses station position GPS latitude & longitude to calculate the actual CalCOFI station Line.Sta. There was a problem when a negative (W) longitude was used from the YYMMcasts.csv, saved by CESL. A negative longitude causes the decimal longitude parsing back to degrees to be negative, so the longitude minutes were miscalculated. This resulted in an incorrect 'actual line' (Ac_Line) & 'actual sta' Ac_Sta calculations during the csv>database conversion. 

DECODR1410 now checks for a longitude < 0 and multiplies it by -1 to insure a positive longitude is parsed. The decimal longitude (Lon_Dec) and longitude degrees are still reported as a negative. So this change does not affect the outputted data signs, only the internal calculations.

SIO-CalCOFI webmasters - presenting contributions from CalCOFI partners and affiliates.

Go to top
DMC Firewall is a Joomla Security extension!