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

Home » Public Forums » archive » Array multiplication: implicit loop query
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Array multiplication: implicit loop query [message #26191] Fri, 10 August 2001 03:56 Go to previous message
george is currently offline  george
Messages: 22
Registered: August 1996
Junior Member
Hi there

I was just calculating the following equation:

DEN_H = MMR_H * Pres * RMT / ( atomic_mass_H * Gas_constant * TN )

These numbers are 3D arrays, 1D arrays and constants, i.e.,

MMR_H = fltarr(30,91,40)
Pres = fltarr(30)
RMT = fltarr(30,91,40)
atomic_mass_H = constant
Gas_constant = constant
TN =fltarr(30,91,40)

The result of this is DEN_H (previously undefined) which ends up being
fltarr(30) - i.e., 1 dimensional.
To my mind DEN_H should be 3D (30,91,40) - shouldn't it ? Doesn't IDL
understand that I am implicity doing a full 3D calculation here ? It
would seem that, to get this to work I need to make
Pres=fltarr(30,91,40). However, this seems uneccessary because that
means that the 2 new dimensions for pressure are redundant.
Any advice ?? Cheers,
George Millward
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Coyote Library Updates
Next Topic: Ask Mr. Cosmology

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

Current Time: Wed Oct 08 14:52:14 PDT 2025

Total time taken to generate the page: 0.00414 seconds