metadata to NetCDF