MCD12C1 [hdf] reproject python
Posted: Wed Dec 03, 2025 12:07 pm America/New_York
Hi!,
I downloaded MODIS land cover data collection 6.1 "MCD12C1", and it has taken me so long to figure out how to reproject it. I was following the user guidelines [https://lpdaac.usgs.gov/documents/1409/MCD12_User_Guide_V61.pdf], but while this document says ULY Grid = 10007554.677, ULX Grid = -20015109.354, the dataset [hdf fromat] itself indicates UpperLeftPointMtrs(-180000000.000000,90000000.000000), LowerRightMtrs=(180000000.000000,-90000000.000000). The projection also seems different, but I just can't figure out how to use "Projection=GCTP_GEO and GridOrigin=HDFE_GD_UL" (information in the dataset).
I am using Python for preprocessing this data, so should I use the guideline information or the dataset information? Is this the same, but in different projections perhaps?
Any information would be much appreciated.
I downloaded MODIS land cover data collection 6.1 "MCD12C1", and it has taken me so long to figure out how to reproject it. I was following the user guidelines [https://lpdaac.usgs.gov/documents/1409/MCD12_User_Guide_V61.pdf], but while this document says ULY Grid = 10007554.677, ULX Grid = -20015109.354, the dataset [hdf fromat] itself indicates UpperLeftPointMtrs(-180000000.000000,90000000.000000), LowerRightMtrs=(180000000.000000,-90000000.000000). The projection also seems different, but I just can't figure out how to use "Projection=GCTP_GEO and GridOrigin=HDFE_GD_UL" (information in the dataset).
I am using Python for preprocessing this data, so should I use the guideline information or the dataset information? Is this the same, but in different projections perhaps?
Any information would be much appreciated.