[GRASS-dev] [EXTERNAL] Re: Can GRASS import a *.ige file?
Newcomb, Doug
doug_newcomb at fws.gov
Mon Mar 4 06:56:22 PST 2024
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 at lists.osgeo.org> on behalf of Michael Barton via grass-dev <grass-dev at lists.osgeo.org>
Sent: Friday, March 1, 2024 7:00 PM
To: Brendan <brendan.harmon at gmail.com>
Cc: GRASS users <grass-user at lists.osgeo.org>; evillasenor713 <evillasenor713 at gmail.com>; GRASS developers list <grass-dev at 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<https://scas.asu.edu/>)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu<https://shesc.asu.edu/>)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu<https://complexity.asu.edu/>)
Arizona State University
Tempe, AZ 85287-2701
USA
Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io<https://openmodelingfoundation.github.io/>)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net<https://comses.net/>)
personal website: http://www.public.asu.edu/~cmbarton
On Mar 1, 2024, at 4:43 PM, Brendan <brendan.harmon at 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 at asu.edu<mailto:Michael.Barton at 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<https://scas.asu.edu/>)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu<https://shesc.asu.edu/>)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu<https://complexity.asu.edu/>)
Arizona State University
Tempe, AZ 85287-2701
USA
Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io<https://urldefense.com/v3/__https://openmodelingfoundation.github.io/__;!!IKRxdwAv5BmarQ!fYLFZEUpm1jpIJ_wm9a70bYCdA7aB_txlsEaQfBpT7KsCcPE0D-XCqh0G78yAHLt9z7W65xcJpglR-yakP99V5Z7ExxQeoo$>)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net<https://urldefense.com/v3/__https://comses.net__;!!IKRxdwAv5BmarQ!fYLFZEUpm1jpIJ_wm9a70bYCdA7aB_txlsEaQfBpT7KsCcPE0D-XCqh0G78yAHLt9z7W65xcJpglR-yakP99V5Z7qCnxTyY$>)
personal website: http://www.public.asu.edu/~cmbarton
On Mar 1, 2024, at 4:08 PM, Brendan <brendan.harmon at gmail.com<mailto:brendan.harmon at 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 at lists.osgeo.org<mailto:grass-dev at 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<https://scas.asu.edu/>)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu<https://shesc.asu.edu/>)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu<https://complexity.asu.edu/>)
Arizona State University
Tempe, AZ 85287-2701
USA
Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io<https://urldefense.com/v3/__https://openmodelingfoundation.github.io/__;!!IKRxdwAv5BmarQ!bVxBv8fT07vVYMHReffcj46QeSJAOyIOA16eJ_3q6fBQ7vAnFxJLli7AZ-NGLJXL2OxJ3h3sxzkspsmF4eq_UYczH51sZMg$>)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net<https://urldefense.com/v3/__https://comses.net__;!!IKRxdwAv5BmarQ!bVxBv8fT07vVYMHReffcj46QeSJAOyIOA16eJ_3q6fBQ7vAnFxJLli7AZ-NGLJXL2OxJ3h3sxzkspsmF4eq_UYcz1dBigD8$>)
personal website: http://www.public.asu.edu/~cmbarton
On Mar 1, 2024, at 3:01 PM, Anna Petrášová <kratochanna at gmail.com<mailto:kratochanna at 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 at lists.osgeo.org<mailto:grass-dev at 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<https://scas.asu.edu/>)
Professor, School of Human Evolution & Social Change (https://shesc.asu.edu<https://shesc.asu.edu/>)
Director, Center for Social Dynamics & Complexity (https://complexity.asu.edu<https://complexity.asu.edu/>)
Arizona State University
Tempe, AZ 85287-2701
USA
Executive Director, Open Modeling Foundation (https://openmodelingfoundation.github.io<https://urldefense.com/v3/__https://openmodelingfoundation.github.io/__;!!IKRxdwAv5BmarQ!fudlB0xFlO51zk0b4JnSIyVxMZfbrnjh5DDgX_3YvhtKbUyVC6kMDWh-tA0uov3VLJvJy1abd878bkRl5fuerQQvh1Q$>)
Director, Network for Computational Modeling in Social & Ecological Sciences (https://comses.net<https://urldefense.com/v3/__https://comses.net__;!!IKRxdwAv5BmarQ!fudlB0xFlO51zk0b4JnSIyVxMZfbrnjh5DDgX_3YvhtKbUyVC6kMDWh-tA0uov3VLJvJy1abd878bkRl5fueXhgcoaQ$>)
personal website: http://www.public.asu.edu/~cmbarton
_______________________________________________
grass-dev mailing list
grass-dev at lists.osgeo.org<mailto:grass-dev at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/grass-dev<https://urldefense.com/v3/__https://lists.osgeo.org/mailman/listinfo/grass-dev__;!!IKRxdwAv5BmarQ!fudlB0xFlO51zk0b4JnSIyVxMZfbrnjh5DDgX_3YvhtKbUyVC6kMDWh-tA0uov3VLJvJy1abd878bkRl5fuepg1HNbo$>
_______________________________________________
grass-dev mailing list
grass-dev at lists.osgeo.org<mailto:grass-dev at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/grass-dev<https://urldefense.com/v3/__https://lists.osgeo.org/mailman/listinfo/grass-dev__;!!IKRxdwAv5BmarQ!bVxBv8fT07vVYMHReffcj46QeSJAOyIOA16eJ_3q6fBQ7vAnFxJLli7AZ-NGLJXL2OxJ3h3sxzkspsmF4eq_UYcz28NVTcw$>
<nlcd_categories.txt><NLCD_landcover_legend_2018_12_17_KSy2gokzzDzRAkOmGE0z.csv><nlcd_colors.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20240304/66167b2e/attachment-0001.htm>
More information about the grass-dev
mailing list