Skip to content

Commit

Permalink
Replace latency with temporalResolution in layer info (#898)
Browse files Browse the repository at this point in the history
**Related Ticket:**

Closes #897 

### Description of Changes

Temporal resolution (data periodicity) is more relevant to show in the
short layer info than latency (data publication frequency).

This PR swaps the two in the LayerInfo object and updates the docs.

### Validation / Testing

Check out the Exploration and Analysis interface (`/exploration`) and
see the temporalResolution information on the layer cards as well as in
the header of the layer info modal.
  • Loading branch information
hanbyul-here authored Mar 25, 2024
2 parents d78db82 + aaf2450 commit 5d2e318
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/content/frontmatter/layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ Example:
info:
source: NASA
spatialExtent: Global
latency: Monthly
temporalResolution: Monthly
unit: 10¹⁵ molecules cm⁻²
```

Expand All @@ -280,9 +280,9 @@ This key indicates the origin or the provider of the data.
`string`
This key describes s the geographic coverage of the data.

**info.latency**
**info.temporalResolution**
`string`
This key refers to the frequency with which the data is updated or made available.
This key describes the periodicity of the data.

**info.unit**
`string`
Expand Down
2 changes: 1 addition & 1 deletion mock/datasets/data-from-ghg.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ layers:
info:
source: NASA
spatialExtent: Global
latency: Monthly
temporalResolution: Monthly
unit: 10¹⁵ molecules cm⁻²
- id: casa-gfed-co2-flux-hr
stacApiEndpoint: https://ghg.center/api/stac
Expand Down
2 changes: 1 addition & 1 deletion mock/datasets/no2.data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ layers:
info:
source: NASA
spatialExtent: Global
latency: Monthly
temporalResolution: Monthly
unit: 10¹⁵ molecules cm⁻²
- id: no2-monthly-2
stacCol: no2-monthly
Expand Down
2 changes: 1 addition & 1 deletion parcel-resolver-veda/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ declare module 'veda' {
export interface LayerInfo {
source: string;
spatialExtent: string;
latency: string;
temporalResolution: string;
unit: string;
}
export interface DatasetLayer extends DatasetLayerCommonProps {
Expand Down

0 comments on commit 5d2e318

Please sign in to comment.