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 #94231 is a reply to message #94230] Thu, 02 March 2017 01:27 Go to previous messageGo to previous message
Helder Marchetto is currently offline  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
[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:47:11 PDT 2025

Total time taken to generate the page: 0.00805 seconds