按照示例写出来以后直接OOM了。
ImportSettingNetCDF importSettingNetCDF = new ImportSettingNetCDF();
importSettingNetCDF.setImportMode(ImportMode.OVERWRITE);
importSettingNetCDF.setMultiBandImportMode(MultiBandImportMode.SINGLEBAND);
importSettingNetCDF.setImportingAsGrid(true);
importSettingNetCDF
.setSourceFilePath("D:\\clf\\supermapWork\\NCTest1\\src\\main\\resources\\ImgImport\\CRA40LAND_LAND_20120601_GLB_0P50_DAY_V1_0_0.nc");
importSettingNetCDF.setTargetDatasource(m_desDatasource);
DataImport dataImport = new DataImport();
dataImport.getImportSettings().add(importSettingNetCDF);
dataImport.run();