Please use introspection.component_indices.temperature and .pressure instead of dim+1 and dim.