solar icon indicating copy to clipboard operation
solar copied to clipboard

calcG0 fails with custom meteo object

Open 0814celsus opened this issue 3 years ago • 3 comments

If using function dfI2Meteo it leads to a zoo object of class character which fails in calcG0. coredata from meteoobject needs to be transformed to numeric.

in function fCompI need to change G0 <- coredata(getG0(BD)) to
G0 <- as.numeric(coredata(getG0(BD)))

0814celsus avatar Sep 23 '21 08:09 0814celsus

Please, could you provide a minimal reproducible example?

oscarperpinan avatar Sep 27 '21 08:09 oscarperpinan

Hi Oscar, I have also been struggling with a custom meteo object. I put together this reproducible example https://stackoverflow.com/questions/69873240/incident-solar-irradiation-on-inclinded-plane-using-solar hope you can help. I have struggled to get the only examples https://www.jstatsoft.org/article/view/v050i09 I can find to work also. Can you confirm they still work? Many thanks for putting this together!

BlaiseKelly avatar Nov 21 '21 21:11 BlaiseKelly

Hello, I have just answered your question. I think you have a problem with the timezone of the time series.

Can you confirm they still work?

Yes, sure, with the exception of the readSIAR function (deprecated). Most of the examples in this paper are included in the help pages of the functions of the package. The check procedures show no problem with the package.

oscarperpinan avatar Nov 23 '21 19:11 oscarperpinan