Skip to content

Instantly share code, notes, and snippets.

@jarnaldich
Created February 27, 2019 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarnaldich/d10d9bb890aa9ed65ab1c086cb23d575 to your computer and use it in GitHub Desktop.
Save jarnaldich/d10d9bb890aa9ed65ab1c086cb23d575 to your computer and use it in GitHub Desktop.
[sample makefile for image transformation] takes a directory of input files and performs 2 chained transformations #make #makefile
TXTS=$(shell CMD /C DIR /B Z:\mrsids\params)
OUT=\\icgc.local\dades\datacloud_2\of5m_ETRS89\sid_ed50\\
OUTS=$(patsubst %.tif,$(OUT)%.tif,$(TXTS:.txt=.tif))
SIDS=$(patsubst %.sid,$(OUT)%.sid,$(TXTS:.txt=.sid))
target: $(SIDS)
$(OUT)%.tif : Z:\mrsids\params\%.txt
\\icgc.local\aplicacions\produccio\DFApplications\ICCImageOperationsGeocorrection\exe\ICCImageGeoTransformation.exe < $<
$(OUT)%.sid : $(OUT)%.tif
"c:\program files\lizardtech\geoexpress 7\bin\mrsidgeoencoderU.exe" -i $< -o $@ -s 9 -cr 4 -of mg2 -wf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment