Skip to content

Commit 719709c

Browse files
committed
add example in the README
1 parent 3b9d21d commit 719709c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,21 @@ given WCS endpoint.
1313

1414
# Examples
1515

16+
```python
17+
from wcs.service import WebCoverageService
1618

19+
wcs_endpoint = "https://ows.rasdaman.org/rasdaman/ows"
20+
service = WebCoverageService(wcs_endpoint)
21+
22+
# get a list of all coverages, with basic information such
23+
# as a WGS 84 bounding box and a native bounding box
24+
coverages = service.list_coverages()
25+
avg_land_temp = coverages['AvgLandTemp']
26+
27+
# get full information for a particular coverage by
28+
# parsing its DescribeCoverage document from the WCS server
29+
full_avg_land_temp = service.list_full_info('AvgLandTemp')
30+
```
1731

1832
# Contributing
1933

0 commit comments

Comments
 (0)