Skip to content

fix: make variables a repeat query params instead of comma separated#1987

Open
slesaad wants to merge 2 commits into
mainfrom
fix/variables-into-url
Open

fix: make variables a repeat query params instead of comma separated#1987
slesaad wants to merge 2 commits into
mainfrom
fix/variables-into-url

Conversation

@slesaad
Copy link
Copy Markdown
Member

@slesaad slesaad commented May 11, 2026

Description

titiler-cmr expects variables to be a repeat param instead of comma separated

@netlify
Copy link
Copy Markdown

netlify Bot commented May 11, 2026

Deploy Preview for veda-ui ready!

Name Link
🔨 Latest commit 2e303ff
🔍 Latest deploy log https://app.netlify.com/projects/veda-ui/deploys/6a0348b68232c10009a06595
😎 Deploy Preview https://deploy-preview-1987--veda-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@slesaad slesaad changed the title fix: make variable a repeat query params instead of comma separated fix: make variables a repeat query params instead of comma separated May 12, 2026
@slesaad slesaad marked this pull request as ready for review May 12, 2026 15:44
@slesaad slesaad requested a review from dzole0311 May 12, 2026 15:45
Copy link
Copy Markdown
Collaborator

@dzole0311 dzole0311 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested using the daily MiCASA dataset with the following sourceParams:

    sourceParams:
      concept_id: C3273639213-GES_DISC
      backend: xarray
      variables:
      - NPP
      - Rh
      expression: b1/b2

Tiles render correctly with variables=NPP&variables=Rh (repeat params) on the PR branch.

Image

Note: when passing multiple variables, an expression is required (titiler-cmr returns a 500 without one since it can't colormap a multi-band array directly).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants