Skip to content

Commit

Permalink
Merge pull request #485 from NASA-IMPACT/develop
Browse files Browse the repository at this point in the history
[Prod] Update veda-config to v0.18.0
  • Loading branch information
aboydnw authored Nov 7, 2024
2 parents 7d12f1f + 01cf0a3 commit c4570ca
Show file tree
Hide file tree
Showing 13 changed files with 106 additions and 26 deletions.
4 changes: 2 additions & 2 deletions datasets/CMIP-winter-median-pr.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ layers:
layerId: CMIP245-winter-median-pr
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
Expand Down Expand Up @@ -81,7 +81,7 @@ layers:
layerId: CMIP585-winter-median-pr
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
Expand Down
4 changes: 2 additions & 2 deletions datasets/CMIP-winter-median-ta.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ layers:
layerId: CMIP245-winter-median-ta
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -82,7 +82,7 @@ layers:
layerId: CMIP585-winter-median-ta
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down
2 changes: 1 addition & 1 deletion datasets/FLDAS-soilmoisture-anomalies.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ layers:
layerId: SoilMoi00_10cm_tavg
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down
75 changes: 75 additions & 0 deletions datasets/GPM_3IMERGDF.data.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
id: GPM_3IMERGDF.v07
name: "GPM IMERG Daily Precipitation"
description: "GPM IMERG Final Precipitation L3 1 day 0.1 degree x 0.1 degree"
media:
src: ::file ./gpmimergdaily.png
alt: CMIP6 Near-Surface Air Temperature Screenshot
author:
name: NASA
url:
taxonomy:
- name: Topics
values:
- Climate
layers:
- id: GPM_3IMERGDF.v07
type: cmr
stacCol: GPM_3IMERGDF
tileApiEndpoint: "https://dev-titiler-cmr.delta-backend.com/WebMercatorQuad/tilejson.json"
name: GPM IMERG Final Precipitation L3 1 day 0.1 degree x 0.1 degree
description: "GPM Level 3 IMERG Final Daily 10 x 10 km (GPM_3IMERGDF) accumulated precipitation"
time_density: day
zoomExtent:
- 0
- 20
sourceParams:
tile_scale: 3
resampling: bilinear
variable: precipitation
colormap_name: gnbu
rescale:
- 0
- 46
maxzoom: 12
concept_id: C2723754864-GES_DISC
backend: xarray
legend:
unit:
label:
type: gradient
min: "0 mm/hr"
max: "46 mm/hr"
stops:
[
"#f7fcf0",
"#e6f5e1",
"#d7efd1",
"#c5e8c2",
"#abdeb6",
"#8bd2bf",
"#6bc3c9",
"#4bafd1",
"#3193c2",
"#1878b4",
"#085da0",
"#084081",
]
---

<Block>
<Prose>
# GPM IMERG Final Precipitation L3 1 day 0.1 degree x 0.1 degree V06 (GPM_3IMERGDF)

## Dataset Description

This dataset is the GPM Level 3 IMERG _Final_ Daily 10 x 10 km (GPM_3IMERGDF) derived from the half-hourly GPM_3IMERGHH. The derived result represents the Final estimate of the daily mean precipitation rate in mm/day. The dataset is produced by first computing the mean precipitation rate in (mm/hour) in every grid cell, and then multiplying the result by 24.

Source: [https://disc.gsfc.nasa.gov/datasets/GPM_3IMERGDF_07/summary](https://disc.gsfc.nasa.gov/datasets/GPM_3IMERGDF_07/summary)

## Data Source

The files represented are NetCDF files in GES DISC's Earthdata Cloud bucket and discovered and tiled via a dynamic tiling service using CMR.

</Prose>
</Block>
2 changes: 1 addition & 1 deletion datasets/darnah-flood.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ layers:
layerId: darnah-flood
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
metadata:
source: HLS
Expand Down
18 changes: 9 additions & 9 deletions datasets/global-reanalysis-da.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ layers:
layerId: lis-global-da-evap
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -85,7 +85,7 @@ layers:
layerId: lis-global-da-gpp
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -126,7 +126,7 @@ layers:
layerId: lis-global-da-gws
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -167,7 +167,7 @@ layers:
layerId: lis-global-da-swe
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -209,7 +209,7 @@ layers:
layerId: lis-global-da-streamflow
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -250,7 +250,7 @@ layers:
layerId: lis-global-da-qs
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -291,7 +291,7 @@ layers:
layerId: lis-global-da-qsb
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -332,7 +332,7 @@ layers:
layerId: lis-global-da-tws
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -373,7 +373,7 @@ layers:
layerId: lis-global-da-totalprecip
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down
Binary file added datasets/gpmimergdaily.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions datasets/lahaina-fire.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ layers:
layerId: landsat-nighttime-thermal
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
Expand Down Expand Up @@ -79,7 +79,7 @@ layers:
layerId: hls-swir-falsecolor-composite
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
info:
source: NASA
Expand Down Expand Up @@ -110,7 +110,7 @@ layers:
layerId: hls-bais2-v2
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
Expand Down
4 changes: 2 additions & 2 deletions datasets/snow-projections-diff.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ layers:
layerId: snow-projections-diff-scenario-245
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
Expand Down Expand Up @@ -79,7 +79,7 @@ layers:
layerId: snow-projections-diff-scenario-585
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
Expand Down
4 changes: 2 additions & 2 deletions datasets/snow-projections-median.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ layers:
layerId: snow-projections-median-scenario-245
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down Expand Up @@ -79,7 +79,7 @@ layers:
layerId: snow-projections-median-scenario-585
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')}`;
}
legend:
unit:
Expand Down
2 changes: 1 addition & 1 deletion datasets/twsanomaly.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ layers:
layerId: lis-tws-anomaly
mapLabel: |
::js ({ dateFns, datetime, compareDatetime }) => {
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'DD LLL yyyy')} VS ${dateFns.format(compareDatetime, 'DD LLL yyyy')}`;
if (dateFns && datetime && compareDatetime) return `${dateFns.format(datetime, 'dd LLL yyyy')} VS ${dateFns.format(compareDatetime, 'dd LLL yyyy')}`;
}
legend:
type: gradient
Expand Down
9 changes: 7 additions & 2 deletions docs/SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ This repo contains all the content and configuration needed to setup your own in

The `veda-config` relies on the `veda-ui` submodule.
Use `--recursive` flag when cloning `veda-config`, or initialize the submodules with:

```
git submodule update --init --recursive
```

## Requirements

To set up the development environment for this website, you'll need to install the following on your system:

- [Node](http://nodejs.org/) v16 (To manage multiple node versions we recommend [nvm](https://github.com/creationix/nvm))
- [Node](http://nodejs.org/) (see version in [.nvmrc](../.nvmrc)) (To manage multiple node versions we recommend [nvm](https://github.com/creationix/nvm))
- [Yarn](https://yarnpkg.com/) Package manager

If you use [`nvm`](https://github.com/creationix/nvm), activate the desired Node version:
Expand All @@ -34,11 +36,13 @@ Then, setup the project by running the command below.
## Usage

### Config files

Configuration is done using [dot.env](https://parceljs.org/features/node-emulation/#.env-files) files.

These files are used to simplify the configuration of the app and should not contain sensitive information.

Copy the `.env.local-sample` to `.env.local` to add your configuration variables.

```sh
cp .env.local-sample .env.local
```
Expand All @@ -50,11 +54,12 @@ Get your Mapbox access token from Mapbox Dashboard. Put the key in `.env.local`
## Running the app

To preview the app use:

```
yarn serve
```

This will start the app and make it available at http://localhost:9000.
This will start the app and make it available at <http://localhost:9000>.

If the application is not working properly or erroring when it starts, try cleaning the cache with `yarn clean`.
If the errors persist [open an issue](https://github.com/NASA-IMPACT/veda-config/issues/new) with the problem description.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "veda-config",
"description": "Configuration for Veda",
"version": "0.17.0",
"version": "0.18.0",
"source": "./.veda/ui/app/index.html",
"license": "Apache-2.0",
"scripts": {
Expand Down

0 comments on commit c4570ca

Please sign in to comment.