fatiando / rockhound

NOTICE: This library is no longer being developed. Use Ensaio instead (https://www.fatiando.org/ensaio). -- Download geophysical models/datasets and load them in Python
BSD 3-Clause "New" or "Revised" License
34 stars 15 forks source link

Dealing with Bedmap2 data type #48

Closed santisoler closed 2 years ago

santisoler commented 5 years ago

Description of the desired feature

The Bedmap2 datasets are originally given in different data types. For example, the surface or bed datasets are int64, while the geoid is a float64. Most of them include no data values, flagged as a great number. When loading them, fetch_bedmap2() converts these no data values into nans. This converts the data type of the dataset into float64 independently of its original data type.

Would be nice to at least have an optional argument in order to prevent the no data vals to be converted. This lets the user to get the datasets on the original data type.

Are you willing to help implement and maintain this feature? Yes