Coder Social home page Coder Social logo

obsidjan / api-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from agrimetrics/api-examples

0.0 0.0 0.0 42.88 MB

Repository of sample scripts with which one consumes data from Agrimetrics' Data Platform

License: MIT License

Python 0.05% R 0.01% CSS 0.01% Jupyter Notebook 99.93% Dockerfile 0.01%

api-examples's Introduction

Agrimetrics API Examples

This repository contains some examples of how to call Agrimetrics' APIs. Some examples have been developed in Python and others in R.

Pre-requisites:

  • Python 3.6+
  • a valid Field Explorer subscription key must be obtained and set in your environment as API_KEY.
  • Jupyter Lab (R 3.6.3+)

To obtain your subscription key:

Python scripts

To setup your python environment, install the dependencies using the requirements.txt file found in each subdirectory:

$ pip install -r requirements.txt

Alternatively, you can use pipenv:

$ pipenv install

R Notebooks

The notebooks can be run within a Jupyter Notebook server; this can be a server run locally (within a docker container or native) or in the cloud.

Running locally within your native operating system:

$ jupyter notebook

Example directories

This repository has four main directories of examples and tutorials.

CropLens AI Examples

Notebook demonstrating how to use Agrimetrics GraphQL API to obtain crop predictions.

Field Explorer Examples

Examples of how to use Python to access Agrimetrics' REST APIs. These provide weather, crop and soil information attributed to individual fields.

Geospatial Workflow Examples

Notebooks demonstrating how to use Agrimetrics' GraphQL API using R. The examples demonstrate how to access static and timeseries geospatial datasets available through the API.

GraphQL Examples

Examples and tutorials of how to use Agrimetrics' GraphQL API. This API provides access to all of our queryable data, including premium data such as field boundaries and satellite observations of fields (Verde data -- see below).

SAR Examples

A notebook demonstrating how to train a crop growth model to SAR data.

Verde Examples

Examples and tutorials of how to use Agrimetrics' GraphQL API to access Airbus Crop Analytics data (previously known as Verde). This is our premium data set containing crop measurements derived from satellite observations of the UK.

Further Reading

  • Agrimetrics Developer Portal - full API documentation
  • GeoJSON - GeoJSON specification
  • JSON-LD - JSON-LD specification
  • Pandas - Python Data Analysis Library used by these examples
  • matplotlib - Python 2D plotting library used by these examples
  • GraphQL - GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data.
  • pipenv - Pipenv is a dependency manager for Python projects. If you’re familiar with Node.js’ npm or Ruby’s bundler, it is similar in spirit to those tools.
  • Jupyter lab

api-examples's People

Contributors

afernando79 avatar mattsmiagri avatar pstrato-agrimetrics avatar kaberger avatar darkling avatar timlehner avatar aahmed84 avatar peterhall-agrimetrics avatar dependabot[bot] avatar njdnet101 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.