Skip to content

Commit

Permalink
#464 radarsat2 mapper is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
aanersc committed Mar 3, 2021
1 parent ed13f95 commit 8ccf276
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nansat/mappers/mapper_radarsat2.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import zipfile
import json
from dateutil.parser import parse

import logging
import numpy as np
try:
import scipy.ndimage
Expand All @@ -27,6 +27,9 @@
from nansat.utils import initial_bearing, gdal
from nansat.exceptions import WrongMapperError, NansatReadError

LOGGER = logging.getLogger("Nansat."+__name__)
LOGGER.addHandler(logging.NullHandler())


class Mapper(VRT):
''' Create VRT with mapping of WKV for Radarsat2 '''
Expand Down Expand Up @@ -169,7 +172,7 @@ def __init__(self, inputFileName, gdalDataset, gdalMetadata,
sat_heading = initial_bearing(lon[:, 1:], lat[:, 1:],
lon[:, :-1], lat[:, :-1]) + 90
else:
print('Can not decode pass direction: ' + str(passDirection))
LOGGER.warning(f'Can not decode pass direction: {passDirection}')

# Calculate SAR look direction
look_direction = sat_heading + antennaPointing
Expand Down

0 comments on commit 8ccf276

Please sign in to comment.