Skip to content

Instantly share code, notes, and snippets.

@ceholden
Created September 23, 2015 17:28
Show Gist options
  • Save ceholden/6e3e2eeb94dd0e0591ee to your computer and use it in GitHub Desktop.
Save ceholden/6e3e2eeb94dd0e0591ee to your computer and use it in GitHub Desktop.
MODIS preprocessing test logs
opengeo-vm@opengeo-vm:/media/sf_Downloads/tmp/MOD13Q1$ gdalinfo --formats | grep HDF
HDF4 (ros): Hierarchical Data Format Release 4
HDF4Image (rw+): HDF4 Dataset
HDF5 (ros): Hierarchical Data Format Release 5
HDF5Image (ro): HDF5 Dataset
opengeo-vm@opengeo-vm:/media/sf_Downloads/tmp/MOD13Q1$ gdalinfo --version
GDAL 1.11.2, released 2015/02/10
opengeo-vm@opengeo-vm:/media/sf_Downloads/tmp/MOD13Q1$ gdalbuildvrt -sd 1 ndvi_2003.vrt MOD13Q1.A2003353.h2*hdf
0...10...20...30...40...50...60...70...80...90...100 - done.
opengeo-vm@opengeo-vm:/media/sf_Downloads/tmp/MOD13Q1$ gdalwarp -t_srs "EPSG:4326" -multi ndvi_2003.vrt ndvi_2003-mosaic.gtif
Creating output file that is 9820P x 9526L.
Processing input file ndvi_2003.vrt.
Using internal nodata values (e.g. -3000) for image ndvi_2003.vrt.
Copying nodata values from source ndvi_2003.vrt to destination ndvi_2003-mosaic.gtif.
0...10...20...30...40...50...60...70...80...90...100 - done.
opengeo-vm@opengeo-vm:/media/sf_Downloads/tmp/MOD13Q1$ gdalinfo ndvi_2003-mosaic.gtif
Driver: GTiff/GeoTIFF
Files: ndvi_2003-mosaic.gtif
Size is 9820, 9526
Coordinate System is:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4326"]]
Origin = (19.999999998200938,9.999999999104965)
Pixel Size = (0.002099464219307,-0.002099464219307)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( 20.0000000, 10.0000000) ( 20d 0' 0.00"E, 10d 0' 0.00"N)
Lower Left ( 20.0000000, -9.9994962) ( 20d 0' 0.00"E, 9d59'58.19"S)
Upper Right ( 40.6167386, 10.0000000) ( 40d37' 0.26"E, 10d 0' 0.00"N)
Lower Right ( 40.6167386, -9.9994962) ( 40d37' 0.26"E, 9d59'58.19"S)
Center ( 30.3083693, 0.0002519) ( 30d18'30.13"E, 0d 0' 0.91"N)
Band 1 Block=9820x1 Type=Int16, ColorInterp=Gray
NoData Value=-3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment