Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more descriptive names to AHI readers AreaDefinition names #496

Merged
merged 1 commit into from
Nov 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions satpy/etc/readers/hrit_jma.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ file_types:
- 'IMG_DK01B16_{start_time:%Y%m%d%H%M}_{segment:03d}'
- 'IMG_DK01B16_{start_time:%Y%m%d%H%M}'



datasets:
B01:
name: B01
Expand Down
5 changes: 3 additions & 2 deletions satpy/readers/ahi_hsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def __init__(self, filename, filename_info, filetype_info):
dtype=_NAV_INFO_TYPE,
count=1)[0]
self.platform_name = np2str(self.basic_info['satellite'])
self.observation_area = np2str(self.basic_info['observation_area'])
self.sensor = 'ahi'

@property
Expand Down Expand Up @@ -305,8 +306,8 @@ def get_area_def(self, dsid):
'units': 'm'}

area = geometry.AreaDefinition(
'some_area_name',
"On-the-fly area",
self.observation_area,
"AHI {} area".format(self.observation_area),
'geosh8',
proj_dict,
ncols,
Expand Down
8 changes: 4 additions & 4 deletions satpy/readers/hrit_jma.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ def __init__(self, filename, filename_info, filetype_info):

self.calibration_table = np.array(self.calibration_table)

projection_name = self.mda['projection_name'].decode()
sublon = float(projection_name.strip().split('(')[1][:-1])
self.projection_name = self.mda['projection_name'].decode().strip()
sublon = float(self.projection_name.split('(')[1][:-1])
self.mda['projection_parameters']['SSP_longitude'] = sublon

def get_area_def(self, dsid):
Expand Down Expand Up @@ -155,8 +155,8 @@ def get_area_def(self, dsid):
'units': 'm'}

area = geometry.AreaDefinition(
'some_area_name',
"On-the-fly area",
"FLDK",
"HRIT FLDK Area: {}".format(self.projection_name),
'geosmsg',
proj_dict,
ncols,
Expand Down