forked from google/earthengine-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcatalog.jsonnet
28 lines (25 loc) · 838 Bytes
/
catalog.jsonnet
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
// Change the id to be the subdirectory that contains this file.
local id = 'TEMPLATE';
local subdir = id;
local description = importstr 'description.md';
local ee_const = import 'earthengine_const.libsonnet';
local ee = import 'earthengine.libsonnet';
local basename = 'catalog';
local base_filename = basename + '.json';
local base_url = ee_const.catalog_base + subdir + '/';
local parent_url = ee_const.catalog_base + 'catalog.json';
local self_url = base_url + base_filename;
{
stac_version: ee_const.stac_version,
type: ee_const.stac_type.catalog,
id: id,
title: id,
description: description,
links: [
ee.link.root(),
ee.link.parent(parent_url),
ee.link.self_link(self_url),
// TODO(google): Enable link when changing gee:status
// ee.link.child_collection('TEMPLATE_IMAGE_V2_1', base_url),
],
}