USGS-VIZLAB / how-to-gdp

Explanation of how the Geo Data Portal works.
Creative Commons Zero v1.0 Universal
1 stars 4 forks source link

Map precip figs #42

Closed lindsayplatt closed 6 years ago

lindsayplatt commented 6 years ago

Make the maps showing the "melted" precip values look nicer w/ ggmap and a map background for context. Add in a fetch step to determine the cumulative average preicp for the original Yahara to include on the final storm transpose figure.

Thinking of separating the "melt" figure code into a different function so that it doesn't have a background. These will need a key added.

related to #25 and #26

wdwatkins commented 6 years ago

@lindsaycarr can you add a screenshot?

lindsayplatt commented 6 years ago

Ugh, they both look ugly .... how did that happen?!?

Bleh some weirdness is going on here: image

lindsayplatt commented 6 years ago

The weird splicing is because the polygon is getting cut off by the limits and then it tries to connect the points that are still on the map into a polygon. Working on the fix now.

lindsayplatt commented 6 years ago

Now the storm transpose figure looks like this: image

And the precip melt one looks like this. The shape is there, but very very very light. We will need to work on this. image

lindsayplatt commented 6 years ago

when I merged the upstream stuff the make failed. Will investigate on Monday

lindsayplatt commented 6 years ago

@wdwatkins had to add mode="wb" to the download.file function for the raster data to get it to work correctly on Windows. Do you have any idea if that will cause it to fail for other operating systems?

wdwatkins commented 6 years ago

The docs say that just tells it that it is a binary file, so I think it should be fine.