GithubHelp home page GithubHelp logo

nevilleshane / ncei_accession Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 19 KB

Python application to read the text from an NCEI Silver Springs email and extract the file set urls and acession date. These are then used to generate and execute SQL to update the fileset table in the database.

Python 98.67% Dockerfile 1.33%

ncei_accession's Introduction

ncei_accession

Description:

Python application to read the text from an NCEI Silver Springs email, or NCEI Boulder Excel file, or the NCEI Boulder website, and extract the file set urls and acession date. These are then used to generate and execute SQL to update the fileset table in the database.

Requirements:

-Python 3

-The python module: psycopg2 (pip install psycopg2)

-A JSON config file, named config.json, in the same directory as this python file, that contains the database connection parameters

To Run:

python ncei_accession.py

Then paste the whole of the text of the "NCEI receipt confirmation and publication" email in to the top text box, including the line with the date at the top. If no date is included, the application will use today's date.

Alternatively, upload the Boulder Excel .xslx file.

As a third option, you can read archive dates from the NCEI Boulder website https://www.ngdc.noaa.gov/mgg/json/

Click Generate SQL. This will generate the SQL commands to update the fileset table in the database.

Check the SQL looks correct.

Click Execute SQL.

ncei_accession's People

Contributors

nevilleshane avatar

Watchers

James Cloos avatar  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.