nwfsc-fram / OceanTS

Oceanographic data processing in Typescript using NodeJS and Apache Arrow
0 stars 3 forks source link

Error addHaulInfoToTable: TypeError: Cannot read property 'length' of undefined #16

Closed ghost closed 5 years ago

ghost commented 5 years ago

Occurs when there is a failure in matching up a part of a cast with a trawl survey haul, so the matched cast data looks like:

matched cast: {"cast":6,"startDate":"2016-05-22T04:20:36.000Z","startNum":92579,"endNum":123431,"avg":1}

instead of like:

matched cast: {"cast":5,"startDate":"2016-05-22T00:55:30.000Z","startNum":80237,"endNum":92578,"avg":1,"latitude":45.54079055786133,"longitude":-124.66899108886719,"haulID":"201603008005"}

i.e. it is missing the latitude, longitude, and haulID values.

ghost commented 5 years ago

Error corrected, closing ticket