def set_dataset(self):
keys = list(self.model.datasets.keys())<EOL>labels = [item.split()[<NUM_LIT:0>].lower() for item in keys]<EOL>if self.set_type == '<STR_LIT>':<EOL><INDENT>self.dataset = self.model.datasets[keys[labels.index('<STR_LIT>')]]<EOL><DEDENT>elif self.set_type == '<STR_LIT>':<EOL><INDENT>self.dataset = self.model.datasets[keys[labels.index('<STR_LIT>')]]<EOL><DEDENT>elif self.set_type == '<STR_LIT>':<EOL><INDENT>self.dataset = self.model.datasets[keys[labels.index('<STR_LIT>')]]<EOL><DEDENT>self.access_url = self.dataset.access_urls[self.access_url_key]<EOL>self.ncss = NCSS(self.access_url)<EOL>self.query = self.ncss.query()<EOL>
Retrieves the designated dataset, creates NCSS object, and
creates a NCSS query object.