Giter VIP home page Giter VIP logo

camsrad's Introduction

rOpenSci

Project Status: Abandoned

This repository has been archived. The former README is now in README-NOT.md.

camsrad's People

Contributors

karthik avatar lukas-rokka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

camsrad's Issues

Examples does not work

Hi,
I have created an account and I tried to execute the sample commands in the GitHub homepage of the package:

> df <- cams_get_radition(username, lat=60, lon=15, 
                        date_begin="2016-01-01", date_end="2016-01-15")
Error in cams_get_radition(username, lat = 60, lon = 15, date_begin = "2016-01-01",  : 
  unused argument (lon = 15)

it seems that the argument is now lng instead of lon. I tried the right argument:

> df <- cams_get_radition(username, lat=60, lng =15, 
                        date_begin="2016-01-01", date_end="2016-01-15")
Error in match.arg(encode) : 
  'arg' should be one of “multipart”, “form”, “json”

the problem comes from httr::POST in cams_api, in line 95 you set as argument encode the value raw but my httr doc says:

POST(url = NULL, config = list(), ..., body = NULL,
  encode = c("multipart", "form", "json"), multipart = TRUE,
  handle = NULL)

the encode raw option is instead present in httr version 1.2.1 but not in the 1.1.0 I have on my Microsoft R 3.3.0. So, you should add a dependency to this particular version of httr.

UPDATE: I have installed the latest httr from Hadley's repository on GitHub and now I get:

> filename <- paste0(tempfile(), ".nc")
> 
> r <- cams_api(username, 60, 15, "2016-06-01", "2016-06-10", 
+               format = "application/x-netcdf", filename = filename)
No encoding supplied: defaulting to UTF-8.
xmlXPathEval: evaluation failed
xmlXPathEval: evaluation failed
xmlXPathEval: evaluation failed
Warning messages:
1: In node_find_all(x$node, x$doc, xpath = xpath, nsMap = ns) :
  Undefined namespace prefix [1219]
2: In node_find_all(x$node, x$doc, xpath = xpath, nsMap = ns) :
  Undefined namespace prefix [1219]
3: In node_find_all(x$node, x$doc, xpath = xpath, nsMap = ns) :
  Undefined namespace prefix [1219]

and r$ok is FALSE.

Error: Soda-pro.com did not return xml

Hi,

I get the above error when trying to obtain solar data from within the camsRad package. Here is the code:

BanthamSolar <- cams_get_radiation(

lat=50.277

, lng=-3.879

, # Latitude & longitude coordinates

date_begin="2018-03-24", date_end="2018-11-11", # Date range

time_step="PT01H") # Use hourly time step

This code was working perfectly fine up until an update on the Soda-Pro website detailing a switch to a new version of CAMS radiation services. Here is a link to the release notes page on the Soda-pro website, please see note #1035 detailing possible errors relating to a new XML file format?

https://www.soda-pro.com/help/release-notes

It has links to an automatic-access page but this generates a manual data file. Any help on this would be appreciated!

transfer to ropensci

👋 @lukas-rokka! we no longer transfer onboarded packages to ropenscilabs but instead directly to ropensci so we should move this repo. Are you ok with my doing it? If so when would you have the time to update all links? I wouldn't transfer before you have time to do that, and it's not urgent to transfer anyway.

If possible could you please add this badge to the README of rnaturalearth when updating CI links?
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)

Thanks for your patience! 🙏

requesting info for JSON-LD metadata

👋 @lukas-rokka I'm using codemetar to create JSON-LD metadata for rOpenSci packages. I'd like some info about camsRad when you have the time, since you're the author / maintainer. In particular, I need your ORCID identifier as well as some keywords for the package that would help for search.

Thanks and let me know if you need me to elaborate on what I'm doing!

error in example

nc_open(r$response$content) in the example doesn't work on Mac. It works with ´nc_open(filename)´.

Alternative data sources

The CAMS Radiation Service relies on images from the Metosat satellite which is located at the at the prime meridian of 0° longitude (covering Europe, Africa and Middle East).

Are there any similar projects with open and free, high resolution (hourly, ~5 km) solar radiation data based on images from satellites above America and Asia?

I´m in first hand interested in services providing time series, as gridded data sources usually requires you to handle many TB of data.

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.