Code Monkey home page Code Monkey logo

climateexplorer's People

Contributors

acha11 avatar ledpup avatar mcrawshaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

verbosevirtuoso

climateexplorer's Issues

Fill the gaps in the data by guessing

  • some tempurature sensors have days of missing records
  • we need an algorithm that is fairly simple and relatively easy to understand (for high-school level) to guess the missing values
  • input for algorithm will be the existing dataset
  • explain how it works

Clicking a year should zoom the chart to that year, broken down by months

  • Selected shows a monthly view
  • Displays when warmest/coolest year selected
  • Displays when a year in the climate stripe selected
  • Displays when a year on the graph is selected
  • Compare with the month averages for the whole period
  • When selecting from chart, select by data type and adjustment type

CORS issue coming up when trying to add the temp difference dataset

Access to fetch at 'https://wa-climate-explorer.azurewebsites.net/dataset' from origin 'https://www.climateexplorer.net' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

ClimateExplorer.Visualiser.Pages.Index[0]
System.Net.Http.HttpRequestException: TypeError: Failed to fetch
---> System.Runtime.InteropServices.JavaScript.JSException: TypeError: Failed to fetch
at System.Net.Http.BrowserHttpHandler.SendAsync(HttpRequestMessage , CancellationToken )

Still an occasional error when setting up map

Unhandled exception rendering component: Cannot read properties of null (reading 'addLayer')
TypeError: Cannot read properties of null (reading 'addLayer')
at i.addTo (https://unpkg.com/[email protected]/dist/leaflet.js:5:63275)
at https://www.climateexplorer.net/_framework/blazor.webassembly.js:1:3332
at new Promise ()
at Object.beginInvokeJSFromDotNet (https://www.climateexplorer.net/_framework/blazor.webassembly.js:1:3306)
at Object.St [as invokeJSFromDotNet] (https://www.climateexplorer.net/_framework/blazor.webassembly.js:1:59938)
at _mono_wasm_invoke_js_blazor (https://www.climateexplorer.net/_framework/dotnet.6.0.9.o04gyxc4n3.js:1:173403)
at wasm://wasm/008e5b7a:wasm-function[158]:0x163db
at wasm://wasm/008e5b7a:wasm-function[106]:0x70e3
at wasm://wasm/008e5b7a:wasm-function[105]:0x5ffc
at wasm://wasm/008e5b7a:wasm-function[7273]:0x18069d

Microsoft.JSInterop.JSException: Cannot read properties of null (reading 'addLayer')
TypeError: Cannot read properties of null (reading 'addLayer')
at i.addTo (https://unpkg.com/[email protected]/dist/leaflet.js:5:63275)
at https://www.climateexplorer.net/_framework/blazor.webassembly.js:1:3332
at new Promise ()
at Object.beginInvokeJSFromDotNet (https://www.climateexplorer.net/_framework/blazor.webassembly.js:1:3306)
at Object.St [as invokeJSFromDotNet] (https://www.climateexplorer.net/_framework/blazor.webassembly.js:1:59938)
at _mono_wasm_invoke_js_blazor (https://www.climateexplorer.net/_framework/dotnet.6.0.9.o04gyxc4n3.js:1:173403)
at wasm://wasm/008e5b7a:wasm-function[158]:0x163db
at wasm://wasm/008e5b7a:wasm-function[106]:0x70e3
at wasm://wasm/008e5b7a:wasm-function[105]:0x5ffc
at wasm://wasm/008e5b7a:wasm-function[7273]:0x18069d
at Microsoft.JSInterop.JSRuntime.d__16`1[[Microsoft.JSInterop.IJSObjectReference, Microsoft.JSInterop, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext()
at DPBlazorMapLibrary.Layer.AddTo(Map map)
at DPBlazorMapLibrary.LayerFactory.CreateMarkerAndAddToMap(LatLng latLng, Map map, MarkerOptions options)
at ClimateExplorer.Visualiser.Shared.MapContainer.EnsureMapMarkers()
at ClimateExplorer.Visualiser.Shared.MapContainer.OnParametersSetAsync()
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task , ComponentState )

New groupings

  • restore the month (including year) grouping
  • Year + week
  • Year + day

"Download data" gives location 1's data after navigating from a location 1 with temp + rainfall to location 2 without rainfall (e.g. Queenstown)

Repro:

  • Load site - defaults to Hobart, with Temp + rainfall
  • Switch location to Queenstown (I went via map)
  • Observe: series for "rainfall" is removed because that data's not available for Queenstown (this is expected in the UI, unsure whether it contributes to the bug, though)
  • Click "Download data"
  • Expected result: downloaded CSV includes just temperature data, just for Queenstown
  • Actual result: downloaded data is for Hobart, and includes temp + rainfall

UI automated tests

  • Install and configure Playwright.dev
  • Write a test that opens CE, expands the map and clicks a location. Verify new location renders
  • Get tests to run in pipeline

Preset cleanup

  • Remove some of the noise in temp and adjust vs raw - don't need some of those basic options
  • Move temp anomaly into temp, as a variant

Arguments is not defined when clicking HandleOnYearFilterChange

This started after fixing the scroll to top bug (#71)

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: arguments is not defined
ReferenceError: arguments is not defined
at window.scrollTo (http://localhost:5298/:135:45)
at http://localhost:5298/_framework/blazor.webassembly.js:1:57433
at At.Fe._internal.renderBatch (http://localhost:5298/_framework/blazor.webassembly.js:1:57448)
at Object.St [as invokeJSFromDotNet] (http://localhost:5298/_framework/blazor.webassembly.js:1:60134)
at _mono_wasm_invoke_js_blazor (http://localhost:5298/_framework/dotnet.6.0.10.b0dxplog91.js:1:195300)
at wasm://wasm/00971d2a:wasm-function[3308]:0xc6102
at wasm://wasm/00971d2a:wasm-function[167]:0xd5d3
at wasm://wasm/00971d2a:wasm-function[166]:0xbd73
at wasm://wasm/00971d2a:wasm-function[2815]:0xabebf
at wasm://wasm/00971d2a:wasm-function[1619]:0x6fc80
Microsoft.JSInterop.JSException: arguments is not defined

Fix links on blog header

  • Title should take you back to the main web application
  • Home and About should go to their pages

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.