multicube2netcdf refactored, relates to #367