https://github.com/pazzo83/noaadata.jl
Wrapper of the NOAA Climate Data API in Julia
https://github.com/pazzo83/noaadata.jl
climate data julia
Last synced: 10 months ago
JSON representation
Wrapper of the NOAA Climate Data API in Julia
- Host: GitHub
- URL: https://github.com/pazzo83/noaadata.jl
- Owner: pazzo83
- License: other
- Created: 2017-06-02T12:51:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-02-08T16:00:50.000Z (almost 6 years ago)
- Last Synced: 2025-03-22T04:51:15.607Z (11 months ago)
- Topics: climate, data, julia
- Language: Julia
- Homepage: https://github.com/pazzo83/NOAAData.jl
- Size: 22.5 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# NOAAData
[](https://travis-ci.org/pazzo83/NOAAData.jl)
[](https://coveralls.io/github/pazzo83/NOAAData.jl?branch=master)
[](http://codecov.io/github/pazzo83/NOAAData.jl?branch=master)
This package is a wrapper for NOAA observation data. Currently two data sets are supported:
* GHCND - Daily observations
* GSOM - Monthly observations
Note: This package only supports Julia v0.6
### Install
```julia
Pkg.add("NOAAData")
```
### Usage
Usage is fairly simple - an API key from NOAA is required:
First, create the NOAA data object:
```julia
apikey = ""
noaa = NOAA(apikey)
```
Let's get some daily ob data from Central Park, NY (You must use the GHCND station id, which for Central Park is: GHCND:USW00094728)
```julia
stationid = "GHCND:USW00094728"
startdate = Date(2015, 1, 1)
enddate = Date(2015, 12, 31)
```
The main method to get data is: get_data_set:
```julia
results = get(GHCND(), noaa, startdate, enddate, stationid)
```
This returns a NOAADataResult object, which you can use to generated more meaningful data structures.
Currently this package supports DataTables and IndexedTables:
```julia
dt = DataTable(results)
it = IndexedTable(results)
```
See those packages for more info on working with data sets in those structures.
More info about the API and the data fields is available here: