get_resolution function

Get resolution of a given dataset