Skip to main content
Logo
Submit a request Sign in
What can we help you with?
  1. Welcome to Planet Support
  2. Planet Insights Platform
  3. Custom Scripts

How to Manually Configure Stretch of the Images?

Avatar
Gerri Geary
April 29, 2024 14:50

You can use Custom scripts and type in-the code along the following lines:

function stretch(val, min, max) {
return (val-min)/(max-min);
}
return [
stretch(B04, 0.05, 0.5),
stretch(B03, 0.05, 0.5),
stretch(B02, 0.05, 0.5)]
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.

Articles in this section

  • How Can I Create a Custom Evaluation of Digital Elevation Model (Dem)?
  • What Is the Best Way To Do Cloud Filtering at a Specific AOI?
  • How Can I Access Data in Landsat 8 Quality Assessment Band?
  • What Is Downsampling and Upsampling?
  • How to Manually Configure Stretch of the Images?
  • How To Blend the Index Value Between Two (Or More) Colors Using a Custom Script?
  • How To Write Complex Custom Script Algorithms?
  • How Can I Observe Live Changes of Custom Scripts Directly in the Configurator?
  • How to Handle Long Scripts in EO Browser?
  • How Do I Do Raster Calculation on Bands?
See more

Can't find what you're looking for?

Let us help you!

Submit a request

© Welcome to Planet Support