comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Truncating files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Truncating files [message #2674] Wed, 24 August 1994 10:20
eharold is currently offline  eharold
Messages: 12
Registered: July 1993
Junior Member
My coode performs FFT's and inverse 3-D FFT's on very large
(>= 100 megabytes) data sets. Thus most of the data is on disk at any one
time. To avoid aliasing I've zero-padded the data before convolution
with my filter function. Eventually I need to throw away the padding
values after the inverse transform has been completed. They're all located
at the end of the file so I just want to truncate the file to the appropriate length. Does anyone know a convenient way to do this from within IDL
on a SUN Sparc running SunOS 4.1.3 or Solaris 2.3? Disk space is tight
so I'd rather not waste all the time and space by rewriting all the
data values I really want to a separate file if I could just truncate
an already existing file.


--

Elliotte Rusty Harold National Solar Observatory
eharold@sunspot.noao.edu Sunspot NM 88349
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Why can't IDL do simple things...?
Next Topic: IDL V3.6 and OSF/1 V3.0 - Color table problems

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:53:55 PDT 2025

Total time taken to generate the page: 0.00570 seconds