GeoscienceAustralia / agdc

Repository for Australian Geoscience Data Cube (AGDC) code
BSD 3-Clause "New" or "Revised" License
29 stars 24 forks source link

Config file path now exposed as Stacker and DataCube constructor parameter #18

Closed alex-ip closed 9 years ago

alex-ip commented 9 years ago

The config file path can now be set when instantiating a Stacker object, rather than just via command line parameters. It is necessary to allow multiple Stacker objects to connect to different DBs for data fusion (e.g. MODIS-Landsat blending).

Hard-coded default tile_type_id = 1 has been removed in stacker.py and datacube.py so that the default value is drawn either from the config file or from the command line. This is to make working with non-Landsat datasets easier.

These changes are only to provide urgently required functionality to users until the revised API is ready. Note that these changes will not affect existing code which imports either stacker or datacube. There is a new parameter which defaults to the current value, and the tile_type_id will still default to 1 (i.e. Landsat) when using the default config file.

alex-ip commented 9 years ago

Sorry, guys - I meant to do the pull request to develop, not master.