Created
February 27, 2019 06:31
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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