Pere,
yes! It worked. The script is:
(define (fits-to-ppm infile outfile)
(let* ((image (car (file-fits-load RUN-NONINTERACTIVE infile infile)))
(drawable (car (gimp-image-get-active-layer image)))
)
(gimp-image-convert-rgb image)
(file-ppm-save RUN-NONINTERACTIVE i
Hola Octavi!
El dl 07 de 04 del 2008 a les 13:27 +0200, en/na Octavi Fors va
escriure:
> Anyway, now the output "mask_gimp.ppm" file is generated. However,
> this is a greyscale one in ASCII (magic number is P2) and would like
> to output a color one in ASCII (magic number is P3).
You should ins
Thanks Pere!
the script worked fine once I included your tip.
I'm surprised gimp interpreter didn't warn that...
Anyway, now the output "mask_gimp.ppm" file is generated. However, this is a
greyscale one in ASCII (magic number is P2) and would like to output a color
one in ASCII (magic number is
Hola Octavi!
El dg 06 de 04 del 2008 a les 19:31 +, en/na Octavi Fors va
escriure:
> I want to convert a FITS image into PPM in batch mode.
> Grabbing code from different sites I end up to a source script version
> like this:
>
> (define (fits-to-ppm infile
> outfile)
> (let* ((image (ca
still no output file even when including the directory name in the name of
the files...
Can this silent error have to do with the fact that gimp asks Blank/Nan
value" and "Pixel value scaling" when loading the FITS image (which I'm
attaching to the message)?
Best regards,
Octavi.
On Sun, Apr 6,