You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What follows is a note-to-self, about how we could streamline the fudge-fixes in raadtools as formal parameter sets, so we can still have our handy raad functions but also analogous virtual raster definitions that we can stream through the raster readers (and GDALwarp, QGIS, Manifold, all the same).
This VRT text, created for a specific subdataset for a daily file:
generating VRT from the source NetCDF with gdal_translate
modifying the GeoTransform: negating the y-scale and setting ymax to the ymin (because the data is flipped in y-positive
convention)
gdalwarp that VRT to a new vrt (and now we can forget the first one), replace the 'SourceDataset' tag with the original subdataset string (not the temp .vrt)
The flip is encoded in the Src and Dst GeoTransforms. So we can
generate this warping VRT on the fly (with our known geotransform-flip values and CRS)
stream that through raster/terra/stars or GDALwarp directly for any given target grid.
Notes
don't think there's any file specific details in the VRT beyond SourceDataset (no date etc), so we could add that for the date possibly
not using 'glue' because there's other curly braces and I don't know about escaping those
The text was updated successfully, but these errors were encountered:
What follows is a note-to-self, about how we could streamline the fudge-fixes in raadtools as formal parameter sets, so we can still have our handy raad functions but also analogous virtual raster definitions that we can stream through the raster readers (and GDALwarp, QGIS, Manifold, all the same).
This VRT text, created for a specific subdataset for a daily file:
resolves to a fully-fledged (lazy) raster object:
created by
convention)
The flip is encoded in the Src and Dst GeoTransforms. So we can
Notes
The text was updated successfully, but these errors were encountered: