Skip to content

Commit c812c64

Browse files
Sync files from HydroShare
1 parent 791c143 commit c812c64

19 files changed

+1781
-309
lines changed
275 KB
Loading

1cc0fdda275340ff9d6682627d09a3b9/data/contents/compare-observed-and-sos-discharge.ipynb

Lines changed: 565 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
jupyter
2+
hsclient==1.1.6
3+
pandas==2.2.3
4+
earthaccess
5+
xarray
6+
h5netcdf
7+
zarr

1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,57 @@
99
xmlns:rdfs1="http://www.w3.org/2001/01/rdf-schema#"
1010
>
1111
<rdf:Description rdf:about="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml#aggregation">
12-
<dcterms:type rdf:resource="http://www.hydroshare.org/terms/CompositeResource"/>
13-
<citoterms:isDocumentedBy>http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemetadata.xml</citoterms:isDocumentedBy>
1412
<ore:aggregates rdf:resource="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemetadata.xml"/>
15-
<ore:isDescribedBy>http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml</ore:isDescribedBy>
16-
<dc:title>Another Single Notebook -- SWOTVIZ Example</dc:title>
1713
<rdf:type rdf:resource="http://www.openarchives.org/ore/terms/Aggregation"/>
18-
<ore:aggregates rdf:resource="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/contents/example_2.ipynb"/>
14+
<ore:isDescribedBy>http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml</ore:isDescribedBy>
15+
<dc:title>Validating SWORD of Science (SoS) Discharge Estimates with Hydrology Community Discharge Streamflow Observations (SWOT SHCQ)</dc:title>
16+
<ore:aggregates rdf:resource="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/contents/compare-observed-and-sos-discharge.ipynb"/>
17+
<ore:aggregates rdf:resource="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/contents/Global-River-Discharge-from-SWOT.jpg"/>
18+
<citoterms:isDocumentedBy>http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemetadata.xml</citoterms:isDocumentedBy>
19+
<dcterms:type rdf:resource="http://www.hydroshare.org/terms/CompositeResource"/>
20+
<ore:aggregates rdf:resource="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/contents/requirements.txt"/>
1921
</rdf:Description>
20-
<rdf:Description rdf:about="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml">
21-
<dc:creator rdf:resource="http://foresite-toolkit.googlecode.com/#pythonAgent"/>
22-
<dcterms:modified>2025-04-15T14:26:28Z</dcterms:modified>
23-
<ore:describes rdf:resource="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml#aggregation"/>
24-
<rdf:type rdf:resource="http://www.openarchives.org/ore/terms/ResourceMap"/>
25-
<dc:identifier>1cc0fdda275340ff9d6682627d09a3b9</dc:identifier>
22+
<rdf:Description rdf:about="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemetadata.xml">
23+
<citoterms:documents>http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml#aggregation</citoterms:documents>
24+
<ore:isAggregatedBy>http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml#aggregation</ore:isAggregatedBy>
25+
<dc:title>Dublin Core science metadata document describing the HydroShare resource</dc:title>
2626
<dc:format>application/rdf+xml</dc:format>
27-
<dcterms:created>2025-04-15T14:26:28Z</dcterms:created>
27+
</rdf:Description>
28+
<rdf:Description rdf:about="http://www.hydroshare.org/terms/CompositeResource">
29+
<rdfs1:label>Composite Resource</rdfs1:label>
30+
<rdfs1:isDefinedBy>http://www.hydroshare.org/terms</rdfs1:isDefinedBy>
2831
</rdf:Description>
2932
<rdf:Description rdf:about="http://foresite-toolkit.googlecode.com/#pythonAgent">
30-
<foaf:mbox>[email protected]</foaf:mbox>
3133
<foaf:name>Foresite Toolkit (Python)</foaf:name>
34+
<foaf:mbox>[email protected]</foaf:mbox>
3235
</rdf:Description>
33-
<rdf:Description rdf:about="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/contents/example_2.ipynb">
34-
<dc:format>application/ipynb</dc:format>
36+
<rdf:Description rdf:about="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/contents/requirements.txt">
37+
<dc:format>text/plain</dc:format>
3538
<ore:isAggregatedBy>http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml#aggregation</ore:isAggregatedBy>
3639
</rdf:Description>
40+
<rdf:Description rdf:about="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml">
41+
<dcterms:modified>2025-04-23T05:35:44Z</dcterms:modified>
42+
<dcterms:created>2025-04-23T05:35:44Z</dcterms:created>
43+
<dc:format>application/rdf+xml</dc:format>
44+
<ore:describes rdf:resource="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml#aggregation"/>
45+
<dc:identifier>1cc0fdda275340ff9d6682627d09a3b9</dc:identifier>
46+
<rdf:type rdf:resource="http://www.openarchives.org/ore/terms/ResourceMap"/>
47+
<dc:creator rdf:resource="http://foresite-toolkit.googlecode.com/#pythonAgent"/>
48+
</rdf:Description>
49+
<rdf:Description rdf:about="http://www.openarchives.org/ore/terms/ResourceMap">
50+
<rdfs1:label>ResourceMap</rdfs1:label>
51+
<rdfs1:isDefinedBy>http://www.openarchives.org/ore/terms/</rdfs1:isDefinedBy>
52+
</rdf:Description>
3753
<rdf:Description rdf:about="http://www.openarchives.org/ore/terms/Aggregation">
3854
<rdfs1:label>Aggregation</rdfs1:label>
3955
<rdfs1:isDefinedBy>http://www.openarchives.org/ore/terms/</rdfs1:isDefinedBy>
4056
</rdf:Description>
41-
<rdf:Description rdf:about="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemetadata.xml">
57+
<rdf:Description rdf:about="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/contents/Global-River-Discharge-from-SWOT.jpg">
58+
<dc:format>image/jpeg</dc:format>
4259
<ore:isAggregatedBy>http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml#aggregation</ore:isAggregatedBy>
43-
<citoterms:documents>http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml#aggregation</citoterms:documents>
44-
<dc:format>application/rdf+xml</dc:format>
45-
<dc:title>Dublin Core science metadata document describing the HydroShare resource</dc:title>
46-
</rdf:Description>
47-
<rdf:Description rdf:about="http://www.openarchives.org/ore/terms/ResourceMap">
48-
<rdfs1:isDefinedBy>http://www.openarchives.org/ore/terms/</rdfs1:isDefinedBy>
49-
<rdfs1:label>ResourceMap</rdfs1:label>
5060
</rdf:Description>
51-
<rdf:Description rdf:about="http://www.hydroshare.org/terms/CompositeResource">
52-
<rdfs1:label>Composite Resource</rdfs1:label>
53-
<rdfs1:isDefinedBy>http://www.hydroshare.org/terms</rdfs1:isDefinedBy>
61+
<rdf:Description rdf:about="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/contents/compare-observed-and-sos-discharge.ipynb">
62+
<ore:isAggregatedBy>http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9/data/resourcemap.xml#aggregation</ore:isAggregatedBy>
63+
<dc:format>application/ipynb</dc:format>
5464
</rdf:Description>
5565
</rdf:RDF>
Lines changed: 75 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,110 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<rdf:RDF
3-
xmlns:dcterms="http://purl.org/dc/terms/"
43
xmlns:hsterms="https://www.hydroshare.org/terms/"
4+
xmlns:dcterms="http://purl.org/dc/terms/"
5+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
56
xmlns:dc="http://purl.org/dc/elements/1.1/"
67
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
7-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
88
>
9-
<rdf:Description rdf:about="http://www.hydroshare.org/terms/CompositeResource">
10-
<rdfs:label>Composite Resource</rdfs:label>
11-
<rdfs:isDefinedBy rdf:resource="https://www.hydroshare.org/terms/"/>
12-
</rdf:Description>
139
<hsterms:CompositeResource rdf:about="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9">
1410
<dc:relation>
1511
<rdf:Description>
16-
<dcterms:source>Cowan, D. (2025). SWOTVIZ Example Notebooks, HydroShare, http://www.hydroshare.org/resource/ff48614339034212bb7b31cb719c0aa0, accessed on: 04/02/2025</dcterms:source>
12+
<hsterms:isExecutedBy>https://www.hydroshare.org/resource/33c45575b95f45c4bf7335faab67ed36/</hsterms:isExecutedBy>
1713
</rdf:Description>
1814
</dc:relation>
19-
<dc:identifier>
15+
<dc:relation>
2016
<rdf:Description>
21-
<hsterms:hydroShareIdentifier rdf:resource="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9"/>
17+
<dcterms:references>SWOT Discharge Algorithm Working Group (DAWG). 2024. SWOT Level 4 River Discharge Products Version 1. Ver. 1. PO.DAAC, CA, USA. Dataset accessed at https://doi.org/10.5067/SWOT-SOS-V1</dcterms:references>
2218
</rdf:Description>
23-
</dc:identifier>
24-
<dc:date>
25-
<dcterms:modified>
26-
<rdf:value>2025-04-14T15:57:56.285099+00:00</rdf:value>
27-
</dcterms:modified>
28-
</dc:date>
29-
<dc:subject>k2</dc:subject>
30-
<dc:title>Another Single Notebook -- SWOTVIZ Example</dc:title>
19+
</dc:relation>
20+
<dc:subject>Discharge</dc:subject>
21+
<dc:relation>
22+
<rdf:Description>
23+
<dcterms:isPartOf>Cowan, D. (2025). SwotViz Example Notebook Collection, HydroShare, http://www.hydroshare.org/resource/ac6cc75dcb0146cf9cc17a974f4bb08b</dcterms:isPartOf>
24+
</rdf:Description>
25+
</dc:relation>
3126
<dc:creator>
3227
<rdf:Description>
28+
<hsterms:homepage rdf:resource="http://anthonycastronova.com"/>
29+
<hsterms:phone>3399334127</hsterms:phone>
30+
<hsterms:description rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">11</hsterms:description>
3331
<hsterms:organization>CUAHSI</hsterms:organization>
34-
<hsterms:phone>+1 (406) 599-9009</hsterms:phone>
35-
<hsterms:description rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">12389</hsterms:description>
36-
<hsterms:address>VT, US</hsterms:address>
37-
<hsterms:homepage></hsterms:homepage>
32+
<hsterms:hydroshare_user_id rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">11</hsterms:hydroshare_user_id>
33+
<hsterms:address>MA, US</hsterms:address>
3834
<hsterms:creatorOrder rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</hsterms:creatorOrder>
39-
<hsterms:hydroshare_user_id rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">12389</hsterms:hydroshare_user_id>
40-
<hsterms:name>Cowan, Devin</hsterms:name>
41-
<hsterms:ORCID rdf:resource="https://orcid.org/0000-0003-4621-0559"/>
42-
<hsterms:email>[email protected]</hsterms:email>
35+
<hsterms:email>[email protected]</hsterms:email>
36+
<hsterms:ResearchGateID rdf:resource="https://www.researchgate.net/profile/Anthony_Castronova"/>
37+
<hsterms:GoogleScholarID rdf:resource="https://scholar.google.com/citations?user=ScWTFoQAAAAJ&amp;hl=en"/>
38+
<hsterms:ORCID rdf:resource="https://orcid.org/0000-0002-1341-5681"/>
39+
<hsterms:name>Castronova, Anthony M.</hsterms:name>
4340
</rdf:Description>
4441
</dc:creator>
45-
<dc:subject>k3</dc:subject>
46-
<dc:type rdf:resource="http://www.hydroshare.org/terms/CompositeResource"/>
42+
<dc:subject>SWOT SHCQ</dc:subject>
43+
<dcterms:bibliographicCitation>Castronova, A. M., I. Garousi-Nejad (2025). Validating SWORD of Science (SoS) Discharge Estimates with Hydrology Community Discharge Streamflow Observations (SWOT SHCQ), HydroShare, http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9</dcterms:bibliographicCitation>
44+
<dc:subject>Rhine River</dc:subject>
45+
<dc:type>
46+
<rdf:Description rdf:about="http://www.hydroshare.org/terms/CompositeResource">
47+
<rdfs:label>Composite Resource</rdfs:label>
48+
<rdfs:isDefinedBy rdf:resource="https://www.hydroshare.org/terms/"/>
49+
</rdf:Description>
50+
</dc:type>
4751
<dc:relation>
4852
<rdf:Description>
49-
<dcterms:isPartOf>Cowan, D. (2025). SwotViz Example Notebook Collection, HydroShare, http://www.hydroshare.org/resource/ac6cc75dcb0146cf9cc17a974f4bb08b</dcterms:isPartOf>
53+
<dcterms:references>Coss, S. (2024). Surface Water and Ocean Topography Hydrology Community Discharge (SWOT SHCQ), HydroShare, http://www.hydroshare.org/resource/38feeef698ca484b907b7b3eb84ad05b</dcterms:references>
5054
</rdf:Description>
5155
</dc:relation>
52-
<dc:subject>keyword1</dc:subject>
53-
<dc:description>
56+
<dc:date>
57+
<dcterms:modified>
58+
<rdf:value>2025-04-23T05:35:27.480597+00:00</rdf:value>
59+
</dcterms:modified>
60+
</dc:date>
61+
<dc:creator>
5462
<rdf:Description>
55-
<dcterms:abstract>Here is the abstract!</dcterms:abstract>
63+
<hsterms:ORCID rdf:resource="https://orcid.org/0000-0003-2929-3946"/>
64+
<hsterms:ResearchGateID rdf:resource="https://www.researchgate.net/profile/Irene_Garousi-Nejad"/>
65+
<hsterms:name>Garousi-Nejad, Irene</hsterms:name>
66+
<hsterms:description rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">475</hsterms:description>
67+
<hsterms:address>CA, US</hsterms:address>
68+
<hsterms:homepage></hsterms:homepage>
69+
<hsterms:creatorOrder rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">2</hsterms:creatorOrder>
70+
<hsterms:email>[email protected]</hsterms:email>
71+
<hsterms:organization>CUAHSI</hsterms:organization>
72+
<hsterms:GoogleScholarID rdf:resource="https://scholar.google.com/citations?user=dKqI7iAAAAAJ&amp;hl=en"/>
73+
<hsterms:phone></hsterms:phone>
74+
<hsterms:hydroshare_user_id rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">475</hsterms:hydroshare_user_id>
5675
</rdf:Description>
57-
</dc:description>
58-
<dc:rights>
76+
</dc:creator>
77+
<dc:description>
5978
<rdf:Description>
60-
<hsterms:URL rdf:resource="http://creativecommons.org/licenses/by/4.0/"/>
61-
<hsterms:rightsStatement>This resource is shared under the Creative Commons Attribution CC BY.</hsterms:rightsStatement>
79+
<dcterms:abstract>This resource provides a Jupyter notebook designed to evaluate river discharge estimates from the Surface Water and Ocean Topography (SWOT) mission using the SWORD of Science (SoS) dataset. The SWOT SoS products, developed by the Discharge Algorithm Working Group (DAWG), include both unconstrained (satellite-only) and gauge-constrained (calibrated with in-situ data) estimates. In this notebook, we focus on validating the unconstrained discharge estimates using independent streamflow observations obtained through the Surface Water and Ocean Topography Hydrology Community Discharge repository (SWOT SHCQ). The SHCQ serves as a community-driven place for gathering in-situ hydrologic data and plays a critical role in constraining and validating SWOT-derived discharge parameters, particularly within the SWOT Confluence processing framework and in future product releases. By comparing unconstrained estimates to trusted ground-based observations, the notebook provides insights into the performance of SWOT algorithms and supports efforts to enhance the accuracy and usability of SWOT hydrology products across diverse river systems.&#13;
80+
&#13;
81+
This notebook walks users through a hands-on workflow to access and explore SWOT discharge data produced by SoS. These datasets include both unconstrained estimates, which rely solely on SWOT observations and hydrologic modeling, and gauge-constrained estimates, which incorporate in-situ measurements for improved accuracy. Users will learn how to query and open SWOT SoS data in the cloud using the earthaccess API and xarray, identify river reaches of interest (e.g., the Rhine River), visualize those reaches on an interactive map, and extract discharge time series for individual reaches from selected algorithms. By linking satellite-derived estimates with ground-based observations, this workflow supports validation efforts and enhances the usability of SWOT products for local and global hydrologic research.</dcterms:abstract>
6282
</rdf:Description>
63-
</dc:rights>
83+
</dc:description>
84+
<dc:coverage>
85+
<dcterms:box>
86+
<rdf:value>name=Glob; projection=WGS 84 EPSG:4326; units=Decimal degrees; northlimit=89.99; eastlimit=179.99; southlimit=-89.99; westlimit=-179.99</rdf:value>
87+
</dcterms:box>
88+
</dc:coverage>
6489
<dc:language>eng</dc:language>
65-
<dcterms:bibliographicCitation>Cowan, D. (2025). Another Single Notebook -- SWOTVIZ Example, HydroShare, http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9</dcterms:bibliographicCitation>
90+
<dc:subject>SWOTViZ</dc:subject>
6691
<dc:date>
6792
<dcterms:created>
6893
<rdf:value>2025-04-02T18:24:54.854955+00:00</rdf:value>
6994
</dcterms:created>
7095
</dc:date>
96+
<dc:title>Validating SWORD of Science (SoS) Discharge Estimates with Hydrology Community Discharge Streamflow Observations (SWOT SHCQ)</dc:title>
97+
<dc:subject>SWOT</dc:subject>
98+
<dc:rights>
99+
<rdf:Description>
100+
<hsterms:rightsStatement>This resource is shared under the Creative Commons Attribution CC BY.</hsterms:rightsStatement>
101+
<hsterms:URL rdf:resource="http://creativecommons.org/licenses/by/4.0/"/>
102+
</rdf:Description>
103+
</dc:rights>
104+
<dc:identifier>
105+
<rdf:Description>
106+
<hsterms:hydroShareIdentifier rdf:resource="http://www.hydroshare.org/resource/1cc0fdda275340ff9d6682627d09a3b9"/>
107+
</rdf:Description>
108+
</dc:identifier>
71109
</hsterms:CompositeResource>
72110
</rdf:RDF>
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
79bfef4e28354411d80f6397eb14f17f data/contents/example_2.ipynb
2-
45b8073093a2c81fc8084da13fb08d59 data/resourcemap.xml
3-
c24bd73ae61c912f6adbbaead937f22e data/resourcemetadata.xml
1+
848df8d730c7a2c623be9b436bb92cb2 data/contents/Global-River-Discharge-from-SWOT.jpg
2+
bdbd42756b7778adf526c8f9e87159a5 data/contents/compare-observed-and-sos-discharge.ipynb
3+
d41da5657bd920f786fd4d7e3362cd24 data/contents/requirements.txt
4+
9c2b1c62ec0b99556144e554a8717949 data/resourcemap.xml
5+
1d115b2607154a7c0c06369863cc79be data/resourcemetadata.xml

0 commit comments

Comments
 (0)