Giter VIP home page Giter VIP logo

etl-nwis's Introduction

etl-nwis

ETL Water Quality Data from the NWIS System

These scripts are run by the OWI Jenkins Job Runners. The job name is WQP_nwis_ETL. They follow the general OWI ETL pattern using ant to control the execution of PL/SQL scripts.

The basic flow is:

  • Copy the mysql extract and oracle load scripts to the mysql server.

  • Make sure they have the correct end-of-line characters.

  • Extract a stable copy of the mysql data. (capture_data.sh)

  • Import the data into the nwis_ws_star schema of the nolog database. (import_data.sh)

  • Copy lookup values from the natprod database. (copyFromNatprod.sql)

    Note: Several code lookup values in other etls are dependent on this data.

  • Copy the NEMI cross walk data. (copyFromNemi.sql)

  • Copy the list of NAWQA sites from data checks. (copyFromDataChecks.sql)

  • Drop the referential integrity constraints on the nwis swap tables of the wqp_core schema. (dropRI.sql)

  • Drop the indexes on the nwis station swap table, populate with transformed data, and rebuild the indexes. (transformStation.sql)

  • Drop the indexes on the nwis activity swap table, populate with transformed data, and rebuild the indexes. (transformActivity.sql)

  • Drop the indexes on the nwis result swap table, populate with transformed data, and rebuild the indexes. (transformResult.sql)

  • Drop the indexes on the nwis r_detect_qnt_int swap table, populate with transformed data, and rebuild the indexes. (transformResDetectQntLmt.sql)

  • Drop the indexes on the nwis summary swap tables, populate with transformed data, and rebuild the indexes. (createSummaries.sql)

  • Drop the indexes on the nwis code lookup swap tables, populate with transformed data, and rebuild the indexes. (createCodes.sql)

  • Add back the referential integrity constraints on the nwis swap tables of the wqp_core schema. (addRI.sql)

  • Analyze the nwis swap tables of the wqp_core schema. (analyze.sql)

  • Validate that rows counts and change in row counts are within the tolerated values. (validate.sql)

  • Install the new data using partition exchanges. (install.sql)

  • Create a new Public SRSNAMES table. (createPublicSrsnames.sql)

The translation of data is specific to this repository. The heavy lifting (indexing, RI, partition exchanges, etc.) is done using common packages in the wqp_core schema. These are defined in the schema-wqp-core repository.

etl-nwis's People

Contributors

skaymen avatar ayan-usgs avatar dsteinich avatar kmschoep-usgs avatar

Watchers

James Cloos avatar

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.