Re: 2D Array with a different value for every country [message #94231 is a reply to message #94230] |
Thu, 02 March 2017 01:27   |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
On Thursday, March 2, 2017 at 9:56:00 AM UTC+1, c.beta...@fz-juelich.de wrote:
>> ;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)
> -> -> -> emis = ???
>> ;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
>
>
>
>
> Sorry to confuse you. My only problem is that I don´t have an emission array yet. I need something like a world map as an array. A similar problem would be: I would like to plot a world map where france is green, italy is yellow and germany is red. Hope this is precise enough...?
This is not my field, but here you might start looking for an answer:
http://www.harrisgeospatial.com/docs/mappingcontinents.html
The second example seems pretty close to what you want:
; Define a map of Europe.
map = MAP('STEREOGRAPHIC', FILL_COLOR = 'Light Blue', $
LIMIT = [30.0, -15.0, 68.0, 55.0])
; Add the country outlines and fill color.
mc = MAPCONTINENTS(/COUNTRIES, FILL_COLOR='beige')
; Add the rivers.
rivers = MAPCONTINENTS(/RIVERS, COLOR='blue')
Cheers,
Helder
|
|
|