DFO-Ocean-Navigator / Ocean-Data-Map-Project

The Ocean Navigator is an online tool that is used to help visualise scientific research data. a users guide is available at https://dfo-ocean-navigator.github.io/Ocean-Navigator-Manual/ and the tool is live at
http://navigator.oceansdata.ca
GNU General Public License v3.0
50 stars 20 forks source link

Fix Density variable calculation #1148

Closed JustinElms closed 7 months ago

JustinElms commented 7 months ago

Background

Received a request to add a Water Density variable to the Navigator (see Issue #1147). A density function has already been implemented in data/calculated_parser/functions.py but the pressure values needed to be padded so that they could be broadcast against salinity and temperature to calculate the sea water density. For this I used the same approach as other calculated variables such as sound speed.

Why did you take this approach?

Same approach has been used in other calculated variable functions and has been shown to work.

Screenshot(s)

image

image

Checks