Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/utils/ee-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ import {
} from './time.js'

const VALUE_LIMIT = 5000
const DEFAULT_SCALE = 1000

// Returns the linear scale in meters of the units of this projection
export const getScale = (image) => image.select(0).projection().nominalScale()
export const getScale = (image) =>
image.select(0).projection().nominalScale().min(DEFAULT_SCALE)

// Makes evaluate a promise
export const getInfo = (instance) =>
Expand Down
Loading