Coder Social home page Coder Social logo

timtrice / hurdat Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 4.0 38.77 MB

HURDAT is a dataset of best-track analysis for Atlantic and NE Pacific cyclones. This R package scrapes and parses that dataset.

Home Page: https://hurdat.timtrice.net/

License: Other

R 98.44% Dockerfile 1.56%
hurricane r weather

hurdat's Introduction

Screenshot

The Hugo Academic Resumé Template empowers you to easily create your job-winning online resumé, showcase your academic publications, and create online courses or knowledge bases to grow your audience.

Get Started Discord
Twitter Follow

Trusted by 250,000+ researchers, educators, and students. Highly customizable via the integrated no-code, widget-based Wowchemy page builder, making every site truly personalized ⭐⭐⭐⭐⭐

Easily write technical content with plain text Markdown, LaTeX math, diagrams, RMarkdown, or Jupyter, and import publications from BibTeX.

Check out the latest demo of what you'll get in less than 10 minutes, or get inspired by our academics and research groups.

The integrated Wowchemy website builder and CMS makes it easy to create a beautiful website for free. Edit your site in the CMS (or your favorite editor), generate it with Hugo, and deploy with GitHub or Netlify. Customize anything on your site with widgets, light/dark themes, and language packs.

We ask you, humbly, to support this open source movement

Today we ask you to defend the open source independence of the Wowchemy website builder and themes 🐧

We're an open source movement that depends on your support to stay online and thriving, but 99.9% of our creators don't give; they simply look the other way.

Hugo Academic Theme for Wowchemy Website Builder

Demo image credits

Latest news

hurdat's People

Contributors

hadley avatar timtrice avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hurdat's Issues

get_hurdat error

Hi @timtrice, I noticed the HURDAT library was no longer on CRAN and when I run get_hurdat(basin=c("AL")) I get the error below.

Error in regexpr(regex, string, perl = TRUE) : 
  invalid regular expression '([:alpha:]{2}[:digit:]{6}),\s+([[:upper:][:digit:]-]+)\s*,\s+([:digit:]+),'
In addition: Warning message:
In regexpr(regex, string, perl = TRUE) : PCRE pattern compilation error
	'POSIX named classes are supported only within a class'
	at '[:alpha:]{2}[:digit:]{6}),\s+([[:upper:][:digit:]-]+)\s*,\s+([:digit:]+),'

Wondering if you have encountered something similar? I am wondering if something with the NOAA source changed?

Function get_hurdat returns "Error: No such process"

Hi Tim,

I just wanted to reach out and report that the function "get_hurdat(basin = "EP")" which worked previously (I am guessing prior to the update of tidyr on July 21, 2021 (see issue #5) but my error is different that what others have reported and also I have no idea how to get around it.

Here is the error with the traceback, in case it is useful:
Error: No such process
5. vroom_(file, delim = "\001", col_names = "V1", col_types = cols(col_character()), id = NULL, skip = skip, col_select = col_select, name_repair = "minimal", na = na, quote = "", trim_ws = FALSE, escape_double = FALSE, escape_backslash = FALSE, comment = "", skip_empty_rows = skip_empty_rows, ...
4. vroom::vroom_lines(file, skip = skip, locale = locale, n_max = n_max, progress = progress, altrep = lazy, skip_empty_rows = skip_empty_rows, na = na, num_threads = num_threads)
3. .f(.x[[i]], ...)
2. purrr::map(urls, readr::read_lines)

  1. get_hurdat(basin = "EP")

Thanks for all your work on this package!

archived in CRAN

Not sure the best way to ask... but I noticed the package has been achieved in CRAN. Just wanted to let you know in case you weren't aware.

Problem with the regex for the first Huricane (AL)

Hello, the Key value and other tags from the first row of data is not read by the get_hurdat function (for the Atlantic Huricane data set).

I think using the next line should be OK to have this done :
"grep(pattern = "^[[:space:]*[:alpha:]{2}[:digit:]{6}]|[[:digit:]]{8}", x = txt)"

Thanks for your work on this library and in advance for the update.

HURDAT data in R package - new N/A's by mistake?

Issue found via email:

Hi, I was using the HURDAT package in R, and there are 29 N/A values in Longitude where the data previously held either values of -99 or 0. The prior values seem to be correct as they are on the track of the hurricane compared to other points. It's possible that a few may appear a little bit off, but in general, it seems that the -99 and 0 values may have been mistaken for N/A's.

These are the storms with the N/A's for Longitude:

[1] "AL188102" "AL188605" "AL190302" "AL190902" "AL191003" "AL193305"
[7] "AL193313" "AL194201" "AL195403" "AL195801" "AL197103" "AL197414"
[13] "AL197507" "AL197910" "AL198004" "AL198011" "AL198112" "AL198303"
[19] "AL198303" "AL198605" "AL198607" "AL199405" "AL199506" "AL199907"
[25] "AL200015" "AL200514" "AL200704" "AL201112" "AL201308"

20 # 26 # 28 are were previously longitude zero. "AL198605" "AL200514" "AL201112"

The others were all previously longitude - 99.

hurdat[hurdat == "0"] <- NA

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.