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

convert all python files with dos2unix

parent 78418284
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
#import matplotlib.pyplot as plt
#plt.rcParams.update({'font.size': 20, 'figure.figsize': (10, 8)})
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()
#!/usr/bin/env python
#
# https://pumatest.nerc.ac.uk/cgi-bin/cf-checker.pl?cfversion=auto
import xarray as xr
import os
#import matplotlib.pyplot as plt
#plt.rcParams.update({'font.size': 20, 'figure.figsize': (10, 8)})
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()
print(df)
\ No newline at end of file
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