added function for extrnding and reducing state, when observations are only on subdomain