[GRASS-dev] Can GRASS import a *.ige file?

It doesn’t look like r.in.gdal does this. Is there an extension or other way to import an ERDAS *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

There should be an .img file, try open that instead.

On Fri, Mar 1, 2024 at 4:51 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

It doesn’t look like r.in.gdal does this. Is there an extension or other way to import an ERDAS *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Thanks Ana,

I was able to do that. I’m trying to look at the NLCD. While it opens fine and is classified, there are no text labels for the landcover categories. Would these be hiding in the *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 3:01 PM, Anna Petrášová kratochanna@gmail.com wrote:

There should be an .img file, try open that instead.

On Fri, Mar 1, 2024 at 4:51 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

It doesn’t look like r.in.gdal does this. Is there an extension or other way to import an ERDAS *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Hi Michael, I’ve attached an NLCD legend in csv format and text files with categories and color table for GRASS in case it helps.

On Fri, Mar 1, 2024 at 4:34 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

Thanks Ana,

I was able to do that. I’m trying to look at the NLCD. While it opens fine and is classified, there are no text labels for the landcover categories. Would these be hiding in the *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 3:01 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

There should be an .img file, try open that instead.

On Fri, Mar 1, 2024 at 4:51 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

It doesn’t look like r.in.gdal does this. Is there an extension or other way to import an ERDAS *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

(attachments)

nlcd_categories.txt (399 Bytes)
NLCD_landcover_legend_2018_12_17_KSy2gokzzDzRAkOmGE0z.csv (776 Bytes)
nlcd_colors.txt (346 Bytes)

Thanks Brendan,

Any suggestions on how to get this into the raster? Or are you thinking we should export the raster to vector and link the csv that way?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:08 PM, Brendan brendan.harmon@gmail.com wrote:

Hi Michael, I’ve attached an NLCD legend in csv format and text files with categories and color table for GRASS in case it helps.

On Fri, Mar 1, 2024 at 4:34 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

Thanks Ana,

I was able to do that. I’m trying to look at the NLCD. While it opens fine and is classified, there are no text labels for the landcover categories. Would these be hiding in the *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 3:01 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

There should be an .img file, try open that instead.

On Fri, Mar 1, 2024 at 4:51 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

It doesn’t look like r.in.gdal does this. Is there an extension or other way to import an ERDAS *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

<nlcd_categories.txt><NLCD_landcover_legend_2018_12_17_KSy2gokzzDzRAkOmGE0z.csv><nlcd_colors.txt>

Hi Michael. As a rules file for r.category.

r.colors map=nlcd rules=landcover_colors.txt
r.category map=ncld separator=pipe rules=landcover_categories.txt

On Fri, Mar 1, 2024 at 5:39 PM Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Brendan,

Any suggestions on how to get this into the raster? Or are you thinking we should export the raster to vector and link the csv that way?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:08 PM, Brendan <brendan.harmon@gmail.com> wrote:

Hi Michael, I’ve attached an NLCD legend in csv format and text files with categories and color table for GRASS in case it helps.

On Fri, Mar 1, 2024 at 4:34 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

Thanks Ana,

I was able to do that. I’m trying to look at the NLCD. While it opens fine and is classified, there are no text labels for the landcover categories. Would these be hiding in the *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 3:01 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

There should be an .img file, try open that instead.

On Fri, Mar 1, 2024 at 4:51 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

It doesn’t look like r.in.gdal does this. Is there an extension or other way to import an ERDAS *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

<nlcd_categories.txt><NLCD_landcover_legend_2018_12_17_KSy2gokzzDzRAkOmGE0z.csv><nlcd_colors.txt>

Thanks!


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:43 PM, Brendan brendan.harmon@gmail.com wrote:

Hi Michael. As a rules file for r.category.

r.colors map=nlcd rules=landcover_colors.txt
r.category map=ncld separator=pipe rules=landcover_categories.txt

On Fri, Mar 1, 2024 at 5:39 PM Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Brendan,

Any suggestions on how to get this into the raster? Or are you thinking we should export the raster to vector and link the csv that way?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:08 PM, Brendan <brendan.harmon@gmail.com> wrote:

Hi Michael, I’ve attached an NLCD legend in csv format and text files with categories and color table for GRASS in case it helps.

On Fri, Mar 1, 2024 at 4:34 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

Thanks Ana,

I was able to do that. I’m trying to look at the NLCD. While it opens fine and is classified, there are no text labels for the landcover categories. Would these be hiding in the *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 3:01 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

There should be an .img file, try open that instead.

On Fri, Mar 1, 2024 at 4:51 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

It doesn’t look like r.in.gdal does this. Is there an extension or other way to import an ERDAS *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

<nlcd_categories.txt><NLCD_landcover_legend_2018_12_17_KSy2gokzzDzRAkOmGE0z.csv><nlcd_colors.txt>

Michael,
The last time I checked, the NLCD data in .img format is an uncompressed raster. You can save a massive amount of hard drive space by converting the .img files to deflate compressed geotiff, then linking via r.external.

That’s what I did for the 2019 NLCD , https://youtu.be/0NHdWSF96o0 . The 2021 is the same. The .img /ige file is 26 GB for 1 year nationwide. Converting to deflate compressed geotiff takes it down to 1.5 GB.

Hope this helps!

Doug

···

From: grass-dev grass-dev-bounces@lists.osgeo.org on behalf of Michael Barton via grass-dev grass-dev@lists.osgeo.org
Sent: Friday, March 1, 2024 7:00 PM
To: Brendan brendan.harmon@gmail.com
Cc: GRASS users grass-user@lists.osgeo.org; evillasenor713 evillasenor713@gmail.com; GRASS developers list grass-dev@lists.osgeo.org
Subject: [EXTERNAL] Re: [GRASS-dev] Can GRASS import a *.ige file?



This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.

Thanks!


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:43 PM, Brendan brendan.harmon@gmail.com wrote:

Hi Michael. As a rules file for r.category.

r.colors map=nlcd rules=landcover_colors.txt
r.category map=ncld separator=pipe rules=landcover_categories.txt

On Fri, Mar 1, 2024 at 5:39 PM Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Brendan,

Any suggestions on how to get this into the raster? Or are you thinking we should export the raster to vector and link the csv that way?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:08 PM, Brendan <brendan.harmon@gmail.com> wrote:

Hi Michael, I’ve attached an NLCD legend in csv format and text files with categories and color table for GRASS in case it helps.

On Fri, Mar 1, 2024 at 4:34 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

Thanks Ana,

I was able to do that. I’m trying to look at the NLCD. While it opens fine and is classified, there are no text labels for the landcover categories. Would these be hiding in the *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 3:01 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

There should be an .img file, try open that instead.

On Fri, Mar 1, 2024 at 4:51 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

It doesn’t look like r.in.gdal does this. Is there an extension or other way to import an ERDAS *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

<nlcd_categories.txt><NLCD_landcover_legend_2018_12_17_KSy2gokzzDzRAkOmGE0z.csv><nlcd_colors.txt>

The info I downloaded for 2021 had a much more modes sized *.img file and a huge *.ige file (25 Gb or so). It looks like the best approach is to use the *.img file and discard the *.ige file. Perhaps that latter is the uncompressed one.

Michael

···

From: grass-dev <grass-dev-bounces@lists.osgeo.org> on behalf of Michael Barton via grass-dev <grass-dev@lists.osgeo.org>
Sent: Friday, March 1, 2024 7:00 PM
To: Brendan <brendan.harmon@gmail.com>
Cc: GRASS users <grass-user@lists.osgeo.org>; evillasenor713 <evillasenor713@gmail.com>; GRASS developers list <grass-dev@lists.osgeo.org>
Subject: [EXTERNAL] Re: [GRASS-dev] Can GRASS import a *.ige file?


This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.

Thanks!


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:43 PM, Brendan brendan.harmon@gmail.com wrote:

Hi Michael. As a rules file for r.category.

r.colors map=nlcd rules=landcover_colors.txt
r.category map=ncld separator=pipe rules=landcover_categories.txt

On Fri, Mar 1, 2024 at 5:39 PM Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Brendan,

Any suggestions on how to get this into the raster? Or are you thinking we should export the raster to vector and link the csv that way?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:08 PM, Brendan <brendan.harmon@gmail.com> wrote:

Hi Michael, I’ve attached an NLCD legend in csv format and text files with categories and color table for GRASS in case it helps.

On Fri, Mar 1, 2024 at 4:34 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

Thanks Ana,

I was able to do that. I’m trying to look at the NLCD. While it opens fine and is classified, there are no text labels for the landcover categories. Would these be hiding in the *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 3:01 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

There should be an .img file, try open that instead.

On Fri, Mar 1, 2024 at 4:51 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

It doesn’t look like r.in.gdal does this. Is there an extension or other way to import an ERDAS *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

<nlcd_categories.txt><NLCD_landcover_legend_2018_12_17_KSy2gokzzDzRAkOmGE0z.csv><nlcd_colors.txt>

No,
The .ige file is what spills over after the 4GB of the .img file fills up. You need to have both.

···

From: Michael Barton Michael.Barton@asu.edu
Sent: Monday, March 4, 2024 12:12 PM
To: Newcomb, Doug doug_newcomb@fws.gov
Cc: Brendan brendan.harmon@gmail.com; GRASS users grass-user@lists.osgeo.org; evillasenor713 evillasenor713@gmail.com; GRASS developers list grass-dev@lists.osgeo.org
Subject: Re: [EXTERNAL] [GRASS-dev] Can GRASS import a *.ige file?

The info I downloaded for 2021 had a much more modes sized *.img file and a huge *.ige file (25 Gb or so). It looks like the best approach is to use the *.img file and discard the *.ige file. Perhaps that latter is the uncompressed one.

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 4, 2024, at 7:56 AM, Newcomb, Doug doug_newcomb@fws.gov wrote:

Michael,
The last time I checked, the NLCD data in .img format is an uncompressed raster. You can save a massive amount of hard drive space by converting the .img files to deflate compressed geotiff, then linking via r.external.

That’s what I did for the 2019 NLCD , https://youtu.be/0NHdWSF96o0 . The 2021 is the same. The .img /ige file is 26 GB for 1 year nationwide. Converting to deflate compressed geotiff takes it down to 1.5 GB.

Hope this helps!

Doug

From: grass-dev <grass-dev-bounces@lists.osgeo.org> on behalf of Michael Barton via grass-dev <grass-dev@lists.osgeo.org>
Sent: Friday, March 1, 2024 7:00 PM
To: Brendan <brendan.harmon@gmail.com>
Cc: GRASS users <grass-user@lists.osgeo.org>; evillasenor713 <evillasenor713@gmail.com>; GRASS developers list <grass-dev@lists.osgeo.org>
Subject: [EXTERNAL] Re: [GRASS-dev] Can GRASS import a *.ige file?


This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.

Thanks!


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:43 PM, Brendan brendan.harmon@gmail.com wrote:

Hi Michael. As a rules file for r.category.

r.colors map=nlcd rules=landcover_colors.txt
r.category map=ncld separator=pipe rules=landcover_categories.txt

On Fri, Mar 1, 2024 at 5:39 PM Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Brendan,

Any suggestions on how to get this into the raster? Or are you thinking we should export the raster to vector and link the csv that way?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:08 PM, Brendan <brendan.harmon@gmail.com> wrote:

Hi Michael, I’ve attached an NLCD legend in csv format and text files with categories and color table for GRASS in case it helps.

On Fri, Mar 1, 2024 at 4:34 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

Thanks Ana,

I was able to do that. I’m trying to look at the NLCD. While it opens fine and is classified, there are no text labels for the landcover categories. Would these be hiding in the *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 3:01 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

There should be an .img file, try open that instead.

On Fri, Mar 1, 2024 at 4:51 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

It doesn’t look like r.in.gdal does this. Is there an extension or other way to import an ERDAS *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

<nlcd_categories.txt><NLCD_landcover_legend_2018_12_17_KSy2gokzzDzRAkOmGE0z.csv><nlcd_colors.txt>


Sorry, 2 GB is the size the needs the spill file. See https://gdal.org/drivers/raster/hfa.html#raster-hfa

···

From: Newcomb, Doug doug_newcomb@fws.gov
Sent: Monday, March 4, 2024 12:57 PM
To: Michael Barton Michael.Barton@asu.edu
Cc: Brendan brendan.harmon@gmail.com; GRASS users grass-user@lists.osgeo.org; evillasenor713 evillasenor713@gmail.com; GRASS developers list grass-dev@lists.osgeo.org
Subject: Re: [EXTERNAL] [GRASS-dev] Can GRASS import a *.ige file?

No,
The .ige file is what spills over after the 4GB of the .img file fills up. You need to have both.

From: Michael Barton Michael.Barton@asu.edu
Sent: Monday, March 4, 2024 12:12 PM
To: Newcomb, Doug doug_newcomb@fws.gov
Cc: Brendan brendan.harmon@gmail.com; GRASS users grass-user@lists.osgeo.org; evillasenor713 evillasenor713@gmail.com; GRASS developers list grass-dev@lists.osgeo.org
Subject: Re: [EXTERNAL] [GRASS-dev] Can GRASS import a *.ige file?

The info I downloaded for 2021 had a much more modes sized *.img file and a huge *.ige file (25 Gb or so). It looks like the best approach is to use the *.img file and discard the *.ige file. Perhaps that latter is the uncompressed one.

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 4, 2024, at 7:56 AM, Newcomb, Doug doug_newcomb@fws.gov wrote:

Michael,
The last time I checked, the NLCD data in .img format is an uncompressed raster. You can save a massive amount of hard drive space by converting the .img files to deflate compressed geotiff, then linking via r.external.

That’s what I did for the 2019 NLCD , https://youtu.be/0NHdWSF96o0 . The 2021 is the same. The .img /ige file is 26 GB for 1 year nationwide. Converting to deflate compressed geotiff takes it down to 1.5 GB.

Hope this helps!

Doug

From: grass-dev <grass-dev-bounces@lists.osgeo.org> on behalf of Michael Barton via grass-dev <grass-dev@lists.osgeo.org>
Sent: Friday, March 1, 2024 7:00 PM
To: Brendan <brendan.harmon@gmail.com>
Cc: GRASS users <grass-user@lists.osgeo.org>; evillasenor713 <evillasenor713@gmail.com>; GRASS developers list <grass-dev@lists.osgeo.org>
Subject: [EXTERNAL] Re: [GRASS-dev] Can GRASS import a *.ige file?


This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.

Thanks!


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:43 PM, Brendan brendan.harmon@gmail.com wrote:

Hi Michael. As a rules file for r.category.

r.colors map=nlcd rules=landcover_colors.txt
r.category map=ncld separator=pipe rules=landcover_categories.txt

On Fri, Mar 1, 2024 at 5:39 PM Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Brendan,

Any suggestions on how to get this into the raster? Or are you thinking we should export the raster to vector and link the csv that way?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:08 PM, Brendan <brendan.harmon@gmail.com> wrote:

Hi Michael, I’ve attached an NLCD legend in csv format and text files with categories and color table for GRASS in case it helps.

On Fri, Mar 1, 2024 at 4:34 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

Thanks Ana,

I was able to do that. I’m trying to look at the NLCD. While it opens fine and is classified, there are no text labels for the landcover categories. Would these be hiding in the *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 3:01 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

There should be an .img file, try open that instead.

On Fri, Mar 1, 2024 at 4:51 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

It doesn’t look like r.in.gdal does this. Is there an extension or other way to import an ERDAS *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

<nlcd_categories.txt><NLCD_landcover_legend_2018_12_17_KSy2gokzzDzRAkOmGE0z.csv><nlcd_colors.txt>



Ah!! So that is what the *.ige file is for.

Michael

···

From: Michael Barton Michael.Barton@asu.edu
Sent: Monday, March 4, 2024 12:12 PM
To: Newcomb, Doug doug_newcomb@fws.gov
Cc: Brendan brendan.harmon@gmail.com; GRASS users grass-user@lists.osgeo.org; evillasenor713 evillasenor713@gmail.com; GRASS developers list grass-dev@lists.osgeo.org
Subject: Re: [EXTERNAL] [GRASS-dev] Can GRASS import a *.ige file?

The info I downloaded for 2021 had a much more modes sized *.img file and a huge *.ige file (25 Gb or so). It looks like the best approach is to use the *.img file and discard the *.ige file. Perhaps that latter is the uncompressed one.

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 4, 2024, at 7:56 AM, Newcomb, Doug doug_newcomb@fws.gov wrote:

Michael,
The last time I checked, the NLCD data in .img format is an uncompressed raster. You can save a massive amount of hard drive space by converting the .img files to deflate compressed geotiff, then linking via r.external.

That’s what I did for the 2019 NLCD , https://youtu.be/0NHdWSF96o0 . The 2021 is the same. The .img /ige file is 26 GB for 1 year nationwide. Converting to deflate compressed geotiff takes it down to 1.5 GB.

Hope this helps!

Doug

From: grass-dev <grass-dev-bounces@lists.osgeo.org> on behalf of Michael Barton via grass-dev <grass-dev@lists.osgeo.org>
Sent: Friday, March 1, 2024 7:00 PM
To: Brendan <brendan.harmon@gmail.com>
Cc: GRASS users <grass-user@lists.osgeo.org>; evillasenor713 <evillasenor713@gmail.com>; GRASS developers list <grass-dev@lists.osgeo.org>
Subject: [EXTERNAL] Re: [GRASS-dev] Can GRASS import a *.ige file?


This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.

Thanks!


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:43 PM, Brendan brendan.harmon@gmail.com wrote:

Hi Michael. As a rules file for r.category.

r.colors map=nlcd rules=landcover_colors.txt
r.category map=ncld separator=pipe rules=landcover_categories.txt

On Fri, Mar 1, 2024 at 5:39 PM Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Brendan,

Any suggestions on how to get this into the raster? Or are you thinking we should export the raster to vector and link the csv that way?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:08 PM, Brendan <brendan.harmon@gmail.com> wrote:

Hi Michael, I’ve attached an NLCD legend in csv format and text files with categories and color table for GRASS in case it helps.

On Fri, Mar 1, 2024 at 4:34 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

Thanks Ana,

I was able to do that. I’m trying to look at the NLCD. While it opens fine and is classified, there are no text labels for the landcover categories. Would these be hiding in the *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 3:01 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

There should be an .img file, try open that instead.

On Fri, Mar 1, 2024 at 4:51 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

It doesn’t look like r.in.gdal does this. Is there an extension or other way to import an ERDAS *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

<nlcd_categories.txt><NLCD_landcover_legend_2018_12_17_KSy2gokzzDzRAkOmGE0z.csv><nlcd_colors.txt>


Thanks much. This is good to know. Too bad that it is sort of hidden like this.

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 5, 2024, at 10:39 AM, Paul Harwood runette@gmail.com wrote:

see this from “way-back”

http://web.archive.org/web/20110205035551/http://home.gdal.org/projects/imagine/ige_format.html

The actual GDAL support is currently described here https://gdal.org/drivers/raster/hfa.html - I think the .ige files are described as “spill files” there

On Mon, 4 Mar 2024 at 18:00, Michael Barton via grass-user <grass-user@lists.osgeo.org> wrote:

Ah!! So that is what the *.ige file is for.

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 4, 2024, at 10:57 AM, Newcomb, Doug <doug_newcomb@fws.gov> wrote:

No,
The .ige file is what spills over after the 4GB of the .img file fills up. You need to have both.


From: Michael Barton <Michael.Barton@asu.edu>
Sent: Monday, March 4, 2024 12:12 PM
To: Newcomb, Doug <doug_newcomb@fws.gov>
Cc: Brendan <brendan.harmon@gmail.com>; GRASS users <grass-user@lists.osgeo.org>; evillasenor713 <evillasenor713@gmail.com>; GRASS developers list <grass-dev@lists.osgeo.org>
Subject: Re: [EXTERNAL] [GRASS-dev] Can GRASS import a *.ige file?

The info I downloaded for 2021 had a much more modes sized *.img file and a huge *.ige file (25 Gb or so). It looks like the best approach is to use the *.img file and discard the *.ige file. Perhaps that latter is the uncompressed one.

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 4, 2024, at 7:56 AM, Newcomb, Doug <doug_newcomb@fws.gov> wrote:

Michael,
The last time I checked, the NLCD data in .img format is an uncompressed raster. You can save a massive amount of hard drive space by converting the .img files to deflate compressed geotiff, then linking via r.external.

That’s what I did for the 2019 NLCD , https://youtu.be/0NHdWSF96o0 . The 2021 is the same. The .img /ige file is 26 GB for 1 year nationwide. Converting to deflate compressed geotiff takes it down to 1.5 GB.

Hope this helps!

Doug


From: grass-dev <grass-dev-bounces@lists.osgeo.org> on behalf of Michael Barton via grass-dev <grass-dev@lists.osgeo.org>
Sent: Friday, March 1, 2024 7:00 PM
To: Brendan <brendan.harmon@gmail.com>
Cc: GRASS users <grass-user@lists.osgeo.org>; evillasenor713 <evillasenor713@gmail.com>; GRASS developers list <grass-dev@lists.osgeo.org>
Subject: [EXTERNAL] Re: [GRASS-dev] Can GRASS import a *.ige file?


This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.

Thanks!


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:43 PM, Brendan <brendan.harmon@gmail.com> wrote:

Hi Michael. As a rules file for r.category.

r.colors map=nlcd rules=landcover_colors.txt
r.category map=ncld separator=pipe rules=landcover_categories.txt

On Fri, Mar 1, 2024 at 5:39 PM Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Brendan,

Any suggestions on how to get this into the raster? Or are you thinking we should export the raster to vector and link the csv that way?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:08 PM, Brendan <brendan.harmon@gmail.com> wrote:

Hi Michael, I’ve attached an NLCD legend in csv format and text files with categories and color table for GRASS in case it helps.

On Fri, Mar 1, 2024 at 4:34 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

Thanks Ana,

I was able to do that. I’m trying to look at the NLCD. While it opens fine and is classified, there are no text labels for the landcover categories. Would these be hiding in the *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 3:01 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

There should be an .img file, try open that instead.

On Fri, Mar 1, 2024 at 4:51 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

It doesn’t look like r.in.gdal does this. Is there an extension or other way to import an ERDAS *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

<nlcd_categories.txt><NLCD_landcover_legend_2018_12_17_KSy2gokzzDzRAkOmGE0z.csv><nlcd_colors.txt>


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

see this from “way-back”

http://web.archive.org/web/20110205035551/http://home.gdal.org/projects/imagine/ige_format.html

The actual GDAL support is currently described here https://gdal.org/drivers/raster/hfa.html - I think the .ige files are described as “spill files” there

On Mon, 4 Mar 2024 at 18:00, Michael Barton via grass-user <grass-user@lists.osgeo.org> wrote:

Ah!! So that is what the *.ige file is for.

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 4, 2024, at 10:57 AM, Newcomb, Doug <doug_newcomb@fws.gov> wrote:

No,
The .ige file is what spills over after the 4GB of the .img file fills up. You need to have both.


From: Michael Barton <Michael.Barton@asu.edu>
Sent: Monday, March 4, 2024 12:12 PM
To: Newcomb, Doug <doug_newcomb@fws.gov>
Cc: Brendan <brendan.harmon@gmail.com>; GRASS users <grass-user@lists.osgeo.org>; evillasenor713 <evillasenor713@gmail.com>; GRASS developers list <grass-dev@lists.osgeo.org>
Subject: Re: [EXTERNAL] [GRASS-dev] Can GRASS import a *.ige file?

The info I downloaded for 2021 had a much more modes sized *.img file and a huge *.ige file (25 Gb or so). It looks like the best approach is to use the *.img file and discard the *.ige file. Perhaps that latter is the uncompressed one.

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 4, 2024, at 7:56 AM, Newcomb, Doug <doug_newcomb@fws.gov> wrote:

Michael,
The last time I checked, the NLCD data in .img format is an uncompressed raster. You can save a massive amount of hard drive space by converting the .img files to deflate compressed geotiff, then linking via r.external.

That’s what I did for the 2019 NLCD , https://youtu.be/0NHdWSF96o0 . The 2021 is the same. The .img /ige file is 26 GB for 1 year nationwide. Converting to deflate compressed geotiff takes it down to 1.5 GB.

Hope this helps!

Doug


From: grass-dev <grass-dev-bounces@lists.osgeo.org> on behalf of Michael Barton via grass-dev <grass-dev@lists.osgeo.org>
Sent: Friday, March 1, 2024 7:00 PM
To: Brendan <brendan.harmon@gmail.com>
Cc: GRASS users <grass-user@lists.osgeo.org>; evillasenor713 <evillasenor713@gmail.com>; GRASS developers list <grass-dev@lists.osgeo.org>
Subject: [EXTERNAL] Re: [GRASS-dev] Can GRASS import a *.ige file?


This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.

Thanks!


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:43 PM, Brendan <brendan.harmon@gmail.com> wrote:

Hi Michael. As a rules file for r.category.

r.colors map=nlcd rules=landcover_colors.txt
r.category map=ncld separator=pipe rules=landcover_categories.txt

On Fri, Mar 1, 2024 at 5:39 PM Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Brendan,

Any suggestions on how to get this into the raster? Or are you thinking we should export the raster to vector and link the csv that way?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 4:08 PM, Brendan <brendan.harmon@gmail.com> wrote:

Hi Michael, I’ve attached an NLCD legend in csv format and text files with categories and color table for GRASS in case it helps.

On Fri, Mar 1, 2024 at 4:34 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

Thanks Ana,

I was able to do that. I’m trying to look at the NLCD. While it opens fine and is classified, there are no text labels for the landcover categories. Would these be hiding in the *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton

On Mar 1, 2024, at 3:01 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

There should be an .img file, try open that instead.

On Fri, Mar 1, 2024 at 4:51 PM Michael Barton via grass-dev <grass-dev@lists.osgeo.org> wrote:

It doesn’t look like r.in.gdal does this. Is there an extension or other way to import an ERDAS *.ige file?

Michael


C. Michael Barton
Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu)
Arizona State University
Tempe, AZ 85287-2701
USA

Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net)

personal website: http://www.public.asu.edu/~cmbarton


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

<nlcd_categories.txt><NLCD_landcover_legend_2018_12_17_KSy2gokzzDzRAkOmGE0z.csv><nlcd_colors.txt>


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user