From b7b58e330c792b6d6930ece7a430df832bf5809f Mon Sep 17 00:00:00 2001 From: JonKing93 Date: Wed, 11 Mar 2020 18:35:13 -0700 Subject: [PATCH] merging squash --- 4. DA Analyses/@dash/regrid.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/4. DA Analyses/@dash/regrid.m b/4. DA Analyses/@dash/regrid.m index a4eecce7..94b0b47c 100644 --- a/4. DA Analyses/@dash/regrid.m +++ b/4. DA Analyses/@dash/regrid.m @@ -43,6 +43,10 @@ end v = ensMeta.varCheck(varName); +if ensMeta.partialGrid(v) + error('Variable %s is not a complete grid thus cannot be regridded. (It may have been restricted to PSM indices).', varName); +end + % Get the metadata meta = ensMeta.design.varMetadata; meta = meta.(varName);