Re: extract of an image (array)



christina.goerner@xxxxxx (Crissy) wrote in message news:<1ace9f06.0504071016.4cfecebc@xxxxxxxxxxxxxxxxxx>...

>
> array_europa = array_bild(500:2500, 1:800)
>
[snip]
> ----------------------------------------------------------------------------
>
> Thanks to everyone!!!!
>
> Crissy

Oh! So you you *only* want to crop the image, and not do any data
processing?

Then why use Fortran at all when a graphics program such as the *free*
ImageMagick can do this with an easy one line command at the command
line? I think Fortran is the wrong tool to choose here.

Image Magick is often installed by default on Linux machines, and it's
available for Linux, Unix and Windows. Most of its useful actions are
done using the "convert" command at the command line prompt. See

http://www.imagemagick.org/script/index.php

for details (particularly, follow the Command Line Tools -> "-crop"
links.).

I think you just need to type the following command at the prompt to
do what you want:

convert bigimagefile.pgm -crop 2000x800+500+0 newsmallerimagefile.pgm

If you have lots of files to do, it is of course very easy to write a
shell script to perform this command on them all. If you want help
with that (on Linux - I don't know how to write scripts for Windows!)
just post a message for me here and I'll then get in touch about it
off the list, as it would not really be on topic for c-l-f.

Hope that helps,
andy
.



Relevant Pages

  • [PATCH 19-rc2] Fix misc .c/.h comment typos
    ... Implements an interface for i2c compatible eeproms to run under linux. ... Changed struct initializer syntax to the currently preferred notation ... ** Packet is an actual packet structure to be filled in with the packet ... -** as the command processore doesn't process the command packet in any way. ...
    (Linux-Kernel)
  • Re: [opensuse] deleting
    ... during the installation of jre 1.5.0 (according to the install ... i'm learning and having fun with my new toy, the command line interface. ... understand and use linux more efficiently. ... /bin/sh is the Bourne Shell. ...
    (SuSE)
  • Re: how i will open (from Java Application) the MS word format /html documentsin repective Applicati
    ... documentsin repective Applications in Linux OS? ... What I did in the Linux version of our product was require an external ... I create a URI object around it and use that. ... array by separating the CDE command line at the spaces, ...
    (comp.lang.java.programmer)
  • Re: VERY basic linux system
    ... "> I keep hearing that you can modify linux to your liking, ... 'user', but once you have a multi-tasking kernel, multi-user is pretty ... Command names are arbitary and virtually all command shells allow all ... supporting stuff, and stuff supporting the support stuff, etc. ...
    (comp.os.linux.misc)
  • Re: dpreview
    ... etc.) using the windows GUI? ... *Everything* can be done via command line. ... why would I bother with a text Linux command. ... stronger USM than you would, blend with the opacity of the layer. ...
    (rec.photo.digital.slr-systems)