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 latitude_bounds and longitude_bounds to tropomi_l2 #1084

Merged
merged 2 commits into from Feb 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions satpy/readers/tropomi_l2.py
Expand Up @@ -110,7 +110,7 @@ def available_datasets(self, configured_datasets=None):
logger.debug("Evaluating new variable: %s", var_name)
var_shape = self[var_name + "/shape"]
logger.debug("Dims:{}".format(var_shape))
if (var_shape == lat_shape):
if (lat_shape == var_shape[:len(lat_shape)]):
logger.debug("Found valid additional dataset: %s", var_name)
# Skip anything we have already configured
if (var_name in handled_variables):
Expand All @@ -122,10 +122,14 @@ def available_datasets(self, configured_datasets=None):
var_name_no_path = var_name[last_index_separator:]
logger.debug("Using short name of: %s", var_name_no_path)
# Create new ds_info object
if var_name_no_path in ['latitude_bounds', 'longitude_bounds']:
coordinates = []
else:
coordinates = ['longitude', 'latitude']
new_info = {
'name': var_name_no_path,
'file_key': var_name,
'coordinates': ['longitude', 'latitude'],
'coordinates': coordinates,
'file_type': self.filetype_info['file_type'],
'resolution': None,
}
Expand Down