agroclimatology 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +25 -3
- data/agroclimatology.gemspec +1 -1
- data/lib/agroclimatology/version.rb +1 -1
- data/lib/agroclimatology.rb +0 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d72a0ebe4e9ff3716e6e0b13b3e0faee8ef486a7
|
|
4
|
+
data.tar.gz: 471f62eab6082332e96a59e51607ceede40b13c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84838700d023860c35e31fd115cd6658b9f7221ac0ef09952a1da4a0ef40bbb8d8f5b0716edd8e9737c0238a8450381afa2d0e2e40076351877cd3956f827854
|
|
7
|
+
data.tar.gz: df879cf2c0711afa55618edb9e8a24c61b2da42396df26fc58993a522da0409447bcf76e4dcbcd879c2ab0f1f6dfb5a17f61a64c8de594bfa3daa225d46bf7e5
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Agroclimatology
|
|
2
2
|
[](https://badge.fury.io/rb/agroclimatology)
|
|
3
|
-
[](https://travis-ci.org/agruby/agroclimatology)
|
|
4
4
|
|
|
5
5
|
Ruby client for interacting with the [NASA (POWER) Agroclimatology Web Resource](http://power.larc.nasa.gov/cgi-bin/agro.cgi)
|
|
6
6
|
|
|
@@ -49,11 +49,33 @@ Fetch solar radiation data for Woombye, QLD, Australia from 2015 - 2016
|
|
|
49
49
|
Agroclimatology.fetch(-26.660446, 152.964647, 2015, 2016)
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
+
```json
|
|
53
|
+
[
|
|
54
|
+
{
|
|
55
|
+
":year":"2015",
|
|
56
|
+
":day_of_year":"1",
|
|
57
|
+
":rad_atmosphere":"42.84",
|
|
58
|
+
":rad_surface":"27.47",
|
|
59
|
+
":rad_flux":"34.78"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
":year":"2015",
|
|
63
|
+
":day_of_year":"2",
|
|
64
|
+
":rad_atmosphere":"43.27",
|
|
65
|
+
":rad_surface":"23.00",
|
|
66
|
+
":rad_flux":"34.81"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
etc...
|
|
70
|
+
},
|
|
71
|
+
]
|
|
72
|
+
```
|
|
73
|
+
|
|
52
74
|
### Output
|
|
53
75
|
|
|
54
76
|
Returns JSON output containing records for every day included in year_start - year_end range
|
|
55
77
|
- **year** - Year
|
|
56
|
-
- **
|
|
78
|
+
- **day_of_year** - Day of Year
|
|
57
79
|
- **rad_atmosphere** - Average Top-of-atmosphere Insolation (MJ/m^2/day)
|
|
58
80
|
- **rad_surface** - Average Insolation Incident On A Horizontal Surface (MJ/m^2/day)
|
|
59
81
|
- **rad_flux** - Average Downward Longwave Radiative Flux (MJ/m^2/day)
|
|
@@ -64,7 +86,7 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
|
64
86
|
|
|
65
87
|
## Contributing
|
|
66
88
|
|
|
67
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
89
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/agruby/agroclimatology.
|
|
68
90
|
|
|
69
91
|
## License
|
|
70
92
|
|
data/agroclimatology.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = ["johnstonbrc@gmail.com"]
|
|
11
11
|
spec.summary = %q{Ruby client for interacting with the NASA (POWER) Agroclimatology Web Resource}
|
|
12
12
|
spec.description = %q{Ruby client for interacting with the NASA (POWER) Agroclimatology Web Resource}
|
|
13
|
-
spec.homepage = "https://github.com/
|
|
13
|
+
spec.homepage = "https://github.com/agruby/agroclimatology"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
16
16
|
spec.bindir = "exe"
|
data/lib/agroclimatology.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: agroclimatology
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bryce Johnston
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-05-
|
|
11
|
+
date: 2016-05-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -100,7 +100,7 @@ files:
|
|
|
100
100
|
- bin/setup
|
|
101
101
|
- lib/agroclimatology.rb
|
|
102
102
|
- lib/agroclimatology/version.rb
|
|
103
|
-
homepage: https://github.com/
|
|
103
|
+
homepage: https://github.com/agruby/agroclimatology
|
|
104
104
|
licenses:
|
|
105
105
|
- MIT
|
|
106
106
|
metadata: {}
|
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
120
120
|
version: '0'
|
|
121
121
|
requirements: []
|
|
122
122
|
rubyforge_project:
|
|
123
|
-
rubygems_version: 2.
|
|
123
|
+
rubygems_version: 2.6.4
|
|
124
124
|
signing_key:
|
|
125
125
|
specification_version: 4
|
|
126
126
|
summary: Ruby client for interacting with the NASA (POWER) Agroclimatology Web Resource
|