-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGls2005Dataset.java
executable file
·85 lines (75 loc) · 2.91 KB
/
Gls2005Dataset.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Gls2005Dataset.java defines the GLS2005 Landsat dataset details
//----------------------------------------------------------------
import java.awt.Color;
import java.awt.Dimension;
public class Gls2005Dataset extends LandsatSensor
{
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 with no parameters (plain GLS)
Gls2005Dataset(imgViewer applet)
{
this(applet, "GLS2005", // sensorName (menu, Scene List title)
"GLS2005", // datasetName (Shopping Cart, searchForScene)
"https://lta.cr.usgs.gov/GLS",
false, // isOrderable
true // isDownloadable
);
}
// Constructor
Gls2005Dataset(imgViewer applet, String sensorName, String datasetName,
String productInfoUrl, boolean isOrderable, boolean isDownloadable)
{
super(applet, sensorName, "gls/gls2005", datasetName,
"showLandsatL1Browse.cgi", "showLandsatL1Metadata.cgi",
"USGS_logo.gif", "http://www.usgs.gov",
productInfoUrl,
null, resolutions, borderX, borderY, Color.YELLOW);
// set the navigation model to the WRS-2 descending model
navModel = new WRS2Model();
// reverse some options set by the base class
hasJulianDateMetadata = false;
hasSwathMode = false;
warnWhenOrderingPoorQuality = false;
qualityLimit = 0;
hasCustomSceneInfoLine = false;
// set the flags for the optional sensor features available
hasNdviLineGraph = true;
this.isOrderable = isOrderable;
this.isDownloadable = isDownloadable;
hasCloudCover = false;
useCloudCoverForDefaultScenes = false;
dataHasGaps = true;
downloadFileFormat = "GeoTIFF";
slowDownloadStart = true;
// set the dataset name for the CGI scripts since for L1T
// we have to pass a dataset name
cgiDatasetName = "GLS2005";
}
// method to return the starting year for the sensor
//--------------------------------------------------
public int getStartingYear()
{
return 2003;
}
// method to return the ending year for the sensor (or -1 if collections
// continue)
//----------------------------------------------------------------------
public int getEndingYear()
{
return 2008;
}
// 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;
}
}