-
Notifications
You must be signed in to change notification settings - Fork 392
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 vic_sample_data submodule #387
Changes from all commits
922b457
7cd0239
79fa34d
b129584
b7cc654
f824c2e
15f6721
020bcb4
910b747
b766001
1d45452
786e968
87ccdf2
9668b58
2c1db0b
1818fb0
8b85bfc
df26058
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "samples/VIC_sample_data"] | ||
path = samples/VIC_sample_data | ||
url = https://github.com/jhamman/VIC_sample_data |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
VIC Sample Data | ||
=============== | ||
|
||
This directory includes complete sample datasets to run VIC. Sample datasets that are currently included in the VIC source code repository: | ||
|
||
## Image Driver | ||
1. Stehekin - 10-days of forcings | ||
|
||
## Classic Driver | ||
|
||
1. Stehekin - 10-days of forcings | ||
|
||
## Summary of Datasets: | ||
1. Stehekin: This is a distributed datasets that covers the entire Stehekin River Basin, located in Washington State, USA. | ||
2. More will be added soon! | ||
|
||
## Getting the Datasets: | ||
The VIC sample datasets are in a "git submodule", to download the datasets to this directory, simply run the following command: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The first comma -> period (right?) |
||
|
||
``` | ||
./get_sample_data.bash | ||
``` | ||
|
||
You may also download the sample data to another location on your computer by specifying the directory in which you would like to add the data: | ||
|
||
``` | ||
git clone https://github.com/jhamman/VIC_sample_data.git path/folder_name | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#! /usr/bin/env bash | ||
|
||
set -e | ||
|
||
# save a few directory names | ||
CWD=$PWD | ||
SAMPLES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is the full path of this file. (e.g. |
||
|
||
git submodule init | ||
|
||
# Get the sample data | ||
cd $SAMPLES/VIC_sample_data | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this directory guaranteed to exist already? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes. This is the empty submodule that we're going to fill with the next commands. |
||
git fetch origin | ||
# TODO - get data branch/tag that aligns with the state of the VIC repo. | ||
git checkout master | ||
|
||
# back to the original directory | ||
cd $CWD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
datasets --> dataset
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a note that more datasets will be added...