[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: findgen([variable])



Craig Markwardt wrote:
> 
> Paul van Delst <pvandelst@ncep.noaa.gov> writes:
> > Oof!
> 
> Looks like we posted at the same time.  Oof indeed. :-)
> 
> > Why doesn't MAKE_ARRAY allow for a dimension vector input?
> 
> It does, ever try the DIMENSION keyword, sonny?  :-)

Oh yeah.... I still haven't received your post on my server (you're at GSFC, right, so that's
probably why...last on the list of NOAA server updates :o) so this is probably the same as you put
together:

IDL> x=[5,7]  
IDL> help, make_array(dimension=x,/index)
<Expression>    FLOAT     = Array[5, 7]
IDL> print, make_array(dimension=x,/index)
      0.00000      1.00000      2.00000      3.00000      4.00000
      5.00000      6.00000      7.00000      8.00000      9.00000
      10.0000      11.0000      12.0000      13.0000      14.0000
      15.0000      16.0000      17.0000      18.0000      19.0000
      20.0000      21.0000      22.0000      23.0000      24.0000
      25.0000      26.0000      27.0000      28.0000      29.0000
      30.0000      31.0000      32.0000      33.0000      34.0000

Veddy nice

No need for any "PRODUCT"-ing

cool

paulv

-- 
Paul van Delst           Ph:  (301) 763-8000 x7274
CIMSS @ NOAA/NCEP        Fax: (301) 763-8545
Rm.207, 5200 Auth Rd.    Email: pvandelst@ncep.noaa.gov
Camp Springs MD 20746