Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| # Source: https://stackoverflow.com/a/33597599/5391200 | |
| from pylab import * | |
| cmap = cm.get_cmap('seismic', 5) # matplotlib color palette name, n colors | |
| for i in range(cmap.N): | |
| rgb = cmap(i)[:3] # will return rgba, we take only first 3 so we get rgb | |
| print(matplotlib.colors.rgb2hex(rgb)) | |
| cmap = cm.get_cmap('plasma', 101) |
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
| // Load VIIRS NDVI - to be summarized by longitude bins. | |
| var viirsNdvi = ee.ImageCollection("NOAA/VIIRS/001/VNP13A1") | |
| .select('NDVI').first(); | |
| // Load lat/lon image - select the longitude band. | |
| var latLon = ee.Image.pixelLonLat().select('longitude'); | |
| // Make a list of longitude bin start values. | |
| var step = 5; // longitude step | |
| var lonStarts = ee.List.sequence(-90, 90-step, step); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| /** | |
| * @license | |
| * Copyright 2020 Google | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * |