open-forest-observatory / ofo-r

R package for Open Forest Observatory data processing
Other
1 stars 0 forks source link

WIP: Convert to cloud optimized format and create thumbnails #36

Closed russelldj closed 1 week ago

russelldj commented 1 week ago

This has code to take a folder of photogrammetry outputs and turn them into a more standardized format. Specifically, raster and point cloud data is cropped to the flight polygon bounds and exported in a cloud optimized format. Then, a thumbnail is generated for the raster data as a png.

I opened this to make sure we were up to date on the changes to this branch. A minor detail is that columns need to be renamed after they are compiled in list_photogrammetry_outputs. Also, we should consider subsetting the meshes to the desired regions. Finally, the code should be cleaned up, including format, better documentation, and consistent logging/print outs.

youngdjn commented 1 week ago

One thing to add still is creation of CHMs, ideally using ofo::chm_from_coregistered_dsm_dtm, probably with res = 0.25.

Also, upstream of everything we may want to first run ofo::transform_to_local_utm in case the photogrammetry outputs were in lon/lat or some other non-standard CRS. This carries the consequence of data loss (smoothing) due to reprojection, so it may not be ideal and I'm interested in thoughts.