Giter Club home page Giter Club logo

Comments (3)

kkyong77 avatar kkyong77 commented on September 27, 2024 1

I am trying to download the daymet data for 42224 sites, but it has the following message:
CR_daymet<-download_daymet_batch("CR_header_site.csv",
start = 1980,
end = 2019,
internal = TRUE)

Error : cannot allocate vector of size 125 Kb
Downloading DAYMET data for: sub_510 at 49.34868/-117.7382 latitude/longitude !

Done !

Error : cannot allocate vector of size 125 Kb
Downloading DAYMET data for: sub_511 at 49.44258/-117.7657 latitude/longitude !

from daymetr.

khufkens avatar khufkens commented on September 27, 2024

As the statement says: 'could not resolve host' the server is down or unreachable from your network.

Also, it is a bad idea to start your site names with numbers, this is cause for issues during downloading and post processing.

The below example works for me.

library(daymetr)

# create demo locations
locations <- data.frame(site = c("site1", "site2"),
                        lat = rep(36.0133, 2),
                        lon = rep(-84.2625, 2))

# write csv to file
write.table(locations, paste0(tempdir(),"/locations.csv"),
            sep = ",",
            col.names = TRUE,
            row.names = FALSE,
            quote = FALSE)

# download data
test_data <- download_daymet_batch(
  file_location = paste0(tempdir(),"/locations.csv"),
  start = 1980,
  end = 1980,
  internal = TRUE,
  silent = FALSE)

from daymetr.

khufkens avatar khufkens commented on September 27, 2024

I can't reproduce your problem, so this isn't an issue with the package but with how you format the data. Without a reproducible example from your side I can't do anything with the above statement.

Please provide a reproducible example.

from daymetr.

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.