[GRASS-user] Newbie question on g.region
Trevor Wiens
twiens at interbaun.com
Thu Jun 8 23:53:25 EDT 2006
On Thu, 08 Jun 2006 18:49:42 -0700
gary <lists at lazygranch.com> wrote:
> For some reason, the moderator isn't approving this message, but I'll
> post it again assuming a computer glitch.
>
> Yes, I know it is frustrating to deal with newbies, but we all have to
> start somewhere.
No problem.
>
> My ultimate goal for GRASS is to do viewshed analysis with r.los. I have
> downloaded NED files from the USGS seamless website. I have also managed
> to convert the .adf file to geotiff using gdal_translate.
>
> My problem concerns starting up GRASS. When I try to run r.in.gdal, I
> get an error message regarding the default region is not set. I gather
> I'm not initializing GRASS properly.
>
> I'm using my own PC, so I can run as root to avoid directory permission
> issues.
>
This shouldn't be necessary except for your install of GRASS.
> I have the "Grass 6 in a nutshell handy" if you need to reference it.
>
Lets cover the basics. I assume that you know the projection of the
image you want to use. Further, you've created a location which has
the same projection parameters? Now if you don't have anything in that
location yet and you are having problems, I would just delete it from
an xterm and start over. In the Grass 6 in a nutshell there is a
section on creating locations. I would review it and try again. If it
is still odd I would then use g.region -p and g.proj -p and see what
you get and how that matches or doesn't match with your file.
When you are setting up a region, you don't need to worry about extents
as their is an option in r.in.gdal to expand the extents of the current
region to match the source image.
HTH.
T
--
Trevor Wiens
twiens at interbaun.com
The significant problems that we face cannot be solved at the same
level of thinking we were at when we created them.
(Albert Einstein)
More information about the grass-user
mailing list