Git Product home page Git Product logo

climate4r.udg's People

Contributors

cofinoa avatar jbedia avatar jorgebanomedina avatar miturbide avatar zequihg50 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

climate4r.udg's Issues

Error: The requested dataset URL was not found (HTTP error 404)

Dear all,

This code was working yesterday but somehow now it gives this error. I wonder if this is temporary issue?

library(loadeR)
library(transformeR)
library(visualizeR)
library(downscaleR)
library(climate4R.value)
library(climate4R.UDG)

When I run the code below, it works well.

climate4R.UDG::loginUDG(username = "XXXXXX", password = "XXXXXX")

2020-07-22 10:22:26] Setting credentials...
[2020-07-22 10:22:26] Success!
Go to http://www.meteo.unican.es/udg-tap/home for details on your authorized groups and datasets

However loadGridData could not access the dataset URL. Any idea of the possible reason?

vars <- c("tas","ta@500","ta@700", "ta@850",
"hus@500","hus@850","z@500")

data("PRUDENCEregions", package = "visualizeR")
bb <- PRUDENCEregions["IP"]@bbox
lon <- bb[1,]; lat <- bb[2,]
grid.list5 <- lapply(vars, function(x) {
loadGridData(dataset = "ECMWF_ERA-Interim-ESD",
var = x,
lonLim = lon,
latLim = lat,
years = 1979:2008)
}
)

It gives error:

NOTE: Accessing harmonized data from a public UDG dataset
[2020-07-22 10:23:07] Defining harmonization parameters for variable "psl"
[2020-07-22 10:23:07] Opening dataset...
Error: The requested dataset URL was not found (HTTP error 404

loginUDG read credentials from file

Hi,

In order to avoid showing my UDG user/password openly in notebooks/scripts I usually do:

do.call(loginUDG, as.list(readLines("udg_login.txt")))

which is quite dirty for the purpose. I think this could be easily implemented internally in loginUDG(), either as e.g.:

loginUDG(from.file = "udg_login.txt")

Or just let the function try to find a default file (e.g. ~/.udgrc) when called without arguments loginUDG()

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.