Re: [GRASS-user] reclass raster with all unique values?

2013-07-05 Thread Michael Treglia
You might have already thought of these techniques, but here are two
options that quickly come to mind...

You should be be able to mask each watershed individually (from a vector
layer), and then run r.reclass on the area within each watershed boundary.

Alternatively, if you have a vector layer for watershed boundaries, what
about creating a numeric attribute in which you assign each unique
watershed a different number. Then, rasterize the watershed layer.

If you have a lot of watersheds, it seems like the second option would be
easier... and there obviously might be a more elegant solution that I'm not
aware of.

Hope that helps!
Mike


On Fri, Jul 5, 2013 at 2:03 PM, Stephen Sefick  wrote:

> I have a raster map with watersheds that are the same value.  Is there an
> easy way to reclass the map with every distinc basin to have a unique value?
>
> many thanks,
>
>
> --
> Stephen Sefick
> 
> Auburn University
> Biological Sciences
> 331 Funchess Hall
> Auburn, Alabama
> 36849
> 
> sas0...@auburn.edu
> http://www.auburn.edu/~sas0025
> 
>
> Let's not spend our time and resources thinking about things that are so
> little or so large that all they really do for us is puff us up and make us
> feel like gods.  We are mammals, and have not exhausted the annoying little
> problems of being mammals.
>
> -K. Mullis
>
> "A big computer, a complex algorithm and a long time does not equal
> science."
>
>   -Robert Gentleman
>
> __**_
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/grass-user
>
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Issue with SVN GRASS build on Windows

2013-03-20 Thread Michael Treglia
Hi all,

Due to an earlier issue with i.landsat.toar, I upgraded to the most recent
version of GRASS available (found here):
http://wingrass.fsv.cvut.cz/grass64/. I was previously using the latest
Stable build (here: http://grass.osgeo.org/grass64/binary/mswindows/native/).
I am running Windows 7, 64 bit.

 When I try to run certain functions, I get errors related to DLLs. For
example, a Windows error pops up when I try to import or export a raster
(r.in.gdal and r.out.gdal through the GUI). The import window will appear
once I click OK to the error, and if I go to use the Import function again,
I do not get the error again during that session.

However, the export function is not working at all. I get a couple of
errors that pop up in Windows:
1) The procedure entry point H5Eauto_is_V2 could not be loacted in the
dynamic lik library hdf5dll.dll
2) The procedure entry point GTIFFreeMemory could not be located in the
dynamic link library gdal19.dll

In case this helps, I've pasted what appears in the Command Console when I
simply try to open GRASS and use the GUI to navigate to Export Common
Raster Formats at the end of the e-mail

Errors also appear in the black-background Command Window along the lines
of this:ERROR 1: Can't load requested DLL:
C:\Python27\Lns\gdal_HDF5Image.dll
127: The specified procedure could not be found.

I tried to install an SVN build of GRASS 7 earlier in the week, and had
similar error messages come up.

Should I just try to use the Stable version of GRASS for now? Or am I
probably doing something incorrectly on the install?

I'm still new to GRASS, and I realize I might be better to run it on a
Linux boot (or at least in a Virtual Machine?), but I won't have time to
learn more about that right now.

Thank you again for any help!
Best regards,
Mike




Text from the Command Console:
Traceback (most recent call last):
  File "C:\Program Files (x86)\GRASS GIS
6.4.3svn\etc\wxpython\lmgr\frame.py", line 557, in OnMenuCmd

GUI(parent = self).ParseCommand(cmd)
  File "C:\Program Files (x86)\GRASS GIS
6.4.3svn\etc\wxpython\gui_core\forms.py", line 1867, in
ParseCommand

blackList = _blackList)
  File "C:\Program Files (x86)\GRASS GIS
6.4.3svn\etc\python\grass\script\task.py", line 470, in
parse_interface

tree = etree.fromstring(get_interface_description(name))
  File "C:\Program Files (x86)\GRASS GIS
6.4.3svn\Python27\lib\xml\etree\ElementTree.py", line 1283,
in XML

return parser.close()
  File "C:\Program Files (x86)\GRASS GIS
6.4.3svn\Python27\lib\xml\etree\ElementTree.py", line 1636,
in close

self._raiseerror(v)
  File "C:\Program Files (x86)\GRASS GIS
6.4.3svn\Python27\lib\xml\etree\ElementTree.py", line 1488,
in _raiseerror

raise err
xml.etree.ElementTree
.
ParseError
:
unclosed token: line 243, column 1
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] i.landsat.toar problem: Failed to identify satellite

2013-03-20 Thread Michael Treglia
Hi Nikos,

Thanks for the help! I just downloaded and installed the most recent
Windows binaries, and i.landsat.toar worked perfectly with my data (Landsat
5 by the way).

Also, I'm now able to install add-on modules.

Thanks again!
Mike

On Wed, Mar 20, 2013 at 1:25 PM, Nikos Alexandris
wrote:

> Michael Treglia wrote:
> > Hi All,
>
> Hi Mike,
>
> > I'm new to GRASS GIS, but have generally been successful in what I'm
> trying
> > to do. One problem I've come upon is using a metadata file for the
> > i.landsat.toar command. For one particular set of imagery I am working
> > with, I get an error: "ERROR: Failed to identify satellite"
>
> If I may ask, which Landsat products do you use? TM5 or ETM+ 7 (pre- or
> post-2003 for the latter)?
>
> > My immediate solution for now was to take metadata that was formatted a
> bit
> > differently from an image that I downloaded a while back, and replace
> > appropriate fields. But, as I download new Landsat images, that is
> > cumbersome...
>
> No need to do so.
>
> > I am working on GRASS 6.4.3RC2, which I just downloaded from the main
> > website in the last couple of weeks.
>
> There were some issues but they are all fixed as far as I can tell (thanks
> to
> Jorge Tizado).  I have tested myself the most recent versions of
> i.landsat.toar (under Linux, for grass64 and grass70) and they work(ed)
> with
> both the old and the new metadata files that come along with the Landsat
> bands.
>
> > I saw this e-mail thread, which makes it seem like this problem should
> have
> > been solved:
> > http://lists.osgeo.org/pipermail/grass-user/2012-December/066558.html
> > Do I need to somehow install the new version of the i.landsat.toar
> command?
>
> I guess so.
>
>
> > My computer is running Windows 7 64bit.
>
> So the actual question, if I don't miss anything, is:  how to get the most
> recent version of i.landsat.toar compiled and running for Windows (7,
> 64-bit)?
>
> Here are "latest" binaries provided by Martin Landa:
> <http://wingrass.fsv.cvut.cz/grass64/>.  This should be sufficient.
>
> If not, here is a pointer to compile all the stuff from scratch (although I
> haven't compiled GRASS for Windows so far):
> <http://trac.osgeo.org/grass/wiki/CompileOnWindows>.
>
> Note, you can get the latest SVN source code version -- it's described in
> the
> sub-section:  "GRASS 6.4.svn (releasebranch_64)".
>
> Hope this helps you.  If it is too much for you (compiling the staff from
> scratch) then maybe someone has already done that and can assist?
>
> Best, Nikos
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] i.landsat.toar problem: Failed to identify satellite

2013-03-20 Thread Michael Treglia
Hi All,

I'm new to GRASS GIS, but have generally been successful in what I'm trying
to do. One problem I've come upon is using a metadata file for the
i.landsat.toar command. For one particular set of imagery I am working
with, I get an error: "ERROR: Failed to identify satellite"

My immediate solution for now was to take metadata that was formatted a bit
differently from an image that I downloaded a while back, and replace
appropriate fields. But, as I download new Landsat images, that is
cumbersome...

I am working on GRASS 6.4.3RC2, which I just downloaded from the main
website in the last couple of weeks. I saw this e-mail thread, which makes
it seem like this problem should have been solved:
http://lists.osgeo.org/pipermail/grass-user/2012-December/066558.html
Do I need to somehow install the new version of the i.landsat.toar command?

My computer is running Windows 7 64bit.

On a side-note, I haven't been able to install any add-on modules. I've
tried, using the GUI, and below is what happens.
 g.extension.py extension=i.landsat.trim svnurl=
http://svn.osgeo.org/grass/grass-addons/grass6
Downloading precompiled GRASS Addons ...
ERROR: GRASS Addons  not found

I'd greatly appreciate any suggestions.
Thank you!

Sincerely,
Mike
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user