This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * XDR implementation on POSIX file interface, with buffering | |
| * | |
| * Copyright (C) 1992, University Corp for Atmospheric Research | |
| * | |
| * This set of routines implements a XDR on a POSIX file descriptor. | |
| * XDR_ENCODE serializes onto the descriptor, XDR_DECODE de-serializes | |
| * from the descriptor. As in stdio, we buffer i/o. This XDR is most | |
| * useful when the descriptor actually represents a file. It | |
| * corrects some performance problems with xdrstdio_getpos() and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stddef.h> | |
| #include <stdint.h> | |
| #include <stdlib.h> | |
| // Copyright 2019 Google LLC. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| #include "fuzzer_temp_file.h" | |
| #include "third_party/hdf4/hdf/src/hdf.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # Copyright 2022 Google LLC. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| import pathlib | |
| import pprint | |
| import xarray as xr | |
| ignore_attrs = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "description": "Contents of `description.md`.\n", | |
| "gee:type": "image", | |
| "id": "ORG/SUBORG/dataset/v5", | |
| "keywords": [ | |
| "coral", | |
| "ocean" | |
| ], | |
| "license": "CC-BY-4.0", | |
| "links": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright 2022 Google LLC. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| local id = 'ORG/SUBORG/dataset/v5'; | |
| local subdir = 'ORG'; | |
| local ee_const = import 'earthengine_const.libsonnet'; | |
| local ee = import 'earthengine.libsonnet'; | |
| local spdx = import 'spdx.libsonnet'; | |
| local version = 'v5'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright 2022 Google LLC. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| local ee_const = import 'earthengine_const.libsonnet'; | |
| { | |
| producer_provider(name, url): | |
| { name: name, roles: ['producer', 'licensor'], url: url }, | |
| processor_provider(name, url): | |
| { name: name, roles: ['processor'], url: url }, | |
| extent(xmin, ymin, xmax, ymax, start, end):: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright 2022 Google LLC. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| { | |
| stac_version: '1.0.0', | |
| stac_type: { | |
| catalog: 'Catalog', | |
| collection: 'Collection', | |
| item: 'Item', | |
| }, | |
| media_type: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [[ ! -f orig/Atlantic_ESRI_MOS.zip ]] | |
| then | |
| mkdir orig | |
| pushd orig | |
| # https://ccom.unh.edu/theme/law-sea |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright 2022 Google LLC. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| def check_stac_collection(collection: Dict[str, Any]): | |
| # Field that must always be present | |
| assert jp.parse('$.id').find(collection) | |
| assert jp.parse('$.extent').find(collection) | |
| assert jp.parse('$.extent.spatial').find(collection) | |
| assert jp.parse('$.extent.temporal').find(collection) | |
| assert jp.parse('$.\'gee:terms_of_use\'').find(collection) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright 2019 Google LLC. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // | |
| // Hycom in Earth Engine demo by Kurt Schwehr | |
| // | |
| // https://code.earthengine.google.com/b475a38642624aca72fecafaa3f311ab | |
| var extent = ee.Geometry.Polygon([-180, 80.48, -180, -80.48, 180, -80.48, 180, 80.48], null, false); | |
| // var date_range = ee.Filter.date('2018-08-01', '2018-08-10'); |