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.
Adding GUI-js/html/css Adding Bootstrap and Downloadify
Merge 'supersensor' branch into master

Merge in the changes for the supersensor tool.
It recalibrates any number of given target
sensors to the reference sensor, and creates a
new instrument and images in the database.
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'
Fix bugs in AATSR reflectance correction

There were a couple of bugs in the AATSR
drift correction methods, which meant the
reflectances were systematically different
to the DIMITRI data:

- When removing the drift correction already
  applied, we check the image's metadata for
  the processing file name to check what date
  it was processed. We were using the "GC1"
  file when it should have been the "VC1" file.

- There was a bug in the calculation of the
  number of days since launch, which had T0-T
  instead of T-T0, leading to incorrect values
  in the drift calculation

With these bugs fixed, the resulting reflectance is
v similar to that from DIMITRI (can't expect it to
be indentical due to differences in region extraction)
Fix bug in MERIS correction

There was a bug in the MERIS radiance
correction, with a multpilication instead
of division. This meant that instead of
correcting for solar flux we were adding
an extra seaonal cycle.

Corrected outputs now closely match the
DIMITRI values.
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.