Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing titiler xarray with micasa #1198

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ APP_DESCRIPTION=User interface of module VEDA
[email protected]

API_RASTER_ENDPOINT='https://staging.openveda.cloud/api/raster'
API_STAC_ENDPOINT='https://staging.openveda.cloud/api/stac'
API_STAC_ENDPOINT='https://earth.gov/ghgcenter/api/stac'

# If the app is being served in from a subfolder, the domain url must be set.
# For example, if the app is served from /mysite:
Expand Down
17 changes: 12 additions & 5 deletions app/scripts/components/common/map/style-generators/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,18 @@ export function useZarr({ id, stacCol, stacApiEndpointToUse, date, onStatusChang
async function load() {
try {
onStatusChange?.({ status: S_LOADING, id });
const data:ZarrResponseData = await requestQuickCache({
url: `${stacApiEndpointToUse}/collections/${stacCol}`,
method: 'GET',
controller
});
const data: ZarrResponseData = {
assets: {
zarr: {
href: 's3://nasa-veda-scratch/MiCASA/MiCASA_v1_flux_x3600_y1800_monthly_200301.nc4'
}
}
};
// await requestQuickCache({
// url: `${stacApiEndpointToUse}/collections/${stacCol}`,
// method: 'GET',
// controller
// });

setAssetUrl(data.assets.zarr.href);
onStatusChange?.({ status: S_SUCCEEDED, id });
Expand Down
Loading