ropensci / camsRad

R Client for CAMS Radiation Service
https://docs.ropensci.org/camsRad
Other
8 stars 0 forks source link

Error: Soda-pro.com did not return xml #8

Open RyanHepburn1910 opened 10 months ago

RyanHepburn1910 commented 10 months ago

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!

MatejOrsag commented 7 months ago

Hello, I have the same problem. I wrote an email to soda-pro.com support. They replied, that the problem is with the package, but their services work fine.

this is my code:

Radiation_data <- cams_get_radiation(

  • lat=c(49.395), lng=c(17.246), # Latitude & longitude coordinates
  • date_begin="2020-01-01", date_end="2023-12-31", # Date range
  • time_step="PT15M", alt = 200) # Use hourly time step Error: soda-pro.com did not return xml
EnriqueMolto commented 7 months ago

I have the same problem with the following code:

latitud = 39.46975 longitud = -0.37739 altitud = -999

datos <- cams_get_radiation( lat= latitud, lng= longitud, date_begin="2024-01-01", date_end="2024-31-01", time_step = 'P01D', alt = altitud)

print(datos)