g.region error

Shawn Boeser sboeser at sparkie.nrri.umn.edu
Mon Mar 27 11:07:17 EST 1995



Thanks Bill for your first reponse.  I'm running the SWAT program
which was developed with a GRASS interface.  One of the SWAT developers
told me to try UTM or Albers for my projection.

I'm converting Arc/Info
vectors to GRIDS, then converting the GRID to an ascii file.  I've rearranged
the ascii header to conform to GRASS and then converted it to a grass raster
using r.in.ascii.

When I run my swat program it calls r.stats.  Then I get the following errors
depending on which projection I've defined in the location.

If I use the UTM projection I get this error:

    >WARNING: G_set_window(): North must be larger than South

r.stats still works despite the error but, will bomb out later.

If I use the Albers projection I get this error:

   >0 WARNING: G_set_window(): North must be larger than South
   >sh: /erdas/grass4.1/mapgen/bin/proj: not found
   >WARNING: Unknown lat and long, either projection is not correct
         or mapgen proj function is not working

and r.stats does not work.

Here is my g.region -p for the UTM projection:

projection: 1 (UTM)
zone:       17
north:      2278984.59124088
south:      2264863.40875912
east:       1024728.93333333
west:       1012293.06666667
nsres:      101.59124088
ewres:      101.93333333
rows:       139
cols:       122

Here is my g.region -p for Albers:

projection: 99 (Albers Equal Area)
zone:       0
north:      2313216
south:      2262345
east:       1030049
west:       953302
nsres:      98.97081712
ewres:      100.06127771
rows:       514
cols:       767

Any help will be appreciated.  I can't get on with my project until
I get beyond this error.

Shawn Boeser
*******************************************************************************
Shawn Boeser-GIS Specialist
University of Minnesota-Duluth
Natural Resources Research Institute
Center for Water and the Environment
5013 Miller Trunk Highway
Duluth, MN  55811-1442
E-mail sboeser at sparkie.nrri.umn.edu
218-720-4388  Direct Line
218-720-9412  Fax



> From brown at ginko.cecer.army.mil Fri Mar 24 16:38:04 1995
> From: Bill Brown <brown at ginko.cecer.army.mil>
> Date: Fri, 24 Mar 95 16:38:51 -0600
> To: grassu-list at max.cecer.army.mil
> Subject: Re:  g.region error
> Cc: sboeser at sparkie.nrri.umn.edu
> Content-Length: 1229
>
>
> Shawn,
>
> Just a guess, but probably whatever program you are trying to
> run is resetting the region to an illegal value.  If you're
> running d.3d, I think I remember a bug when trying to run it
> with a lat-lon dataset using 90 N and -90 S ... try using
> d.zoom or g.region to set N & S at least 1 ns_res in from the
> poles.  If you're running some other program, tell us what it
> is and send the output from g.region -p.
>
> P.S. I'm cc'ing you on this because when you tried to subscribe,
> you sent your SUB to grassu-list instead of grassu-request.
>                                                  ^^^^^^^
> *****************************************************************************
> *****************************************************************************
> To subscribe to one of the lists:
>
> Send a mail message to either
>
>         grassu-request at max.cecer.army.mil
>           or
>         grassp-request at max.cecer.army.mil
>
> with "subscribe [yourname]" in the subject or body.  Replace [yourname]
> with your real name.  The list will add the e-mail address that it finds in
> the "From:" field of your letter.
> *****************************************************************************
> *****************************************************************************
>
> - Bill B.
>
>
>




More information about the grass-user mailing list