oscarperpinan / meteoForecast

A package to access outputs from Numerical Weather Prediction models both in raster format and as a time series for a location
GNU General Public License v3.0
51 stars 25 forks source link

indexes overlap error #1

Closed rbessa closed 10 years ago

rbessa commented 10 years ago

This line 'data <- getPointDays(c(-8.618785,41.159542), vars = "temp", start = c("2012-01-01"), end=c("2012-12-30"))' gives the following error:

... File available at C:\Users\rbessa\AppData\Local\Temp\RtmpKCHVxO\file2687d166999.csv URL: http://mandeo.meteogalicia.es/thredds/ncss/grid/modelos/WRF_HIST/d02/2012/12/wrf_arw_det_history_d02_20121229_0000.nc4?var=temp&point=true&longitude=-8.618785&latitude=41.159542 File available at C:\Users\rbessa\AppData\Local\Temp\RtmpKCHVxO\file26817ff1bc2.csv URL: http://mandeo.meteogalicia.es/thredds/ncss/grid/modelos/WRF_HIST/d02/2012/12/wrf_arw_det_history_d02_20121230_0000.nc4?var=temp&point=true&longitude=-8.618785&latitude=41.159542 Error in rbind(deparse.level, ...) : indexes overlap

oscarperpinan commented 10 years ago

Hi,

The error seems to be related with some days in March:

    datos <- getPointDays(c(-8.618785,41.159542), vars = "temp", 
          start = "2012-03-24", end = "2012-03-25")

The corresponding csv files are incorrectly formed. Unfortunately, the code of getPointDays assumes that the files are all correct. I have to add some code to check and fix them, but I won't be able to push it until next sunday because I don't have a computer during these days.

rbessa commented 10 years ago

Thanks Oscar. By the way, I saw that you have a vast work of solar power modelling. We are doing now research on solar power forecasting (particularly to smart grids), so perhaps in the future we can do some sort of collaboration in a joint journal paper. I have several on this topic, but more in wind power (http://www.rbessa.com/journals.html).

Best regards, Ricardo

On Wed, Jul 30, 2014 at 5:24 PM, Oscar Perpiñán Lamigueiro < notifications@github.com> wrote:

Hi,

The error seems to be related with some days in March: datos <- getPointDays (c (-8.618785,41.159542), vars = "temp", start = c ("2012-03-24"), end= c("2012-03-25")). The corresponding csv files are incorrectly formed. Unfortunately, the code of getPointDays assumes that the files are all correct. I have to add some code to check and fix them, but I won't be able to push it until next sunday because I don't have a computer during these days.

— Reply to this email directly or view it on GitHub https://github.com/oscarperpinan/meteoForecast/issues/1#issuecomment-50639762 .

oscarperpinan commented 10 years ago

Solved :-) The time zone (UTC) was not being assigned correctly.

It will be great to collaborate in solar power forecasting. Let's keep in contact by email.