ncks error when writing over CIFS
ncks
ends up with a permissions error when overwriting a file on a CIFS share; see log output of http://sycamore.corp.isciences.com:9000/job/WSIM%20Monthly%20Run/23/console
ncks
is only used here because exactextract
is generating netCDF outputs (via GDAL) that don't play well with the R ncdf4
package.
Some options:
- avoid overwrite flag in
ncks
and manage temporary files ourselves. This is a quick fix but adds some more complexity to the code. - replace usage of C++ exactextract with R package. The reason for using C++ was performance, but maybe the R package has improved enough that this isn't a big deal. EDIT: R package is still orders of magnitude slower.
- make C++ exactextract generate outputs that
ncdf4
likes. Not likely to be a complete solution; for example, GDAL does not currently compress tabular data files. I plan to fix this but the fix probably won't be available to WSIM for quite some time.
Edited by Dan Baston