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

update and bug on toml path

parent da9da360
No related branches found
No related tags found
No related merge requests found
......@@ -23,11 +23,14 @@ def writeNetCDF(cfg, device, fe, r):
# create netcdf file
fileName = "{}/OS_{}_{}.nc".format(cfg['global']
['netcdf'], cfg['cruise']['cycleMesure'], device)
if not os.path.exists(cfg['global']['ascii']):
os.makedirs(cfg['global']['ascii'])
print(f"writing netCDF file: {fileName}", end='', flush=True)
if not os.path.exists(cfg['global']['netcdf']):
os.makedirs(cfg['global']['netcdf'])
nc = Dataset(fileName, "w", format="NETCDF3_CLASSIC")
logging.debug(' ' + nc.data_model)
print('writing netCDF file: {}'.format(fileName), end='')
# create dimensions
# n is number of profiles, m the max size of profiles
......
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