mdsumner / gdalraster

R Bindings to the GDAL Raster API
https://usdaforestservice.github.io/gdalraster/
Other
0 stars 0 forks source link

multidim, and mdarray stub #2

Open mdsumner opened 4 months ago

mdsumner commented 4 months ago

some WIP in branch multidim trying to keep this rebased and up to date with main but we'll see

some trivial and safe-ish usage (no finalizer or care happening on MDarray open)

f <-  "/vsicurl/https://github.com/mdsumner/fixoisst/raw/main/file.nc"
x <- new(GDALMDIMRaster, f)  ## a netcdf file or url 
x$activeMDArrayName()
#[1] NA
x$MDArrayNames()
#[1] "anom" "err"  "ice"  "lat"  "lon"  "sst"  "time" "zlev"
x$openMDArray("lon")
x$activeMDArrayName()
#[1] "lon"
mdsumner commented 4 months ago

rebasing may have been a bad plan, clean up against the stable release when it settles down on CRAN

mdsumner commented 4 months ago

I messed up with some older changes in gdalraster.h/cpp so will have to fold this in manually to a clean branch