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

Home » Public Forums » archive » How to create blank array in IDL like python???
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
How to create blank array in IDL like python??? [message #93892] Wed, 16 November 2016 22:36 Go to next message
Suresh Negi is currently offline  Suresh Negi
Messages: 28
Registered: August 2016
Junior Member
How to create blank array in IDL like python to store values...
Re: How to create blank array in IDL like python??? [message #93893 is a reply to message #93892] Thu, 17 November 2016 01:03 Go to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Thursday, November 17, 2016 at 7:36:22 AM UTC+1, Sanu wrote:
> How to create blank array in IDL like python to store values...

Python works (mainly) with lists. In IDL also has lists since version 8.0.

myList = list()
myList->add, 5
myList->add, 'a'
...

Otherwise you can define arrays of fixed width and type:

myArray = fltarr(5) ;for an array of 5 floating points

Here you will find more information:
http://www.harrisgeospatial.com/docs/Creating_Arrays.html

Cheers,
Helder
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Copying HDF5 datasets to a new HDF5 file
Next Topic: Julian Day NE Julian Day

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

Current Time: Wed Oct 08 15:09:55 PDT 2025

Total time taken to generate the page: 0.00550 seconds