-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from initze/053_dev
053 dev
- Loading branch information
Showing
27 changed files
with
477 additions
and
357 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
from noaaplotter import * | ||
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
#!/usr/bin/python | ||
# -*- coding: utf-8 -*- | ||
# Imports | ||
import argparse | ||
|
||
from noaaplotter.utils.download_utils import download_from_noaa | ||
|
||
|
||
def main(): | ||
""" | ||
Main Function | ||
:return: | ||
""" | ||
##### Parse arguments ##### | ||
parser = argparse.ArgumentParser(description="Parse arguments.") | ||
|
||
parser.add_argument( | ||
"-o", | ||
dest="output_file", | ||
type=str, | ||
required=True, | ||
default="data/data.csv", | ||
help="csv file to save results", | ||
) | ||
|
||
parser.add_argument( | ||
"-t", dest="token", type=str, required=False, default="", help="NOAA API token" | ||
) | ||
|
||
parser.add_argument( | ||
"-sid", | ||
dest="station_id", | ||
type=str, | ||
required=False, | ||
default="", | ||
help='NOAA Station ID, e.g. "GHCND:USW00026616" for Kotzebue, only if loading through NOAA API', | ||
) | ||
|
||
parser.add_argument( | ||
"-loc", | ||
dest="loc_name", | ||
type=str, | ||
required=False, | ||
default="", | ||
help="Location name", | ||
) | ||
|
||
parser.add_argument( | ||
"-dt", | ||
dest="datatypes", | ||
type=list, | ||
required=False, | ||
default=["TMIN", "TMAX", "PRCP", "SNOW"], | ||
) | ||
|
||
parser.add_argument( | ||
"-start", | ||
dest="start_date", | ||
type=str, | ||
required=True, | ||
help='start date of plot ("yyyy-mm-dd")', | ||
) | ||
|
||
parser.add_argument( | ||
"-end", | ||
dest="end_date", | ||
type=str, | ||
required=True, | ||
help='end date of plot ("yyyy-mm-dd")', | ||
) | ||
|
||
parser.add_argument( | ||
"-n_jobs", | ||
dest="n_jobs", | ||
type=int, | ||
required=False, | ||
default=1, | ||
help="number of parallel processes", | ||
) | ||
|
||
args = parser.parse_args() | ||
|
||
download_from_noaa( | ||
output_file=args.output_file, | ||
start_date=args.start_date, | ||
end_date=args.end_date, | ||
datatypes=args.datatypes, | ||
noaa_api_token=args.token, | ||
loc_name=args.loc_name, | ||
station_id=args.station_id, | ||
n_jobs=args.n_jobs, | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0
noaaplotter/dataset.py → noaaplotter/utils/dataset.py
100644 → 100755
File renamed without changes.
Oops, something went wrong.