Data visualization with SAS programming

PROC GMAP

Reply
Occasional Contributor
Posts: 10

PROC GMAP

[ Edited ]

I am a High School student trying to complete a Final Project.

 

I am using a data set provided from NASA named "Meteorite Landings"

 

I would like to display where the meteorites landed on a world map in SAS. Please help as this project is due in a few days.

 

 

Thanks

SAS Employee
Posts: 170

Re: PROC GMAP

Look at http://support.sas.com/rnd/papers/archive.html#2004.

For the paper AND examples: Tips and Tricks II: Getting the most from your SAS/GRAPH maps

The example "DrillHover", is similar to what you want.  I assume you will need the world map instead of the US.  And be sure to use the UNPROJECTED lat and long.

 

SAS Super FREQ
Posts: 3,624

Re: PROC GMAP

Since I recently saw this data set discussed in the SAS University Edition community, I feel I should point out that PROC GMAP is not included in the free SAS University Edition. Nor are the standard world maps included, since they are shipped with SAS/GRAPH software.

 

Occasional Contributor
Posts: 10

Re: PROC GMAP

I see. I have researched that but again it's just the US. Could you possible show me the code? And if I can give you my data set and main data step (where the geo locations will be coming from) and have you possible run it to show me that it works that would be great.

 

At school we have the full SAS software but at my home I only have the SAS University.

 

Thanks.

SAS Super FREQ
Posts: 3,624

Re: PROC GMAP

I'm not near a computer right now, but since it is late Friday, here's a quick reply:
1) If you just want an approximate map, you can use the POLYGON statement in PROC SGPLOT, as shown at
http://blogs.sas.com/content/iml/2015/11/18/create-a-map-with-proc-sgplot.html  (second example, with cities)
Notice that you will have to use a DATA step to append the coordinates of the meteor locations
2) If you want to use PROC GMAP, look at the many examples at http://robslink.com/SAS/Home.htm
I think there is a "college rankings"  example (under "80-Eagles, aliens,...") that you could try to copy.

Occasional Contributor
Posts: 10

Re: PROC GMAP

I totally understand that what I'm asking isn't really at a good time. Again I would like a World Map not just a map of the US. I mean I'm sure there's a way I just haven't used proc gmap or proc sgplot as the class at my High School is just really an introduction I suppose. 

 

I think what Darrel said

"Look at http://support.sas.com/rnd/papers/archive.html#2004.

For the paper AND examples: Tips and Tricks II: Getting the most from your SAS/GRAPH maps

The example "DrillHover", is similar to what you want.  I assume you will need the world map instead of the US.  And be sure to use the UNPROJECTED lat and long."

 

Was more of what I am looking for but again just in a World Map. 

 

 

Super User
Posts: 11,121

Re: PROC GMAP

If you have access to Proc Gmap then there should have been a library called MAPS installed. With SAS 9.3 and later there is an additional library with higher detail maps as well.

 

The MAP dataset in proc gmap would be Maps.World. Your meteor data would need to have coordinates in the same measure as that map data set. Maps.World has latitude and longitude expressed in radians. 

Ask a Question
Discussion stats
  • 6 replies
  • 516 views
  • 0 likes
  • 4 in conversation