Giter Site home page Giter Site logo

Comments (9)

geanders avatar geanders commented on August 24, 2024

In this case, we would need a function to ID the correct basin and then use that to select correct landmask from basin-specific ones.

from stormwindmodel.

geanders avatar geanders commented on August 24, 2024

It looks like this is in Liz's PR (~ 14 MB for landmask file).

We also have a landmask for part of the NW Pacific basin (in the file named "landmask_0p2deg_15to55N_70to140E.csv"). This file is around 900 KB.

landmask_nwpacific <- read_csv("data-raw/landmask_0p2deg_15to55N_70to140E.csv", 
               col_names = c("lon", "lat", "land")) %>% 
  mutate(land = as.factor(land), 
         land = fct_recode(land, land = "1", water = "0"), 
         land = fct_relevel(land, "land"))
ggplot(data = landmask_nwpacific , aes(x = lon, y = lat, color = land)) + 
  geom_point()

image

from stormwindmodel.

geanders avatar geanders commented on August 24, 2024

Here's the new landmask from Liz's PR:

load("data/landmask.rda")
ggplot(data = landmask, aes(x = longitude, y = latitude, color = land)) + 
  geom_point() + 
  geom_vline(aes(xintercept = 360)) + 
  coord_map() + 
  scale_color_manual(values = c("green", "blue"))

image

Here it is zoomed in for North America:

ggplot(data = landmask, aes(x = longitude, y = latitude, color = land)) + 
  geom_point() + 
  geom_vline(aes(xintercept = 360)) + 
  coord_map() + 
  scale_color_manual(values = c("green", "blue")) +
  xlim(c(260, 300)) + 
  ylim(c(15, 50))

image

from stormwindmodel.

geanders avatar geanders commented on August 24, 2024

I don't think we have documentation on the source of the global landmask. Can try to get that from Liz.

from stormwindmodel.

geanders avatar geanders commented on August 24, 2024

We will need to update the documentation (in "R/data.R") if we use this landmask.

from stormwindmodel.

geanders avatar geanders commented on August 24, 2024

As a comparison, here's the North Atlantic landmask we currently have:

ggplot(data = landmask_nwpacific , aes(x = lon, y = lat, color = land)) + 
     geom_point()

image

from stormwindmodel.

geanders avatar geanders commented on August 24, 2024

For global landmask, maybe change so 0/360 is prime meridian and then western Europe in low range? (currently continues past 360 moving past Europe, up to 540 in Pacific)

from stormwindmodel.

geanders avatar geanders commented on August 24, 2024

Illustration of previous comment:

IMG_2015

from stormwindmodel.

geanders avatar geanders commented on August 24, 2024

Here are the lat/lon conventions for IBTrACS:

IMG_2016

from stormwindmodel.

Related Issues (20)

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.