Skip to content

Commit

Permalink
Fixed bug with 250m MODIS data. Fixes #99.
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Apr 22, 2014
1 parent 0cfe755 commit efe2582
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py/polar2grid_modis/polar2grid/modis/modis_to_swath.py
Expand Up @@ -334,7 +334,9 @@ def _load_data_to_flat_file (file_objects, descriptive_string, variable_name,
# the navigation lat/lon data only exists for 1km resolutions
if interpolate_data:
log.debug("Interpolating to higher resolution: %s" % (variable_name,))
temp_var_data[~not_fill_mask] = numpy.nan
temp_var_data = interpolate_geolocation(temp_var_data)
temp_var_data[numpy.isnan(temp_var_data)] = fill_value

# append the file data to the flat file
temp_appender.append(temp_var_data)
Expand Down

0 comments on commit efe2582

Please sign in to comment.