The TLcdNetCDFModelDecoder will generate certain cache files when decoding a source (e.g. GRIB index files). If the default directory for these cache files needs to be changed, it can be done by setting the system property com.luciad.netcdf.cachedir.

Setting this property prevents issues with creating cache files in case the default cache directory is non-writable.

The system property can be set by providing it as a VM argument, e.g. -Dcom.luciad.netcdf.cachedir=<a-valid-path>. The directory provided in the system property will be created if it is not available.