Skip to content

Commit

Permalink
Merge pull request #7 from gantian127/release-0.1.4
Browse files Browse the repository at this point in the history
Release 0.1.4
  • Loading branch information
gantian127 authored Apr 26, 2023
2 parents 291196a + 5a344a8 commit 3eb2219
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ Parameter settings
* soc: Soil organic carbon content
* ocs: Soil organic carbon stock
* ocd: Organic carbon densities
* wrb: World Reference Base (WRB) classes and probabilities

* **coverage_id**: The identifier of a coverage(map) from a map service. Each map service supports
multiple coverages. To get a list of the coverage id from a map service, use "get_coverage_list()" method.
Expand Down
10 changes: 8 additions & 2 deletions soilgrids/soilgrids.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ class SoilGrids:
'units': 'hg/dm3'
},

'wrb': {
'name': 'World Reference Base (WRB) classes and probabilities',
'link': 'https://maps.isric.org/mapserv?map=/map/wrb.map',
'units': 'none'
},

} # service info at http://maps.isric.org/ https://www.isric.org/explore/soilgrids/faq-soilgrids

def __init__(self):
Expand All @@ -92,8 +98,8 @@ def metadata(self):
def map_services(self):
string_list = []
for key, value in SoilGrids.MAP_SERVICES.items():
string_list.append('service id: {} \nvariable name: {} \nservice link: {}\n'.
format(key, value['name'], value['link']))
string_list.append('service id: {} \nvariable name: {} \nvariable units: {}\nservice link: {}\n'.
format(key, value['name'], value['units'], value['link']))
print('\n'.join(string_list))

return None
Expand Down

0 comments on commit 3eb2219

Please sign in to comment.