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

Fix missing bottle volume in ICE2010 microplankton (set to 250 ml) #3

Open
cnrdh opened this issue Mar 24, 2022 · 2 comments
Open

Fix missing bottle volume in ICE2010 microplankton (set to 250 ml) #3

cnrdh opened this issue Mar 24, 2022 · 2 comments

Comments

@cnrdh
Copy link
Member

cnrdh commented Mar 24, 2022

Before

$ cat ndjson/ice2010_konghau_database_complete_phytoplankton_niskin.ndjson | nd-filter 'd.cells_in_250_ml > 0' | ./iopan_protist_recalc | nd-count --select perfect,volumeRatio,quantityRatio
{"perfect":null,"volumeRatio":null,"quantityRatio":null,"count":614}

$ cat deposit/ice10_konghau_database_complete_phytoplankton_microplankton_niskin.tsv | sed 's/,/./g' | nd-csv -n | ./iopan_protist_to_dwc | nd-filter 'd.iopan?.["cells in 250 ml"]>0' | ./iopan_protist_recalc | nd-count --select perfect,volumeRatio
{"perfect":false,"volumeRatio":1,"count":614}

2 quantity ratio buckets:

{"perfect":false,"volumeRatio":1,"quantityRatio":510000,"count":178}
{"perfect":false,"volumeRatio":1,"quantityRatio":130,"count":436}
@cnrdh
Copy link
Member Author

cnrdh commented Mar 24, 2022

See also npolar/marine-db#51 (comment) … – 8 of uniq 138 samples are not in sample log. Only 18 microplankton, but in the data there are 32:

$cat deposit/ice10_konghau_database_complete_phytoplankton_microplankton_niskin.tsv | sed 's/,/./g' | nd-csv -n | ./iopan_protist_to_dwc | nd-filter 'd.iopan?.["cells in 250 ml"]>0' | nd-uniq --select fieldNumber | nd-group 1 | nd-map 'd[1].map(({fieldNumber})=>fieldNumber)'
[20,35,36,38,83,84,113,133,134,135,136,179,180,181,182,227,228,229,230,272,273,318,361,405,427,579,580,581,582,654,669,670]

@cnrdh
Copy link
Member Author

cnrdh commented Mar 24, 2022

After:

$ cat deposit/ice10_konghau_database_complete_phytoplankton_microplankton_niskin.tsv | sed 's/,/./g' | nd-csv -n | ./iopan_protist_to_dwc | nd-filter 'd.iopan?.["cells in 250 ml"]>0' | ./fix/fix_ice2010 | ./iopan_protist_recalc | nd-count --select perfect
{"perfect":true,"count":614}

All

$ cat deposit/ice10_konghau_database_complete_phytoplankton_microplankton_niskin.tsv | sed 's/,/./g' | nd-csv -n | ./iopan_protist_to_dwc | ./fix/fix_ice2010 | ./iopan_protist_recalc | nd-count --select perfect
{"perfect":true,"count":3443}

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