Skip to content

terra targets integration #809

Closed Answered by wlandau
hansvancalster asked this question in Help
Mar 16, 2022 · 1 comments · 17 replies
Discussion options

You must be logged in to vote

If the large tif file is is an output image, I would suggest writing it once to disk and tracking it with format = "file": https://books.ropensci.org/targets/data.html#external-files. If you use it as input data, you can still treat it as an input file (still format = "file", but only load the subset you need in the target that does the analysis. Maybe this involves writing a function that accepts the file path, creates a terra pointer to it, only reads in the parts of the file it needs, and returns a small object. Otherwise, it's hard to get around copying the whole file, but can be made easier with a custom tar_format() format. The discussion at #805 is similar, the OP has a gist that d…

Replies: 1 comment 17 replies

Comment options

You must be logged in to vote
17 replies
@mschmidty
Comment options

@brownag
Comment options

@brownag
Comment options

@mdsumner
Comment options

@brownag
Comment options

Answer selected by hansvancalster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
6 participants