Commit f9cb0c93 authored by BERGER's avatar BERGER
Browse files

Ajout exemple ES type EK80

parent a7a90e81
%% Cell type:markdown id: tags:
# This notebook is an example of a few dump of ADCP data
%% Cell type:markdown id: tags:
## import some libraries and prepare notebook
%% Cell type:code id: tags:
``` python
%matplotlib inline
%load_ext autoreload
%autoreload 2
import matplotlib.pyplot as plt
import numpy as np
import math
import matplotlib.pyplot as plt
plt.rcParams['figure.dpi'] = 270
#use importer to solve relative path
import importer
```
%% Cell type:code id: tags:
``` python
#import some netcdf helper
from sonar_netcdf.utils.nc_reader import NcReader
```
%% Cell type:code id: tags:
``` python
#help(NcReader.dump_content)
```
%% Cell type:code id: tags:
``` python
#help(NcReader.dump_groups)
```
%% Cell type:markdown id: tags:
## Set file path
%% Cell type:code id: tags:
``` python
file_path= "C:/Users/lberger/Desktop/PELGAS21/PELGAS19/RUN012/PELGAS19_012_20190507_042828_01_1.xsf.nc"
```
%% Cell type:code id: tags:
``` python
#open the file
reader = NcReader(file_path)
```
%% Cell type:markdown id: tags:
The ncReader is mainly used as an interface to ease reading of variable lenght datasets (like backscatter_r) and to reduced dimensions to always plot a max 2 variable
%% Cell type:markdown id: tags:
# Show Sonar data
%% Cell type:markdown id: tags:
## Display backscatter
%% Cell type:code id: tags:
``` python
values=reader.dump_content(root="Sonar/Beam_group1/backscatter_r",cmap="virilis",vmin=-80,vmax=-30)
```
%% Cell type:code id: tags:
``` python
```
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