santandermetgroup / climate4r.udg Goto Github PK
View Code? Open in Web Editor NEWHarmonized data access via UDG
License: GNU General Public License v3.0
Harmonized data access via UDG
License: GNU General Public License v3.0
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
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()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.