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

check if netcdf output dir exist

remove netcdf directory
parent ede6253d
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
*_ladcp
*.xbt
*_xbt
#*.nc
*.nc
*.xml
*.yml
*.stackdump
......@@ -30,5 +30,5 @@ oceano.cfg
basemap
/dist
/ascii
#/netcdf
/netcdf
/odv
......@@ -15,6 +15,10 @@ def writeNetCDF(cfg, device, fe, r, variables_1D):
variables = variables_1D.copy()
dims_2D = ['time', 'depth']
# create the output directory if it does not exist
if not os.path.exists(cfg['global']['netcdf']):
os.makedirs(cfg['global']['netcdf'])
# create netcdf file
fileName = "{}/OS_{}_{}.nc".format(cfg['global']
['netcdf'], cfg['cruise']['cycleMesure'], device)
......
File deleted
File deleted
File deleted
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