ossama-othman / MaRC

MaRC - Map Reprojections and Conversions
GNU Lesser General Public License v2.1
1 stars 0 forks source link

Automatically choose map data type #62

Open ossama-othman opened 6 years ago

ossama-othman commented 6 years ago

MaRC should automatically choose the map data type based on the data type in the source photo FITS file if a type is not explicitly chosen by the user. For example, if a source photo is comprised of 16 bit signed integers (FITS "short"), the generated map should also contain 16 bit signed integers.

ossama-othman commented 6 years ago

Map factory creation will likely need to be deferred to a point when source photo parameters are available, i..e. when the source photo FITS file has been opened. This will likely entail moving the map creation code out of the MaRC input file parser to a something like a new Abstract Factory (or other creational design pattern) implementation for MaRC's maps.