ruithnadsteud / yt_georaster

A package for handling geotiff files and georeferenced datasets within yt.
1 stars 2 forks source link

Preserve dtype of each field read in #56

Open deastwoo opened 3 years ago

deastwoo commented 3 years ago

Data is loaded into yt with dtype float64, irrespective of the dtype of the data on disk. Ideally we would like to preserve the dtype of each field read in.

I believe this comes from the field dtype being defined as float64 in io.py at https://github.com/ruithnadsteud/yt_georaster/blob/master/yt_georaster/io.py#L19

deastwoo commented 2 years ago

This is somewhat resolved following the additional options added to save as geotiff #57 we can specify the output dtype and by default copies that of the primary input raster.

I will leave this open as the dtype that yt works internally with will be float64 still. Not sure if this a problem but something to discuss anyway.