Coder Social home page Coder Social logo

nwfsc-fram / oceants Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 3.0 66.07 MB

Oceanographic data processing in Typescript using NodeJS and Apache Arrow

TypeScript 81.78% Python 18.09% Batchfile 0.13%
ctd noaa oceanography seabird sbe19plusv2 apache-arrow

oceants's People

Contributors

dependabot[bot] avatar

Watchers

 avatar  avatar

oceants's Issues

Use previous haul latitude when cannot match current cast to a haul

Currently when I cannot match a cast to a haul from the data warehouse, I skip adding the following values for the given cast

  • depth
  • latitude
  • longitude
  • haulID

I could just use the latitude and longitude from the immediately preceding haul instead as an approximation.

Fix parsing for SeaFET or DualGTP extra sensors

In the example *.raw files that I have for the SBE 19plusV2 from the trawl survey, neither of these flags are set and so I have it hardcoded in to just skip them should they appear in a subsequent *.raw file. Instead, I should probably handle when they are missing or when they appear and are either flagged as yes or no. See parseHex.ts: 190-191.

Error: Converting to Engineering Units

(node:73880) UnhandledPromiseRejectionWarning: Error: Failed to bind Col "Temperature A/D Counts"
at Col.bind (C:\Todd.Hay\Code\OceanTS\node_modules\apache-arrow\compute\compute\predicate.ts:77:42)
at C:\Todd.Hay\Code\OceanTS\src\sbe19plusV2\equations\temperature.ts:23:26

When the source *.raw file does not properly contain the header information and so the conversion fails. Example file:

2016 > LastStraw > Leg 2 > Hauls 62 to 64

Find 2017 CTD 7738 xmlcon file with OPTODE Aanderaa calibration coefficients

Have inquired with Victor and Seabird, awaiting response. However, I would note that for the 2018 7738 xmlcon file, the OPTODE Aanderaa calibration coefficients are all 0's, as follows, so I can probably just proceed without using them:

  <Sensor index="6" SensorID="64" >
    <OptodeOxygenAanderaa SensorID="64" >
      <SerialNumber></SerialNumber>
      <CalibrationDate></CalibrationDate>
      <DoSalinityCorrection>0</DoSalinityCorrection>
      <DoDepthCorrection>0</DoDepthCorrection>
      <InternalSalinity>0.00000e+000</InternalSalinity>
    </OptodeOxygenAanderaa>
  </Sensor>

Stop processing if no hex data encountered

Sometimes no hex data is actually recorded in the hex file. Stop subsequent processing of the file when this scenario occurs. See the attached hex file as an example.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.