Commit 1f47362a authored by PONCELET's avatar PONCELET
Browse files

Merge branch 'binder' into 'master'

Add dataset loading for binder

See merge request !3
parents dd44166d a4a919fe
#!/bin/bash
mkdir data
cd data
wget https://www.seanoe.org/data/00475/58652/data/88575.zip --no-check-certificate
unzip 88575.zip
rm 88575.zip
......@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "4f215451-f873-47a3-b0cf-efe39f21f1ea",
"metadata": {
"tags": []
......@@ -14,31 +14,16 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "30ae36d9-cfe8-4245-80b4-fda078680de5",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "961f28dc9a5f44e385b57d2fb5d4d03a",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"VBox(children=(FileChooser(path='C:\\Users\\cponcele', filename='', title='HTML(value='', layout=Layout(display=…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"#create a NCExplorer with a default path\n",
"\n",
"explorer=NCExplorer(starting_path=r'~')\n",
"explorer=NCExplorer(starting_path=r'../data/PELGAS13_003_20130428_145634_EK60.nc')\n",
"explorer.show()"
]
},
......
......@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"id": "12069e1e-414a-4702-a29a-a61e0eb31b03",
"metadata": {},
"outputs": [],
......@@ -12,7 +12,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"id": "70a50099-f9f2-4164-b332-fe2a1ab74ef7",
"metadata": {},
"outputs": [],
......@@ -34,54 +34,28 @@
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[1mChecking file fC:\\data\\datasets\\SonarNetcdf\\PELGAS13_003_20130428_145634_1.nc\u001b[0m\n",
"\u001b[1mChecking file f../data/PELGAS13_003_20130428_145634_EK60.nc\u001b[0m\n",
"Checking group /\n",
"Checking group /Environment\n",
"\u001b[91mMissing dimension frequency in /Environment\u001b[0m\n",
"\u001b[91mMissing mandatory coordinate variable frequency in /Environment\u001b[0m\n",
"\u001b[91mMissing mandatory variable absorption_indicative in /Environment\u001b[0m\n",
"\u001b[91mMissing mandatory variable sound_speed_indicative in /Environment\u001b[0m\n",
"Checking group /Environment/Sound_speed_profile\n",
"Checking group /Platform\n",
"\u001b[91mMissing enum declaration transducer_type_t expected in /Platform\u001b[0m\n",
"Checking group /Platform/Position\n",
"Checking group /Platform/Position/1\n",
"Checking group /Platform/Attitude\n",
"Checking group /Platform/Attitude/2\n",
"Checking group /Platform/Attitude/1\n",
"Checking group /Platform/Attitude/3\n",
"Checking group /Platform/Attitude/0\n",
"Checking group /Provenance\n",
"\u001b[91mMissing dimension filenames in /Provenance\u001b[0m\n",
"\u001b[91mMissing mandatory variable source_filenames in /Provenance\u001b[0m\n",
"Checking group /Sonar\n",
"\u001b[91mMissing enum declaration beam_stabilisation_t expected in /Sonar\u001b[0m\n",
"\u001b[91mMissing enum declaration beam_t expected in /Sonar\u001b[0m\n",
"\u001b[91mMissing enum declaration conversion_equation_t expected in /Sonar\u001b[0m\n",
"\u001b[91mMissing enum declaration transmit_t expected in /Sonar\u001b[0m\n",
"Checking group /Sonar/Beam_group1\n",
"\u001b[91mMissing vlen type declaration sample_t expected in /Sonar/Beam_group1\u001b[0m\n",
"\u001b[91mMissing vlen type declaration angle_t expected in /Sonar/Beam_group1\u001b[0m\n",
"Checking group /Sonar/Beam_group2\n",
"\u001b[91mMissing vlen type declaration sample_t expected in /Sonar/Beam_group2\u001b[0m\n",
"\u001b[91mMissing vlen type declaration angle_t expected in /Sonar/Beam_group2\u001b[0m\n",
"Checking group /Sonar/Beam_group3\n",
"\u001b[91mMissing vlen type declaration sample_t expected in /Sonar/Beam_group3\u001b[0m\n",
"\u001b[91mMissing vlen type declaration angle_t expected in /Sonar/Beam_group3\u001b[0m\n",
"Checking group /Sonar/Beam_group4\n",
"\u001b[91mMissing vlen type declaration sample_t expected in /Sonar/Beam_group4\u001b[0m\n",
"\u001b[91mMissing vlen type declaration angle_t expected in /Sonar/Beam_group4\u001b[0m\n",
"Checking group /Sonar/Beam_group5\n",
"\u001b[91mMissing vlen type declaration sample_t expected in /Sonar/Beam_group5\u001b[0m\n",
"\u001b[91mMissing vlen type declaration angle_t expected in /Sonar/Beam_group5\u001b[0m\n",
"Checking group /Sonar/Beam_group6\n",
"\u001b[91mMissing vlen type declaration sample_t expected in /Sonar/Beam_group6\u001b[0m\n",
"\u001b[91mMissing vlen type declaration angle_t expected in /Sonar/Beam_group6\u001b[0m\n",
"\u001b[1mC:\\data\\datasets\\SonarNetcdf\\PELGAS13_003_20130428_145634_1.nc : 23 errors, 0 warnings\u001b[0m\n"
"Checking group /Environment\n",
"\u001b[1m../data/PELGAS13_003_20130428_145634_EK60.nc : 0 errors, 0 warnings\u001b[0m\n"
]
}
],
"source": [
"file=r\"C:\\data\\datasets\\SonarNetcdf\\PELGAS13_003_20130428_145634_1.nc\"\n",
"file=r\"../data/PELGAS13_003_20130428_145634_EK60.nc\"\n",
"checker = SonarChecker()\n",
"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