GithubHelp home page GithubHelp logo

datastreamapp / schema Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 4.0 5.04 MB

DataStream Schema

Home Page: https://datastream.org

License: MIT License

JavaScript 84.96% Shell 3.26% Fluent 11.78%
json-schema wqx

schema's People

Contributors

carolyndubois avatar ccismasu avatar dependabot[bot] avatar jayakishore709 avatar lindsayday avatar marykruk avatar nlibera2 avatar patrickleclair-gordonfn avatar willfarrell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

schema's Issues

Standardize Stable Isotope Characteristic Names

Determine naming convention for mapping stable isotope characteristics.

  • Review existing common stable isotope characteristic names in WQX (e.g. 18-O, 15-N, 2-H)
  • Create guidance/convention for mapping stable isotopes:
  • Characteristic name can be the isotope name (e.g. Deuterium) or the isotope as delta notation (d18O)
  • Use ResultUnit to specify how it was measured (e.g. as a ratio, per mil)
  • Need field to enter what molecule isotope is being measured in (e.g. d180 of water, d18O of nitrate, d15N of nitrate, d15N of ammonia, etc.)
  • Remove ambiguous characteristic names

Messaging for Result Value and Result Detection Condition

When a result value and a result detection condition are both present the current schema issues a OneOf error. Could this be changed to better reflect the actual error?

New Text Example:

Only one of ResultValue or ResultDetectionConditon may exist

`ResultSampleFraction` required contitions

Enforcing the suggested logic will add a complexity and decrease maintainability

Options:

  • make optional
  • required but set a default
  • add Not Applicable option to list and use as default
  • add it to the schema

Update Message for Temperature Range QC Check

For ResultValue-TemperatureRange quality control check:
When temperature is outside expected range (-100 - 100), Message is should be >= 0 .
Can this be changed to: should be >= -100 & <= 100

  • fix bug
  • test

Schema Check For Not Detected And Detection Value

Need to add schema check to prevent the addition of a detection limit measure when not detected or detected not quantified are inputted

If (ResultDetectionCondition == 'Not Detected' or ReseultDetectionCondition == 'Detected Not Quantified') and ResultDetectionLimitMeasure != NULL:
return (Error Message saying it has to be NULL)

[QC] Warning if Nutrient data Sample Fraction not in Guidance

Effected Parameters:

  • Ammonia
  • Ammonium
  • Inorganic nitrogen ammonia, nitrate and nitrite)
  • Inorganic nitrogen nitrate and nitrite)
  • Kjeldahl nitrogen
  • Nitrate
  • Nitrite
  • Total nitrogen, mixed forms
  • Organic Nitrogen
  • Organic Phosphorus
  • Orthophosphate
  • Total phosphorus, mixed forms
  • Soluble Reactive Phosphorus (SRP)

Acceptable Sample Fractions:

  • Filtered
  • Unfiltered
  • Filtered, lab
  • Filtered, field
  • Non-filterable

We should give a warning if the sample fractions for these parameters don't match these. This is a very common issue in DataStream.

Nutrient Guidance

Reduce compiled schema size

  • remove enumCase transform (this would disable support for autocorrect for mixed-case values) - 2021-02 not at this time, still valuable to contributors
  • reduce CharacteristicName list size
  • reduce ResultUnit list size

Increase character limit for LaboratoryName

Character limit for LaboratoryName is currently set to 60 characters. Limit should be increased to 100 characters.

  • reach out to EPA - update in to WQX
  • update db
  • update schema
  • deploy

add an export tidy data format

hopefully, this is the right spot to request this, but i noticed when exporting data it doesn't follow tidy principles in that the variable 'Characteristic Name' contains many different types of observations. This makes it difficult to use the data cleanly in a GIS environment as a .csv and requires pre-processing.

[QC] Samples with optional monitoring location

  • When ActivityType =
    "Quality Control Sample-Lab Blank",
    "Quality Control Sample-Lab Matrix Spike",
    "Quality Control Sample-Lab Spike",
    "Quality Control Sample-Reagent Blank",
    "Quality Control Sample-Reference Sample",
    "Quality Control Sample-Trip Blank",
    MonitoringLocation metadata is not required.
  • When ActivityType = "Quality Control Sample-Trip Blank", ActivityStartDate required, else date recorded only under AnalysisStartDate.
  • Observations joined based on DatasetName

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.