Convert ASC file with Landuse data to Raster TIFF
Hi, I have an ASC file with integer landuse data, values from 1 to 19. The file will imports into GM as elevation data. I cannot find a way to convert the loaded data to raster over the full range of the potential data (1-19). Since there is a one-to-one relationship with the raster (pixel) value to a landuse code, these values must be preserved. If I export the data as raster, it will find an optimal pallete and truncate my 1-19 to some other used range, say 1-9. But it does not provide the truncation used so If I re-import the file, it would be scrambled. The pallete for the loaded ASC cannot be assigned but only various shader options are available; at least I can't find a way to do it. Since the pallete for the loaded ASC cannot be assigned I can't export the file as raster using the available "use pallete from file" option, since this option interprets the pallete of the displayed data which I cannot change. Any ideas on how to convert the ASC data to landuse raster TIFF???
Answers
-
I was able to re-classify the ASC file, using
-Load ASC
-Analysis->Raster Reclassify
-'load a pallete file' (from the drop down for raster reclassification), for the desired colors and pixel values
-assign a one-to-one pixel value, then reclassify
-then export the reclassification as a GeoTiff
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 346 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 639 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 417 Projection Questions
- 829 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 920 Bug Report
- 559 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 573 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 241 How I use Global Mapper
- 108 Global Mapper Forum Website