Re: extract of an image (array)
- From: christina.goerner@xxxxxx (Crissy)
- Date: 7 Apr 2005 11:16:45 -0700
Yes, it is identical because I thought Ken couldn´t read my first
article because of a problem so I just inserted it again... SORRY if I
misunderstood!!!
Since today the program works - almost "perfekt". This is the current
version:
-----------------------------------------------------------------------------
program europa_extrahieren
character(256) :: name_IN =
"C:\MSG-1\Images\HRIT\200407161200-msg-ch01.pgm"
character(256) :: name_OUT =
"C:\MSG-1\Images\Europa\200407161200-msg-ch01.pgm"
integer :: pixels = 3712
integer :: lines = 3712
integer :: x, y
integer :: stat, stato
integer(2), Dimension (:,:), Allocatable :: array_bild, array_europa
character(120) :: header
real :: a
allocate (array_bild(1:pixels,1:lines))
allocate (array_europa(500:2500, 1:800))
open(1, file=name_IN, RECL=120, FORM='BINARY', ACCESS='DIRECT',
CONVERT='BIG_ENDIAN', iostat=stato)
open(2, file=name_OUT, FORM='BINARY', iostat=stato)
read (1,REC=1,iostat=stat) header
read (1,REC=2,iostat=stat) array_bild
array_europa = array_bild(500:2500, 1:800)
write (2) header
write (2) array_europa
close (1)
close (2)
deallocate (array_europa)
deallocate (array_bild)
end program europa_extrahieren
----------------------------------------------------------------------------
Thanks to everyone!!!!
Crissy
.
- Follow-Ups:
- Re: extract of an image (array)
- From: andy2o
- Re: extract of an image (array)
- References:
- extract of an image (array)
- From: Crissy
- Re: extract of an image (array)
- From: Michael Metcalf
- Re: extract of an image (array)
- From: Crissy
- Re: extract of an image (array)
- From: Ken Fairfield
- Re: extract of an image (array)
- From: Crissy
- Re: extract of an image (array)
- From: Michael Metcalf
- extract of an image (array)
- Prev by Date: Re: appropriate groups -- Re: Fortran subroutine characters argsand their lengths and C
- Next by Date: Re: about read data
- Previous by thread: Re: extract of an image (array)
- Next by thread: Re: extract of an image (array)
- Index(es):
Relevant Pages
|
|