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

Add ingest routine #9

Open
scottsfarley93 opened this issue Dec 20, 2016 · 0 comments
Open

Add ingest routine #9

scottsfarley93 opened this issue Dec 20, 2016 · 0 comments

Comments

@scottsfarley93
Copy link
Owner

All data ingestion is currently done manually.

Add a data ingestion routine that could operate via a post request on the API. Only authenticated users should post data, so this would require the addition of a user authentication method.

The program could look like this:

  1. Check that a netcdf was uploaded with the request.
  2. Get band interpretations, source, and variable from the api post data json
  3. Use NetCDF4 python bindings and gdal python bindings to extract the netcdf to a numpy array and then to a gdal raster
  4. Use gdal_merge to combine bands
  5. Execute standard ingest procedures to add database table and records in the database.
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