-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGls2010EO1Dataset.java
executable file
·79 lines (69 loc) · 2.46 KB
/
Gls2010EO1Dataset.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
// Gls2010EO1Dataset.java defines the GLS2010 EO-1 Islands sensor details
// This dataset uses the EO-1 ALI browse but GLS metadata.
//------------------------------------------------------------------------
import java.awt.Dimension;
public class Gls2010EO1Dataset extends EO1Sensor
{
private static int[] resolutions = {1000,240};
// Constructor
Gls2010EO1Dataset
(
imgViewer applet // I: applet reference
)
{
super(applet,"GLS2010 Islands (EO-1)", "gls/gls2010_eo1",
"GLS2010_EO1_ISLANDS", // name to pass to Shopping Cart
"showEO1Browse.cgi", "showLandsatL1Metadata.cgi",
"https://lta.cr.usgs.gov/GLS",
"acqSchedule.html", "",
resolutions);
// reverse some options set by the parent class
hasJulianDateMetadata = false;
hasSwathMode = false;
warnWhenOrderingPoorQuality = false;
qualityLimit = 0;
hasCustomSceneInfoLine = false;
hasLookAngle = false;
// set the flags for the optional sensor features available
hasNdviLineGraph = true;
hasCloudCover = false;
useCloudCoverForDefaultScenes = false;
dataHasGaps = false;
downloadFileFormat = "GeoTIFF";
slowDownloadStart = true;
// set the dataset name for the CGI scripts since for L1T
// we have to pass a dataset name
cgiDatasetName = "GLS2010_EO1";
}
// method to return the starting year for the sensor
//--------------------------------------------------
public int getStartingYear()
{
return 2009;
}
// method to return the ending year for the sensor (or -1 if collections
// continue)
//----------------------------------------------------------------------
public int getEndingYear()
{
return 2011;
}
// method to return a nominal EO-1 ALI scene size in meters
//---------------------------------------------------------
public Dimension getNominalSceneSize()
{
// Same as EO-1 ALI
return new Dimension(37000,42000);
}
// method to return the estimated size (in bytes) of an image file at the
// indicated resolution
//-----------------------------------------------------------------------
public int getImageFileSize(int resolution)
{
// Same as EO-1 ALI
if (resolution == 1000)
return 10000;
else
return 60000;
}
}