Stupid question:
On one side you are using $upperdir/*.DNG
on the other side you are using ../$file.DNG
Are you sure that $upperdir is really equal to ../ ?
Matthias
Here is the script I used. It looks pretty much like your script. I just show
it here for your convenience.
#!/bin/bash
TOOLS_DIR=/data/src/darktable/tools/basecurve/
DT_CURVE_TOOL=$TOOLS_DIR/dt-curve-tool
CAM_STD=./canon-6d.dat
for f in *.CR2;
do
a=$(basename $f ".CR2")
echo dcraw -6 -W -g 1 1 -w $a.CR2
dcraw -6 -W -g 1 1 -w $a.CR2
mv $a.ppm $a-RAW.ppm
echo convert $a.JPG $a-JPG.ppm
convert $a.JPG $a-JPG.ppm
echo $DT_CURVE_TOOL -s $CAM_STD $a-RAW.ppm $a-JPG.ppm
$DT_CURVE_TOOL -s $CAM_STD $a-RAW.ppm $a-JPG.ppm
done
$DT_CURVE_TOOL -z -e $a.CR2 -s $CAM_STD > mycameracurves.sh
gnuplot $TOOLS_DIR/plot.basecurve
gnuplot $TOOLS_DIR/plot.tonecurve
Am 29.04.2014 16:45, schrieb Eildert Groeneveld:
> Dear All
>
> The Leica basecurve has a serious red hue problem: often
> people look badly hypertonic to a degree that one can only say: this is
> not a matter taste but this is definitely wrong.
>
> I have been fiddling around with the color zones that a promising
> 'natural skin color' preset. It helps a little but is no solution.
> I manually changed the color zones entry and can get an improvement. But
> again: also this manuyla change that somewhere before must have gone
> wrong, does not seem to be the right way.
>
> Thus I embarked on creating a new base curve. (there is a Leica like
> preset). I should add that I have a Leica M9.
>
> The problem is that the file basecurve.dat only contains 0
> I wonder what the reason could be.
>
> This is the little script that processes the DNG and JPG files:
> #!/bin/bash
> upperdir="/home/eg/egeg/fotos/RAW/2014/20140429_NewBasecurse"
> for filename in $upperdir/*.DNG
> do
> file_name=$(basename $filename)
> file=${file_name%.*}
> echo "--- $file"
> dcraw -6 -W -g 1 1 -w ../$file.DNG
> mv ../$file.ppm $file-raw.ppm
> convert ../$file.JPG $file-jpeg.ppm
> /home/eg/bin/darktable/tools/basecurve/dt-curve-tool -s LeicaM9.dat
> $file-raw.ppm $file-jpeg.ppm
> done;
> #/home/eg/bin/darktable/tools/basecurve/dt-curve-tool -z -e ../L1012771.DNG
> -s LeicaM9.dat | tee mycameracurves.sh
> # gnuplot /home/eg/bin/darktable/tools/basecurve/plot.tonecurve
> # gnuplot /home/eg/bin/darktable/tools/basecurve/plot.basecurve
>
> any ideas of what may be going wrong?
>
> greetings
>
> Eildert
>
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos. Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos. Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Darktable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-users