Skip to content

About

Display gridded data as isobands in a variety of palettes and scenarios

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

interactive-isobands

A project generated from aunty's Svelte project template.

Developing

Create a dev server: npm run dev.

Builder

builder/index.html hosts two builders, picked with ?builder= (see src/components/Builder/routes.ts):

  • ?builder=isobands (default): IsobandsBuilder, for custom isoband maps from a GeoTIFF.
  • ?builder=weather: WeatherBuilder, for configuring the weather iframe below and copying its URL.

Each builder keeps its settings in the URL hash. Switching builder loads the page again, so only one builder's hash store runs at a time.

iframe

Configure with the URL hash, e.g. #startOffset=1&days=6&hide=ATTRIBUTION.

  • start: first day, YYYY-MM-DD. Defaults to today (Sydney).
  • startOffset: days after today to start, e.g. 1 for tomorrow. Ignored if start is set.
  • days: number of days. Defaults to 6.
  • show: |-separated list of TITLE|LEGEND|DATES|ATTRIBUTION to show; anything not listed is hidden.
  • hide: the same list, to hide instead.
  • look: smooth for a gradient across the band thresholds (25 to 45°C). Defaults to stepped bands.
  • region: world for the global forecast on an Equal Earth map, without city dots or state borders. Defaults to Australia.
  • file: filename in each date's folder. Defaults to aus.tiff, or global.tiff for region=world.

Each map is a LayerCake SVG: the raster picture (rendered in a worker, clipped to the land), then state borders, then an HTML layer of PlaceLabels (places listed in src/lib/places.ts, the state and territory capitals). All layers share one fitted projection (RasterLayout).

Publishing (during Aunty Next development)

During Aunty next development, we don't have an aunty release command so you need to run Aunty Next from the development branch. E.g. {aunty app source} should be the git+github:// url of the Aunty Next branch to ensure you have the latest code.

  • npm run build
  • npx {aunty app source} release-check
  • npm version patch or equivalent
  • npx {aunty app source} release

About

Display gridded data as isobands in a variety of palettes and scenarios

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages