write_stars function

write stars object to gdal dataset (typically: to file)