BookmarkSubscribeRSS Feed
Anpu
Calcite | Level 5

Hello,

I have a dataset contains x,y and lat long value for my study area in Canada. I plotted Gmap (Block), my grid boundaries were not displayed. I thought my dataset was not geocoded. I tried to geocode my data by I couldn't.

I also want to find the number of grids from selected x,y with a varying radius. Any suggestions, Please advise me.

Many thanks 

M.Anputhas

2 REPLIES 2
Anpu
Calcite | Level 5

The data set looks like this

data deepcrek;

input ID idwsd areacode x y Actual Simulated;

cards;

2 1 2 50.636685 -119.295393 2 2

3 1 3 50.636260 -119.288352 2 2

4 1 4 50.635835 -119.281311 2 2

35 1 35 50.632214 -119.296062 2 2

36 1 36 50.631789 -119.289021 2 2

37 1 37 50.631363 -119.281981 2 2

38 1 38 50.630938 -119.274941 2 2

39 1 39 50.630511 -119.267902 2 2

40 1 40 50.630085 -119.260862 2 2

41 1 41 50.629657 -119.253823 2 2

.

.

.

.

.....................

................................

ballardw
Super User

Lat and long don't need to be geocoded but may need to be transformed and projected to match the area you want to map. If you look at the coordinates in MAPS.Canada you will see that the x values range from -0.35 to 0.49 and y from -0.33 to 0.36.

The documentation for Proc Gproject should help.

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
  • 2 replies
  • 850 views
  • 0 likes
  • 2 in conversation