Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update compliance-checker notebook with web API #37

Merged
merged 4 commits into from
Sep 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"4.2.0+11.gd85b593\n"
"5.1.0\n"
]
}
],
Expand Down Expand Up @@ -104,10 +104,7 @@
"source": [
"# Path to the Scripps Pier Data.\n",
"\n",
"\n",
"# See https://github.com/Unidata/netcdf-c/issues/1299\n",
"# for the reason we need to append `#fillmismatch` to the URL.\n",
"url = \"http://data.ioos.us/thredds/dodsC/deployments/rutgers/ru29-20150623T1046/ru29-20150623T1046.nc3.nc#fillmismatch\""
"url = \"https://gliders.ioos.us/thredds/fileServer/deployments/rutgers/ru29-20150623T1046/ru29-20150623T1046.nc3.nc\""
]
},
{
Expand All @@ -131,7 +128,7 @@
"\n",
"return_value, errors = ComplianceChecker.run_checker(\n",
" ds_loc=url,\n",
" checker_names=[\"cf\", \"acdd\"],\n",
" checker_names=[\"cf:1.9\", \"acdd\"],\n",
" verbose=True,\n",
" criteria=\"normal\",\n",
" skip_checks=None,\n",
Expand All @@ -155,11 +152,13 @@
"\n",
"--------------------------------------------------------------------------------\n",
" IOOS Compliance Checker Report \n",
" Version 5.1.0 \n",
" Report generated 2023-09-13T13:58:44Z \n",
" acdd:1.3 \n",
"http://wiki.esipfed.org/index.php?title=Category:Attribute_Conventions_Dataset_Discovery\n",
"--------------------------------------------------------------------------------\n",
" Corrective Actions \n",
"ru29-20150623T1046.nc3.nc#fillmismatch has 11 potential issues\n",
"ru29-20150623T1046.nc3.nc has 11 potential issues\n",
"\n",
"\n",
" Highly Recommended \n",
Expand All @@ -168,29 +167,29 @@
"* Conventions does not contain 'ACDD-1.3'\n",
"\n",
"variable \"conductivity\" missing the following attributes:\n",
"* coverage_content\n",
"* coverage_content_type\n",
"\n",
"variable \"density\" missing the following attributes:\n",
"* coverage_content\n",
"* coverage_content_type\n",
"\n",
"variable \"platform_meta\" missing the following attributes:\n",
"* coverage_content\n",
"* coverage_content_type\n",
"* standard_name\n",
"\n",
"variable \"pressure\" missing the following attributes:\n",
"* coverage_content\n",
"* coverage_content_type\n",
"\n",
"variable \"salinity\" missing the following attributes:\n",
"* coverage_content\n",
"* coverage_content_type\n",
"\n",
"variable \"temperature\" missing the following attributes:\n",
"* coverage_content\n",
"* coverage_content_type\n",
"\n",
"variable \"u\" missing the following attributes:\n",
"* coverage_content\n",
"* coverage_content_type\n",
"\n",
"variable \"v\" missing the following attributes:\n",
"* coverage_content\n",
"* coverage_content_type\n",
"\n",
"\n",
" Recommended \n",
Expand All @@ -204,44 +203,6 @@
"\n",
"time_coverage_extents_match\n",
"* Failed to retrieve and convert times for variables time.\n",
"\n",
"\n",
"--------------------------------------------------------------------------------\n",
" IOOS Compliance Checker Report \n",
" cf:1.6 \n",
" http://cfconventions.org \n",
"--------------------------------------------------------------------------------\n",
" Corrective Actions \n",
"ru29-20150623T1046.nc3.nc#fillmismatch has 5 potential issues\n",
"\n",
"\n",
" Errors \n",
"--------------------------------------------------------------------------------\n",
"§3.4 Ancillary Data\n",
"* lat_qc is not a variable in this dataset\n",
"* lon_qc is not a variable in this dataset\n",
"\n",
"§3.5 Flags\n",
"* precise_lat_qc's flag_meanings and flag_values should have the same number of elements.\n",
"* precise_lon_qc's flag_meanings and flag_values should have the same number of elements.\n",
"\n",
"§5.6 Horizontal Coorindate Reference Systems, Grid Mappings, Projections\n",
"* longitude is not associated with a coordinate defining true latitude and sharing a subset of dimensions\n",
"* longitude is not associated with a coordinate defining true longitude and sharing a subset of dimensions\n",
"* latitude is not associated with a coordinate defining true latitude and sharing a subset of dimensions\n",
"* latitude is not associated with a coordinate defining true longitude and sharing a subset of dimensions\n",
"* time is not associated with a coordinate defining true latitude and sharing a subset of dimensions\n",
"* time is not associated with a coordinate defining true longitude and sharing a subset of dimensions\n",
"\n",
"§9.1 Features and feature types\n",
"* Different feature types discovered in this dataset: mapped-grid (u, v, time, longitude, latitude), trajectory-profile-incomplete (pressure, temperature, conductivity, salinity, density, platform_meta, depth)\n",
"\n",
"\n",
" Warnings \n",
"--------------------------------------------------------------------------------\n",
"§2.3 Naming Conventions\n",
"* attribute trajectory:_Encoding should begin with a letter and be composed of letters, digits, and underscores\n",
"* attribute wmo_id:_Encoding should begin with a letter and be composed of letters, digits, and underscores\n",
"\n"
]
}
Expand All @@ -262,7 +223,17 @@
}
],
"metadata": {
"_draft": {
"nbviewer_url": "https://gist.github.com/68144718926fb68097cfebcf8aab012a"
},
"anaconda-cloud": {},
"gist": {
"data": {
"description": "code_gallery/data_management_notebooks/2017-05-14-running_compliance_checker.ipynb",
"public": true
},
"id": "68144718926fb68097cfebcf8aab012a"
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
Expand Down
Loading