Class ResamplingPreset
java.lang.Object
org.esa.snap.core.gpf.common.resample.ResamplingPreset
Created by obarrile on 13/04/2019.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResamplingPreset(String resamplingPresetName, ArrayList<BandResamplingPreset> bandResamplingPresets) ResamplingPreset(String resamplingPresetName, BandResamplingPreset[] bandResamplingPresets) -
Method Summary
Modifier and TypeMethodDescriptiongetBandResamplingPreset(String bandName) booleanisCompatibleWithProduct(Product product) static ResamplingPresetloadResamplingPreset(File file) Loads a resampling preset from the given filestatic ResamplingPresetloadResamplingPreset(String string, String presetName) Loads a resampling preset from an StringbooleansaveToFile(File file) Save the resampling preset to a filebooleansaveToFile(File file, Product product) Save resampling preset to a file, but copying only the bandresampling presets for the bands contained in product.
-
Field Details
-
FILENAME_EXTENSION
- See Also:
-
STRING_SEPARATOR
- See Also:
-
-
Constructor Details
-
ResamplingPreset
public ResamplingPreset(String resamplingPresetName, ArrayList<BandResamplingPreset> bandResamplingPresets) -
ResamplingPreset
-
-
Method Details
-
loadResamplingPreset
Loads a resampling preset from the given file- Parameters:
file- the file- Returns:
- the resampling preset, never null
- Throws:
IOException- if an I/O error occurs
-
loadResamplingPreset
Loads a resampling preset from an String- Parameters:
string- the string- Returns:
- the resampling preset, never null
-
getResamplingPresetName
-
getBandResamplingPresets
-
getBandResamplingPreset
-
saveToFile
Save the resampling preset to a file- Parameters:
file-- Returns:
- true if success
-
saveToFile
Save resampling preset to a file, but copying only the bandresampling presets for the bands contained in product.- Parameters:
file-product-- Returns:
-
isCompatibleWithProduct
-