Skip to content
Snippets Groups Projects
Commit 78418284 authored by Jacques Grelet's avatar Jacques Grelet
Browse files

test with xarray, OK, move to tests dir

parent 71e8e80f
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
#
# https://pumatest.nerc.ac.uk/cgi-bin/cf-checker.pl?cfversion=auto
import xarray as xr
import os
......@@ -7,6 +9,7 @@ import os
ncfiles = ['netcdf/OS_PIRATA-FR29_CTD.nc', 'netcdf/OS_PIRATA-FR29_XBT.nc','netcdf/OS_PIRATA-FR29_LADCP.nc']
for ncfile in ncfiles:
print(f"Read {ncfile}")
ds = xr.open_dataset(ncfile)
print(ds)
df = ds.to_dataframe()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment