Github user huikyole commented on a diff in the pull request:
https://github.com/apache/climate/pull/220#discussion_r36273731
--- Diff: ocw-cli/cli_app.py ---
@@ -599,123 +608,56 @@ def run_screen(model_datasets, models_info,
observations_info,
screen.addstr(6, 4, "Spatially regridding...")
screen.refresh()
- new_lats = np.arange(overlap_min_lat, overlap_max_lat,
spatial_grid_setting)
- new_lons = np.arange(overlap_min_lon, overlap_max_lon,
spatial_grid_setting)
- for i in range(len(obs_dataset)):
- obs_dataset[i] = dsp.spatial_regrid(obs_dataset[i],
new_lats, new_lons)
+ if spatial_grid_option == 'Observation':
+ new_lats = obs_dataset[0].lats
+ new_lons = obs_dataset[0].lons
+ else:
+ new_lats = np.arange(overlap_min_lat, overlap_max_lat,
spatial_grid_setting)
+ new_lons = np.arange(overlap_min_lon, overlap_max_lon,
spatial_grid_setting)
+ for i in range(len(obs_dataset)):
--- End diff --
spatial_grid_option == 'Observation' means that we do not regrid
observation data.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---