Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating PRES doesn't always work for VMS? #1

Open
paleolimbot opened this issue Jul 9, 2021 · 0 comments
Open

Updating PRES doesn't always work for VMS? #1

paleolimbot opened this issue Jul 9, 2021 · 0 comments

Comments

@paleolimbot
Copy link
Collaborator

paleolimbot commented Jul 9, 2021

See here:

from medsrtqc.vms import read_vms_profiles
from medsrtqc.resources import resource_path
from medsrtqc.interactive import plot
from medsrtqc.qc.flag import Flag
from medsrtqc.qc.named_tests import PressureIncreasingTest

profs = read_vms_profiles(resource_path('BINARY_VMS.DAT'))
test = PressureIncreasingTest()
prof = profs[0]
test.run(prof)

import matplotlib.pyplot as plt
fig, axs = plot(prof, vars=('PRES', 'TEMP', 'PSAL'))
for i, var in enumerate(('PRES', 'TEMP', 'PSAL')):
    t = prof[var]
    bad = t.qc == Flag.BAD
    plt.subplot(2, 2, i + 1).scatter(t.value[bad], t.pres[bad])

plt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant