-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMrlc2001RADataset.java
executable file
·64 lines (54 loc) · 2.01 KB
/
Mrlc2001RADataset.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Mrlc2001RADataset.java defines the 2001 Reflectance Adjusted
// MRLC dataset details
//--------------------------------------------------------------------
import java.awt.Color;
public class Mrlc2001RADataset extends MrlcDataset
{
private static int[] resolutions = {1000,240};
private static final int[] borderX = {-4,4,4,-4};
// 4 corner highlight X border offsets
private static final int[] borderY = {-4,-4,4,4};
// 4 corner highlight Y border offsets
// Constructor
Mrlc2001RADataset(imgViewer applet)
{
super(applet, "MRLC/MTBS Reflectance", "mrlc_2001_ra","MRLC2K_SITC_REF",
"https://lta.cr.usgs.gov/MRLC2001",
resolutions, borderX, borderY, Color.YELLOW);
numQualityValues = 0;
// override the default scene id hint
sceneIdHint = new String("Enter a 21 character scene ID");
// set the navigation model to the WRS-2 descending model
navModel = new WRS2Model();
// enable downloading for the data
isOrderable = false;
downloadFileFormat = "tarred NDF";
isDownloadable = true;
slowDownloadStart = true;
// the CGI script was written to look for just MRLC2K_SITC
cgiDatasetName = "MRLC2K_SITC";
}
// method to return the starting year for the sensor
//--------------------------------------------------
public int getStartingYear()
{
return 1982;
}
// method to return the ending year for the sensor (or -1 if collections
// continue)
//----------------------------------------------------------------------
public int getEndingYear()
{
return -1;
}
// method to return the estimated size (in bytes) of an image file at the
// indicated resolution
//-----------------------------------------------------------------------
public int getImageFileSize(int resolution)
{
if (resolution == 1000)
return 35000;
else
return 120000;
}
}