BookmarkSubscribeRSS Feed
joel94657534034
Calcite | Level 5

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

6 REPLIES 6
Darrell_sas
SAS Employee

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.

 

Rick_SAS
SAS Super FREQ

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.

 

joel94657534034
Calcite | Level 5

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.

Rick_SAS
SAS Super FREQ

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.

joel94657534034
Calcite | Level 5

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. 

 

 

ballardw
Super User

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. 

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 1620 views
  • 0 likes
  • 4 in conversation