initial cloudscreening tool commit
initial cloudscreening tool commit
changes cloudscreening
Merge branch 'master' into cloudscreening
Started the cloudscreening tool
merged master in to cloudscreening.  Fixed conflicts.... I hope
Simple band ratio threshold band test is working for MERIS test file.
Added a couple of unit tests to cloudscreening.  Still needs more work to lift coverage.

Also added nose as the default test runner
Merge branch 'cloudscreening'
Merge buxfixes from branch 'add_images'
Update nose coverage settings

Explicitly add the packages we want to check
for coverage, otherwise it checks *everything*
(eg scipy, numpy etc), filling the screen.
Fix mangled brdf tests

The BRDF unit test file has ended up with
the base class tests in it, presumably
because git got confused about a file name
change somewhere. Remove the duplicated tests.
Fix broken unit tests

Remove some obsolete tests from BRDF test
file (these methods were moved to libtools
and there are tests there for them)

Test for get_reflectance_all was falling
over because the mocked open image didn't
have any values set for RasterCount,
RasterXSize and RasterYSize. So add mock
values in the test.
Refactor get_reflectance_all method

Simplify the get_reflectance_all method to
use the image's .ReadAsArray() method to read
all bands at once, instead of looping through
the bands and reading one at a time.

Amend the unit test, as we need to change the
mock return value accordingly.
Add logging settings

Amend the LOGGING settings in settings.py:
- Add a simple and a verbose formatter
- Add handlers for writing to console, and
  for writing to a few files
- Add loggers for django stuff, and a generic
  one which will work for all our tools
Add setuplogger script

Add the imports etc needed to use logging
to a separate file, so we don't need to
repeat it each time. Just need to import
this file anywhere we want to use logging.
Ingest images bash script

Add a new directory to hold the bash scripts
to interface with the python tools.

Add the first script, which calls the image
ingestion code. It takes in a JSON filename,
and optional input/output directory locations
(if not specified, these will default to the
images directory in ingest_data). Then it calls
ingest_images.py

To make this work, add a new main method in
ingest_images.py which reads command line
arguments passed in by the bash script, and it
calls the ingest_image method to just process
the specified JSON file.
Initial commit for bash interface to tools

First stages of script to run the tools.
So far it reads in command line arguments.

Currently developing it so that we can use
the same script for different tools,to avoid
duplication rather than having one per tool.
But this may get too complicated...
Add db query and call python tool

Use curl to get databse results, and call
the python tool script passing the JSON
string as an argument.
Pass JSON through a file

Once we do a query for more than a few months
of images, the resulting JSON string is too
long to pass to python as command line arg (we
get the shell error "argument list too long")

Instead, write the JSON information to a file
and pass the filename instead, so that the
python script reads from this file.