davidcarslaw / openair

Tools for air quality data analysis
https://davidcarslaw.github.io/openair/
GNU General Public License v2.0
307 stars 113 forks source link

How to fix "error in gam(myform, data = mydata) Not enough (non-NA) data to do anything meaningful" #336

Open jordinagili opened 1 year ago

jordinagili commented 1 year ago

Hi again,

I am getting this error:

Error in gam(myform, data = mydata) : Not enough (non-NA) data to do anything meaningful

when I run the trajLevel function for SQTBA with this traj object traj_PA2_15_7.zip but when it comes to run this other one traj_PA2_16_7.zip which feels the same, there's no error.

The trajLevel function I am running is the following:

trajLevel(subset(traj_PA2_15_7,lon > -10 & lon < -6 & lat > 40.5 & lat < 45), pollutant = "avg", statistic = "sqtba", map.fill = FALSE, map.res = "hires", smooth = TRUE, cols = "default", lat.inc = 0.1, lon.inc = 0.1, parameters = c(-10, 100), projection = "lambert", grid.col = "darkgray", .combine = "site")

How would I understand this error? Is it possible to fix?

Thank you very much,

Jordina