nansencenter / nansat

Scientist friendly Python toolbox for processing 2D satellite Earth observation data.
http://nansat.readthedocs.io
GNU General Public License v3.0
179 stars 66 forks source link

Docstring is confusing in Domain method "get_pixelsize_meters" #230

Open jeong1park opened 6 years ago

jeong1park commented 6 years ago

In its docstring, it is written as: "Returns the pixelsize (deltaX, deltaY) of the domain"

Normally, X indicates horizontal axis and Y does vertical axis. For SAR images, I expected that X is range axis and Y is azimuth axis, but the return values from "get_pixelsize_meters" are ordered in (azimuth, range).

korvinos commented 6 years ago

It is actually quite unclear how to do that properly. domain.shape returns (y, x) size of the band. As I understand, it has been done to satisfy numpy (in case of shape). Seems like there is no standard at all for that. At least in nansat