Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

error in running geogrid

Hello,
I am using MODIS 500m, MCD12Q1 land cover data 2010 for my parent domain from Google Earth Engine in .tif file format. The data is of "WGS-84". I reprojected it into EPSG:4087 - WGS 84 / World Equidistant Cylindrical then converted it into binary format by using "gdal_translate -of ENVI foo.tif data.bil" and renamed it using "mv data.bil 00001-ncols.00001-nrows". I prepered an index file and updated the GEOGRID.TBL.
I am facing error in running geogrid it shows invalid category. I am attaching the necessary file. Suggest improvements in index file or any other.

Thanks.
 

Attachments

  • namelist.wps
    1.1 KB · Views: 2
  • Screenshot 2025-03-07 143402.png
    Screenshot 2025-03-07 143402.png
    339 KB · Views: 2
  • GEOGRID.zip
    5.4 MB · Views: 2
Hi,
With this data type, do you know how many categories it should contain? Can you attach the full geogrid.log file? Thanks.
 
Thanks for your reply.
Now its solved. I used convert_geotiff function, using "./convert_geotiff -c 17 -t 2400 -u categorical new.tif" then it created 20 binary files along with index file. Now I successfully completed the geogrid run. I plotted the "LU_INDEX" and its updated. I have one question.
my land use data has 17 categories when i checked the met_em.* files there it is showing num_land_cat = 21 but when i plotted the "LU_INDEX" it showing the updated one. why ?
 
I'm so glad to hear the issue has been resolved. Since your original question was about geogrid, and this new question is a bit different, if you're still confused, do you mind starting a new thread for that one? Keeping each post focused on one issue makes the forum easier to read and search in the future. Thanks!
 
Top