GithubHelp home page GithubHelp logo

averyshikanai / daymet-single-pixel-batch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ornldaac/daymet-single-pixel-batch

0.0 0.0 0.0 37 KB

Automating the download of multiple locations for the Daymet Single Pixel Tool

License: Other

Java 52.28% Shell 21.99% Python 25.73%

daymet-single-pixel-batch's Introduction

Batch Download of Daymet Single Pixel Data

This repo contains methods for automating the download of multiple locations of Daymet data from the Single Pixel Extraction Tool at once. More documentation is available under Daymet Scripts to Automate Single Pixel Data Extraction.

Methods

  1. Bash
  2. Java
  3. Python

Sample Text Files

In order to download several data points at once, we will create a file that specifies each coordinate we would like to download. This file can also specify Daymet variables and Daymet years (1980 - most recently published year) that you would like. Let's assume the file name is latlon.txt but it can be your choosing.

Example 1: Simple pairs of coordinates:

45.3, -97.0
46.3, -97.0
47.3, -97.0

Example 2: Providing a name for each coordinate that will be downloaded:

file1.csv, 45.3, -97.0
file2.csv, 46.3, -97.0
file3.csv, 47.3, -97.0

Example 3: Specifying variables:

Variables: tmin, prcp, dayl
45.3, -97.0
46.3, -97.0
47.3, -97.0

Example 4: Specifying years:

Years: 2012, 2013, 2014, 2015, 2016
45.3, -97.0
46.3, -97.0
47.3, -97.0

Example 5: Specifying variables and years:

Variables: tmin, prcp, dayl
Years: 2012, 2013, 2014, 2015, 2016
45.3, -97.0
46.3, -97.0
47.3, -97.0

Example 6: A coordinate to be saved as a specified filename. The first two points will be saved as file1.csv and file2.csv, while the third will be saved as the name given by the Daymet server (tileID_lat_lon_time.csv).

Variables: tmin, prcp, dayl
Years: 2012, 2013, 2014, 2015, 2016
file1.csv, 45.3, -97.0
file2.csv, 46.3, -97.0
47.3, -97.0

Daymet Variables:

Variable Name Description (units)
dayl Duration of the daylight period (seconds/day)
prcp Daily total precipitation (mm/day)
srad Incident shortwave radiation flux density(W/m2)
swe Snow water equivalent (kg/m2)
tmax Daily maximum 2-meter air temperature (°C)
tmin Daily minimum 2-meter air temperature (°C)
vp Water vapor pressure (Pa)

Daymet Years:

1980 - the most recent published year

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.