/
drill_types.go
64 lines (58 loc) · 1.36 KB
/
drill_types.go
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
package processor
import (
"image"
"time"
"github.com/nci/gsky/metrics"
"github.com/nci/gsky/utils"
pb "github.com/nci/gsky/worker/gdalservice"
)
type GeoDrillRequest struct {
Geometry string
CRS string
Collection string
NameSpaces []string
BandExpr *utils.BandExpressions
Mask *utils.Mask
VRTURL string
StartTime time.Time
EndTime time.Time
ClipUpper float32
ClipLower float32
RasterXSize float64
RasterYSize float64
GrpcConcLimit int
IndexTileXSize float64
IndexTileYSize float64
MetricsCollector *metrics.MetricsCollector
}
type GeoDrillGranule struct {
Path string
NameSpace string
RasterType string
TimeStamps []time.Time
Geometry string
CRS string
VRT string
Means []float64
SampleCounts []int
NoData float64
Approx bool
ClipUpper float32
ClipLower float32
RasterXSize float64
RasterYSize float64
GrpcConcLimit int
MetricsCollector *metrics.MetricsCollector
}
type DrillResult struct {
NameSpace string
Dates []time.Time
Data []*pb.TimeSeries
NoData float64
}
type DrillFileDescriptor struct {
OffX, OffY int
CountX, CountY int
NoData float64
Mask *image.Gray
}