mikejohnson51 / climateR

An R 📦 for getting point and gridded climate data by AOI
https://mikejohnson51.github.io/climateR/
MIT License
165 stars 40 forks source link

fix: rm isolated var.get.nc call in .resource_time #73

Closed program-- closed 1 year ago

program-- commented 1 year ago

In R/utils.R:282 there is an isolated call to var.get.nc that is not being used. It has a hard-coded parameter to get the "time" variable from nc, but this fails in the case of resources without a "time" variable (i.e. PRISM). 😄

It was added in 6261e3bbd65f1fd07bb5c8474a185b10cd0e124a.

mikejohnson51 commented 1 year ago

Look at me being an idiot haha. I will get this merged when at a computer