From 68ee4f22be19d3086c949d0bf11c0f43ffc52bc6 Mon Sep 17 00:00:00 2001 From: zbruick Date: Tue, 18 Jun 2019 13:43:11 -0600 Subject: [PATCH] Add warning if lat/lon is assumed for projection --- metpy/xarray.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metpy/xarray.py b/metpy/xarray.py index eb80e2eab2c..11b292b03a6 100644 --- a/metpy/xarray.py +++ b/metpy/xarray.py @@ -370,6 +370,8 @@ def parse_cf(self, varname=None, coordinates=None): # If we found them, create a lat/lon projection as the crs coord if has_lat and has_lon: var.coords['crs'] = CFProjection({'grid_mapping_name': 'latitude_longitude'}) + log.warning('Found lat/lon values, assuming latitude_longitude ' + 'for projection grid_mapping variable') # Assign coordinates if the coordinates argument is given if coordinates is not None: