Embedding netcdf compilation in rasdaman
|Reported by:||dmisev||Owned by:||dmisev|
|Keywords:||Cc:||pbaumann, mdumitru, vmerticariu|
The NetCDF API finally allows to read data from memory: https://github.com/Unidata/netcdf-c/releases/tag/v4.4.0-rc1
So far it was limited to reading data from a file, requiring a file path to be specified. So in rasdaman source:conversion/netcdf.cc we have to always write the netcdf data to a temporary file first, before loading it into the NetCDF structures, which is inefficient.
It might be worth it to embed compilation of NetCDF within rasdaman, like it is done for GRPC for example, as it will take time for this function to reach Linux distributions. My Ubuntu 16.04 still doesn't have it. Compiling NetCDF should be straightforward as it depends only on HDF5, zlib and curl.