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

Home » Public Forums » archive » 2D Array with a different value for every country
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: 2D Array with a different value for every country [message #94228 is a reply to message #94226] Thu, 02 March 2017 00:20 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
Hi,
I have no idea on how to do that, but I think you're not describing your problem/question deeply enough.

I'll interpret your question, to try to understand where you are getting stuck.

;plumes of air pollutants matrix of 720x1440 elements
pap = fltarr(720,1440)
;the scale is 0.25x0.25. Take this into account when plotting.
;now fill the pap array...
...
;now generate the emission array:
emiss = fltarr(720,1440)
;must have the same dimensions and scale of the pap array.
;now fill the emiss array with the emission values
...
;the idea is that all the pixels (indices) having coordinates in France will have a value of 0.55 and so on.
;now do the hadamard product of two
result = pap * emiss

So, where do you get stuck/need help?

Cheers,
Helder
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: NetCDF version in IDL 8.6?
Next Topic: Use rtv_doit to generat a vector file

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

Current Time: Wed Oct 08 17:53:28 PDT 2025

Total time taken to generate the page: 0.00392 seconds