Skip to content
Snippets Groups Projects
Commit 07bbfcab authored by POLCHER Jan's avatar POLCHER Jan :bicyclist_tone4:
Browse files

Small coreections to the new functions

parent b3f1e892
No related branches found
No related tags found
No related merge requests found
......@@ -442,9 +442,11 @@ class partition :
elif order == 'F' :
x[self.landcorelist,:] = 0.0
else :
ERROR("Unforessen order for variable to zero")
ERROR("Unforessen order for variable to be set to zero over core region.")
sys.exit()
else :
ERROR("Unforessen rank for variable to summedibe set to zero over the core region.")
sys.exit()
return
#
# Function to sum over the core regions
......@@ -458,6 +460,9 @@ class partition :
elif order == 'F' :
y = np.nansum(x[self.landcorelist,:], axis=0)
else :
ERROR("Unforessen order for variable to zero")
ERROR("Unforessen order for variable to summed over the core region.")
sys.exit()
else :
ERROR("Unforessen rank for variable to summed over the core region.")
sys.exit()
return y
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment