classy reclassing

John E. Parks john at tang.uark.edu
Wed May 27 16:53:34 EDT 1992


] I have just reclassed 822 categories into 8 categories using what I would
] call the, uhm, hard way.  That is, I used the reclass command and manually
] changed 822 numbers.  I kept saying to myself...there has to be a better
] way, there has to be a better way...
] 
] Is there a better way?

A couple of suggestions...

1) if you're reclassing the elevation models into equal intervals, use
   r.rescale.
2) if you're not, you can run r.reclass from command line and enter rules
   for the reclass.  i.e....
   # r.reclass input=elevation output=new_elevation
   > 0 thru 5 = 0
   > 6 thru 20 = 1
   > 21 thru 45 = 2
   > 46 = 3
   > 47 thru 1000 = 4
   > end
   #

Regards,

    __                   __ 
   /  )      /          /  )     Research Specialist
  /   / _   /_  _      /__/      Ctr for Advanced Spatial Technologies
  (__/_(_)_/ /_/ )_   /   _      National Ctr for Resource Innovations
    /                            12 Ozark Hall, Univ. of Arkansas
   /                             Fayetteville, AR  72701
John E. Parks                    phone: (501) 575-6159
[john at tang.uark.edu] Internet    or: (501) 575-4575



More information about the grass-user mailing list