NEONScience / NEON-utilities

Utilities and scripts for working with NEON data. Currently: an R package with functions to join (stack) the month-by-site files in downloaded NEON data, to convert data to geoCSV format, and to download data from the API.
GNU Affero General Public License v3.0
57 stars 36 forks source link

stackByTable("..zip") can't find DP code #111

Closed annakat closed 3 years ago

annakat commented 3 years ago

Just downloaded the 'Plant presence and percent cover data' DP1.10058.001, release 2021 from the data portal stackByTable gives me the following error.

stackByTable(filepath="./orig_data/NEON_presence-cover-plant.zip", saveUnzippedFiles = F)

Error in stackByTable(filepath = "./orig_data/NEON_presence-cover-plant.zip",  : 
  DP0.10058.001 is not a properly formatted data product ID. The correct format is DP#.#####.001, where the first placeholder must be between 1 and 4.

Unzipping the data locally and stackByTable(filepath="./orig_data/NEON_presence-cover-plant/", saveUnzippedFiles = F) works just fine.

cklunch commented 3 years ago

@annakat Yep, this is a known issue, described here: https://www.neonscience.org/impact/observatory-blog/known-issues-neonutilities-200 Sorry for the bug! It's fixed in the development version of neonUtilities 2.0.1 here on GitHub, but you can also work around it for now, like you found. I'll post again here when 2.0.1 goes to CRAN.

cklunch commented 3 years ago

This is resolved in neonUtilities 2.0.1, on CRAN now.