Commit b7084aec authored by cponcele's avatar cponcele
Browse files

Add notebook for sonar_validator.py

parent 74bdadac
......@@ -10,11 +10,5 @@
"outputs": [],
"source": [
"from nc_explorer_widgets import NCExplorer"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "30ae36d9-cfe8-4245-80b4-fda078680de5",
"metadata": {
"tags": []
......
%% Cell type:code id:12069e1e-414a-4702-a29a-a61e0eb31b03 tags:
``` python
import importer #solve relative path import
```
%% Cell type:code id:70a50099-f9f2-4164-b332-fe2a1ab74ef7 tags:
``` python
import glob, os
from sonar_netcdf.sonar_validator import SonarChecker
```
%% Cell type:code id:d0d3560a-5f23-4e0a-8ee5-b7cde00d3f3f tags:
``` python
file=r"C:\data\datasets\SonarNetcdf\PELGAS13_003_20130428_150635_EK60_horizontal.nc"
checker = SonarChecker()
checker.validate_file(file)
```
%% Cell type:code id:c3f1080e-1186-4c7e-a98f-116784326ed8 tags:
``` python
```
......@@ -116,10 +116,10 @@ class SonarChecker:
if __name__ == "__main__":
filename = "c:/data/datasets/netcdfInspector/PELGAS19_012_20190507_042828_01_1.xsf.nc"
checker = SonarChecker()
checker.validate_file(filename)
checker.validate_file(
"c:/data/datasets/netcdfInspector/GLOBE_MERGED_GAZCOGNE3_003_20180829_061940_1.xsf_TO_GAZCOGNE3_003_20180829_070941_1.xsf_v783u7_w_ES333-7C-333000.nc"
)
checker.validate_file("C:\data\datasets\SonarNetcdf\HYDROMOMAR-D20200904-T093757.nc")
import glob, os
#"c:/data/datasets/netcdfInspector/GLOBE_MERGED_GAZCOGNE3_003_20180829_061940_1.xsf_TO_GAZCOGNE3_003_20180829_070941_1.xsf_v783u7_w_ES333-7C-333000.nc"
for file in glob.glob(r"C:\data\datasets\SonarNetcdf\PHOENIX*.nc"):
checker = SonarChecker()
checker.validate_file(file)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment