Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Raw extraction problems with dcraw Post 303024608 by Corona688 on Friday 12th of October 2018 12:32:16 PM
Old 10-12-2018
Wildcards inside quotes do not expand. How about this:

Code:
#!/bin/sh
cd /home/pi/dcraw/
echo "Enter target directory: "
read filename

for RAW in "$filename"/*.raw
do
        PPM="${RAW/.raw/.ppm}"
        PPMD="${RAW/.raw/.ppm.d}"

        ./dcraw "$RAW"
        double "$PPM" > "$PPMD"
        rm "$RAW" "$PPM"
        mv "$PPMD" "$PPM"
done

I can't find any information on this 'double' utility but it may be possible to do this with no temp files at all if you can tell me what it is.
This User Gave Thanks to Corona688 For This Post:
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Raw vs. Filesystem?

Maybe this is the wrong forum to start this debate and I apologize if it is, but I have been wondering for some time which is better to use for a database, raw or filesystem? By better I mean don't just mean better performance but also ease of maintenance, etc. I know that several years ago it... (5 Replies)
Discussion started by: keelba
5 Replies

2. Solaris

About raw partition

Hi I have solaris 8 installed on Intel machine. the disk I have is IDE. I would like to know how can I create a raw partition on an IDE disk. Regards, Raja (2 Replies)
Discussion started by: RajaRC
2 Replies

3. AIX

Raw I/o

Is there any system call available in AIX to read the size of raw disk? If I use the command "lspv -L",it only gives size of PVs on which file system is there. I need to extract the size raw disk i.e. file system is not there on the disk. Thanks, Megha (6 Replies)
Discussion started by: MeghaV
6 Replies

4. UNIX for Dummies Questions & Answers

Using the Raw command

Hi, What is a Raw command and how does it work? We have to print out a large report from our database numerically and wanted to know how it can be done. :confused: (1 Reply)
Discussion started by: nov_user
1 Replies

5. Filesystems, Disks and Memory

Raw volumes

The query is as follows : A typical server configs when using Oracle or any other type of DB is to install the OS + DB binaries on the internal disks of the relevant server e.g. Disk 1 : OS + SW + DB binaries Disk 2 : Mirror of disk 1 (used for resiliency) Then one uses an external array... (1 Reply)
Discussion started by: kekanap
1 Replies

6. Programming

Raw devices in C

Hi guys. what is the benefits of using raw devices in programming? which applications mostly use raw devices? how can i use raw devices in C programs? is there any system calls or library functions? (1 Reply)
Discussion started by: majid.merkava
1 Replies

7. Red Hat

Raw Devices

Can you please modify my script. This script is not working for i in /dev/sdf do /bin/raw /dev/raw/`/bin/basename ${i}` ${i} /bin/sleep 2 /bin/chown orasm:ordba /dev/raw/`/bin/basename ${i}` /bin/chmod 660... (9 Replies)
Discussion started by: karthik9358
9 Replies

8. UNIX for Beginners Questions & Answers

Specify the raw format

Hey friends, i am trying to set up a raspbian wheezy vm on ma Unbuntu using qemu. when i try to run the setup command the error is: i tried to find something here in the forum but did not find anything. i was searching like 15 min pls dont roast me if there is a post explaining it. :)... (3 Replies)
Discussion started by: LinuxPlayer1809
3 Replies
dcraw2hdrgen(1) 					      General Commands Manual						   dcraw2hdrgen(1)

NAME
dcraw2hdrgen - Parse information in given Digital Camera RAW files and output a hdrgen script for generation of HDR images. SYNOPSIS
dcraw2hdrgen <file1.cr2> [<file2.cr2>...] DESCRIPTION
This program can be used to automatically create an hdrgen script for use with software creating HDR images. The exposure information is extracted from RAW files using the `dcraw` tool. If this script doesn't recognise the exposure settings from the images taken by your camera, please verify if dcraw supports your camera: `dcraw -i -v your_image.cr2`. You should see a detailed information on shot settings including exposure time. Maybe compiling the newest version will help. EXAMPLES
dcraw2hdrgen IMG_0001.CR2 IMG_0002.CR2 IMG_0003.CR2 > sample.hdrgen Creates a sample.hdrgen script for given images. SEE ALSO
dcraw(1) pfsindcraw(1) pfsinhdrgen(1) pfshdrcalibrate(1) BUGS
Please report bugs and comments on implementation to Grzegorz Krawczyk <gkrawczyk@users.sourceforge.net>. dcraw2hdrgen(1)
All times are GMT -4. The time now is 01:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy