Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
CLIMATE-930 - multiple file loader forces 2D lats and lons
Browse files Browse the repository at this point in the history
  • Loading branch information
agoodm committed Sep 29, 2017
1 parent 94fb8d6 commit 032c317
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ocw/data_source/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,11 +518,8 @@ def load_dataset_from_multiple_netcdf_files(variable_name, variable_unit=None,

dataset0 = load_file(nc_files[0], variable_name, lat_name=lat_name,
lon_name=lon_name, time_name=time_name)
if dataset0.lons.ndim == 1 and dataset0.lats.ndim == 1:
lons, lats = numpy.meshgrid(dataset0.lons, dataset0.lats)
elif dataset0.lons.ndim == 2 and dataset0.lats.ndim == 2:
lons = dataset0.lons
lats = dataset0.lats
lons = dataset0.lons
lats = dataset0.lats

if mask_file:
mask_dataset = load_file(mask_file, mask_variable)
Expand Down

0 comments on commit 032c317

Please sign in to comment.