public class WorldClimDownload extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
variableName |
static String |
WORLDCLIM_ORG_FILEBASE |
protected File |
worldClimDir |
| Constructor and Description |
|---|
WorldClimDownload(File worldClimDir,
String variableName) |
| Modifier and Type | Method and Description |
|---|---|
List<File> |
downloadAndExtract()
Download WorldClim file and extract to destination folder.
|
static String |
getFileName(String variableName)
Get download file name for worldclim.org variableName
|
boolean |
haveData()
Check that both .bil and .hdr file exist in worldClimDir for specified
variableName
|
public static String WORLDCLIM_ORG_FILEBASE
protected final File worldClimDir
protected final String variableName
public static String getFileName(String variableName) throws FileNotFoundException
variableName - get source filename for Worldclim variableFileNotFoundException - when variable is not recognizedpublic boolean haveData()
public List<File> downloadAndExtract() throws IOException
IOException - when files cannot be downloaded or extractedCopyright © 2022. All rights reserved.