Coder Social home page Coder Social logo

hurricane-irma's People

Contributors

aaarcher-usgs avatar dblodgett-usgs avatar jesse-ross avatar mbucknell avatar mwernimont avatar wdwatkins avatar

Stargazers

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

Watchers

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

hurricane-irma's Issues

what are we doing with the "non-featured" gages?

Are we showing them? do we support any interactions with them?

If we aren't doing mouseovers or onClick events on them, we can massively shrink their contribution to the DOM by converting them from 1,000's of elements, to a single

image

depending on what we do w/ them, if they don't have interactions we should also lower their z-index so they aren't getting in the way of other mouse events.

MVP proposal for reddit post

We are so close, but I think we need a few things to push this over the edge:

  • a processor that figures out which times the sites exceeded flood stage, and add a class for them (like f-4 f-5 f-6 f-7) if a gage was at or over flood stage for timesteps 4, 5, 6, and 7. js would set these to a different color for those timesteps. At each timestep I assume jquery would select all "gages" and set them to the normal color/class, and then select the flood class for that timestep and set that differently. Would need to make sure we also handled hover events on gages during a timestep transition.
  • add a second sparkline for "over flood" that is a different color and has no opacity until it is revealed. This would sit on top of the existing sparkline for the site.
  • use css transitions and transforms to do two things for the storm location: 1: make it move smoothly between various locations (transitions) and 2) make it so there is only one actual dot that we move around, avoiding the dual dot bug that happens on some mobile devices when you scroll or try to pinch zoom during the animation

--- should we also do the following? ------

  • use precip grid instead of the counties. Despite this being denser, I think it would actually improve the animation rendering and reduce the file size because the square/rect elements would be to much simpler than counties. Can draw all squares and use the states border as the clipPath
  • use cumulative precip instead of hourly. It may be too boring w/o this (see #118 for this option)
  • have the storm change color/name when it is no longer a hurricane

thumbnails created

  • map w/ correct style from css
  • precip for one time stamp
  • hurricane path?

Start using the <use/> elements for the complex paths

This way we can replicate the geometries without paying extra cost to the DOM - so we can have invisible mouseover zones and emphasize borders on hover that would otherwise be covered by adjacent polygons. Another benefit of this for the sparklines is being able to pull the emphasized line to the top level, so none of the others are overlapping. This currently looks like:
image

thumbnails correctly sized

@mwernimont

Can you resize the thumbnails for the appropriate platform? I Slack messaged you the actual files.

Facebook

1560 width
820 height

Twitter

560 width
300 height

VIZLAB Landing page

400 width
400 height

Instagram

1080 width
1080 height

NOTICE: upcoming default branch name change

The master branch of this repository will soon be renamed from master to main, as part of a coordinated change across the USGS-R and USGS-VIZLAB organizations. This is part of a broader effort across the git community to use more inclusive language. For instance, git, GitHub, and GitLab have all changed or are in the process of changing their default branch name.

We will make this change early in the week of February 6, 2022. The purpose of this issue is to give notification of the change and provide information on how to make it go smoothly.

If you wish to make the change yourself rather than wait for us to do it, it can either be done manually or through some convenience functions in the usethis package.

  • From your local version of the repository, change the remote branch name using either of the methods detailed below: usethis or the manual method.
  • Verify that the local branches are changed as well (if using usethis) or change them yourselves (if using the manual method).
  • If you have collaborators on this repository, let them know that they will need to change their forked/local repos either by running usethis::git_default_branch_rediscover() or by steps 2 and 3 of the manual method. Point them to this issue to facilitate the process!
  • Search within your repository for "master" so that you can change references (e.g. URLs pointing to specific commit points of files) to point to "main" instead.
  • When you are done, feel free to close this issue!

Using usethis

Note: usethis must be version 2.1.2 or higher

  1. Navigate to your project's working directory.
  2. Double-check that you have git credentials set up for HTTPS by running usethis::gh_token_help(). If you have not yet set up git credentials for HTTPS, you can do so by creating a GitHub PAT and using gitcreds::gitcreds_set() to register it with git. The PAT must have at least "repo" scope. gitcreds_gitcreds_set
  3. Rename default branches locally and on all remote repositories at once with usethis::git_default_branch_rename(). For more details see here.
  4. Verify that the work was successful by running usethis::git_default_branch().

Manual Method

  1. Go to <your repository> -> Settings -> Branches and edit the default branch from master to main.
  2. All members should update their local settings so that new repositories created locally will have the correct default branch: git config --global init.defaultBranch main.
  3. All members must update their local settings to match the change to this repository. They can either do this with usethis::git_default_branch_rediscover() (see above) or else run the following:
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a

Cleanup viz storm region specification.

We've got some sprawl in the specification of the storm area. Some places need a list of states, other places just take a simple polygon. There's also a view box for the whole viz.

We should have the view-limits function handle all this stuff with:
Option 1) two inputs, a bounding box and a storm area.
Option 2) Or we could just use the bounding box and not have a separate storm area.

This will involve one output from view-limits that is a spatial polygon in lat/lon projection for selection of counties or other spatial units and a named list like: list(FL = "florida") for use in selection of things by state.

This should fit into the existing viz cleanly and clean up a bit of sprawl we've generated.

Site Filter on Full Timeseries

See here: https://github.com/USGS-VIZLAB/hurricane-irma/blob/master/scripts/process/process.storm_sites.R#L34

Currently only filters on forecast time series. We should be filtering on forecast AND observed.

Also, I don't think this every go used and could probably be removed? https://github.com/USGS-VIZLAB/hurricane-irma/blob/master/scripts/process/process.storm_sites.R#L45

I think we SHOULD keep the period of record filter in. It's currently in use because so many sites went over flood.

thumbnail gif?

Loop through multiple time stamps to create a gif. Would be nice

flooding sparklines

Working on how to get the sparklines to have an overlay color that only shows when it is above flood stage. I think the best way to do this is to create <rect> clip-paths that are specific to the flooding indices:

<clipPath id="test-path">
	<rect width="50" height="100%" />
</clipPath>

which does this if the clip-path='url(#test-path)'

image

unable to createMakefiles()

get error:

Error in needsTimestampOld(item.info) : fetchTimestamp.view_limits must be implemented for view-limits, probably in an R file in 'scripts:'

Thoughts?

Thanks!

IOOS Coastal Gages?

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.