---
title: geomagic
tags: geo
---
## Geotransform
Geotransforms, Affine:
https://www.perrygeo.com/python-affine-transforms.html
Affine(pxwidth,rowrotation,upperleftcornerxcoord,columnrotation,pxheight,upperleftcornerycoord)
:lightning_cloud: GDAL geotransform has different order
```python
x = mf.transform
#moving the image one pixel to the right
x = Affine(x[0],x[1],x[2]+x[0],x[3],x[4],x[5])
#moving the image one pixel to the bottom
x = Affine(x[0],x[1],x[2],x[3],x[4],x[5]-x[4])
# can then be used like mf.transform, eg in writing file with rasterio
```
## MODIS
https://moonbooks.org/Articles/How-to-read-a-MODIS-HDF-file-using-python-/Edit/
Filename: MOD13Q1.A2021033.h19v02.006.2021049224546.hdf
AYYYMMDD : start date of 16 day product