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

Home » Public Forums » archive » Re: File sizes and the SAVE command
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: File sizes and the SAVE command [message #48048 is a reply to message #48045] Wed, 22 March 2006 05:26 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Klaus Scipal wrote:
> The problem is not related to the calculation of the filesize, but the
> actual amount of memory required
>
> Take two arrays
> a=intarr(100000)
> b=fltarr(100000)
>
> and save them using the save comannd
> the file for array a takes 402096 bytes diskspace
> the file for array b takes 402096 bytes diskspace
>
> save them using openw & writeu
> the file for array a takes 200000 bytes diskspace
> the file for array b takes 400000 bytes diskspace
>
> So the save command seems to waste a lot of diskspace, but why? Does the IDL
> save command convert an integer automatically into a longinteger?
>
> Klaus
>

why not using /compress ?

An idl sav file is not only a binary copy of your value. It does use a
XDR exchange data format to create files which are platform independent.
Each value has always it's XDR description included.

In general one of the scientific data formats e.g. netCDF are much
better to store your data in a common structure which is exchangable to
a lot of platforms too


cheers

Reimar



--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 4D interpolation
Next Topic: Re: Need help in IDLgrSurface and vertical exaggeration

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

Current Time: Fri Oct 10 05:04:32 PDT 2025

Total time taken to generate the page: 0.96008 seconds