Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
CLIMATE-930 - multiple file loader forces 2D lats and lons
  • Loading branch information
agoodm committed Sep 29, 2017
1 parent 94fb8d6 commit 032c317be039565645a5c41e39415166720e1109
Showing 1 changed file with 2 additions and 5 deletions.
@@ -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)

0 comments on commit 032c317

Please sign in to comment.