Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

Commit

Permalink
Fix some issues for #60
Browse files Browse the repository at this point in the history
  • Loading branch information
ceholden committed Nov 20, 2015
1 parent a22f48a commit f574e41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions yatsm/cli/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,12 @@
get_coefficients, get_prediction)
from yatsm.utils import write_output
from yatsm.regression import design_coefs
from yatsm.regression.transforms import harm

gdal.AllRegister()
gdal.UseExceptions()

logger = logging.getLogger('yatsm')

# number of days in year
_days = 365.25
w = 2 * np.pi / _days


@click.command(short_help='Make map of YATSM output for a given date')
@click.argument('map_type', metavar='<map_type>',
Expand Down
3 changes: 2 additions & 1 deletion yatsm/mapping/prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from .utils import find_result_attributes, find_indices
from ..utils import find_results, iter_records
from ..regression.transforms import harm

logger = logging.getLogger('yatsm')

Expand Down Expand Up @@ -186,7 +187,7 @@ def get_prediction(date, result_location, image_ds,
dtype=np.int16) * int(ndv)

logger.debug('Processing results')
for rec in iter_records(records, warn_on_empty=WARN_ON_EMPTY):
for rec in iter_records(records, warn_on_empty=warn_on_empty):
for _qa, index in find_indices(rec, date, after=after, before=before):
if index.shape[0] == 0:
continue
Expand Down

0 comments on commit f574e41

Please sign in to comment.