Skip to content

Commit

Permalink
set max to 98th percentile to improve shading for rcm-ard
Browse files Browse the repository at this point in the history
  • Loading branch information
bo-lu committed Nov 1, 2024
1 parent 1c2b080 commit ae3826a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/search/metadatapage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const MetaDataPage = (props) => {
axios.get(`${EnvGlobals.COG_STATISTICS_URL}`, {params: {url, unscale: 'false', resampling:'nearest', max_size: '1024', categorical: 'false'}}).then((res2)=>{
console.log(res2);
const min=res2.data.b1.min;
const max=res2.data.b1.max;
const max=res2.data.b1.percentile_98;
setTileServiceUrl(`${EnvGlobals.COG_TILESERVICE_URL}?url=${url}&resampling_method=nearest&bidx=1&rescale=${min}%2C${max}`);
setLoading1(false);
});
Expand Down

0 comments on commit ae3826a

Please sign in to comment.