Global Mapper 16
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Global Mapper User
    Join Date
    Jul 2012
    Posts
    20

    Default Converting USGS National Land Cover Data from ERDAS to Imagine to and ESRI Format

    I am trying to convert/tile and reproject the 2006 USGS NLCD which is in a ERDAS IMG format to ASCII GRID if possible. Any suggestions? Also, I want to grid into 1 square degree tiles if possible, this is done in the gridding dialog for rows/columns?
    Thanks
    Greg

  2. #2
    Administrator
    Join Date
    Jun 2007
    Posts
    16,451

    Default

    Greg,

    If the IMG files are coming in as grids and not images, just use the File->Export Elevation DAta menu command to export to Arc ASCII Grid files. Use the Gridding tab of the export dialog to split into tiles of your required size.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.globalmapper.com

  3. #3
    Global Mapper User
    Join Date
    Jul 2012
    Posts
    20

    Default

    The IMG file appears to be a raster file, there is an associated IGE file that contains all of the actual data. Each pixel corresponds to a 30m bin that has a land use code( RGB Value - Pal IdX # and Land Use Name), so when I move on the map, the status bar on the bottom is telling me what land use type I am in. Basically I want to put the Pal Idx #( which correlates to a land use type) in an asci grid file. Is there a way to take this raster file and get into a Grid type format?
    Greg

  4. #4
    Administrator
    Join Date
    Jun 2007
    Posts
    16,451

    Default

    Greg,

    Can you change the palette to be a grayscale one, so that palette index 0 is RGB(0,0,0), palette index 1 is RGB(1,1,1), etc? You can do this on the Palette tab of the Options dialog for the layer. Then use File->Export Raster Data to export a BIL file that is an 8-bit grayscale file. You can then load that BIL back in and you will be prompted to treat it as elevation or imagery. Select elevation, then you will have a grid that you can export to Arc ASCII Grid.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.globalmapper.com

  5. #5
    Global Mapper User
    Join Date
    Jul 2012
    Posts
    20

    Default

    I did as you recommended and it works great, Thanks!

    Two Questions question: Is there a straight forward way to re-grid upon export in lat/long square degree tiles? I noticed the ability to set export bounds, but this would require me to do each individual tile manually. I am trying to do this in one batch export. I can't seem to work out the regridding option( rows, columns or other) that would result in straightforward square degree tiles( 34.0 to 35.0N, -117.0 to -118.0)

  6. #6
    Administrator
    Join Date
    Jun 2007
    Posts
    16,451

    Default

    If you set your projection to Geographic (if it's not already) on the Projection tab of the Configuration dialog, then do the export and set the Export Bounds to start on an exact degree boundary and end on an exact degree boundary, then on the Gridding tab specify to make the rows and columns 1 degree in size, that should work.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.globalmapper.com

  7. #7
    Global Mapper User
    Join Date
    Jul 2012
    Posts
    20

    Default

    Mike -
    I had one wrinkle in the conversion that is stumping me. The output ascii grid has a mix of integers and float values. I assumed this is caused by the step of repaletting/exporting to bil/importing bil to elevation grid in message #4 above. There were actually 99 ids in the original img file, but only 25 of those were assigned colors, land use types. So my first id in the source file was id# 21, I made this (1,1,1) and then #31 which I made (2,2,2)...etc up to (25,25,25). Is there an obvious step where I could have introduced the float values?
    Greg

  8. #8
    Administrator
    Join Date
    Jun 2007
    Posts
    16,451

    Default

    Greg,

    Make sure to disable resampling for the files before you export. By default gridded files will use bilinear interpolation, so if any export samples aren't right on a sample center you will get an interpolated value, which could be non-integer. You definitely don't want resampling for this type of file.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.globalmapper.com

  9. #9
    Global Mapper User
    Join Date
    Jul 2012
    Posts
    20

    Default

    Thanks - one more wrinkle, I did the img to bil export and turned of resampling, now when I import the bil back in, it does not give me the option to treat as elevation or raster file...any ideas...?

  10. #10
    Administrator
    Join Date
    Jun 2007
    Posts
    16,451

    Default

    Did you make sure to export the BIL as a grayscale file? The BIL has to be an 8-bit BIL to get the prompt for elevation or imagery. If you created say a 24-bit RGB BIL then it would be assumed as imagery.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.globalmapper.com

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. UK and Europe Land Cover
    By kentman in forum Global Mapper Showcase
    Replies: 2
    Last Post: 05-16-2012, 01:56 PM
  2. Replies: 2
    Last Post: 08-28-2010, 08:00 AM
  3. Converting Land Cover Shapefile to Geotiff
    By Radio in forum Vector Data
    Replies: 15
    Last Post: 07-20-2010, 05:21 PM
  4. About exorting raster data in erdas imagine format
    By kaichand989 in forum Raster Data
    Replies: 5
    Last Post: 01-08-2010, 03:26 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO 3.6.1
Copyright 2008-2012 Globalmapperforum.com
All times are GMT. The time now is 10:06 AM.
vBulletin 4.0 skin by CompleteVB