def project(self, options, input, output=None): d1 = gmt_data.GMT_Dataset(self._gmt_session) d1.register_input(input) d2 = gmt_data.GMT_Dataset(self._gmt_session) d2.register_output() module_options = ' '.join([d1.in_str, options, d2.out_str, self.v]) self._print_call('project ' + module_options) self._gmt_session.call_module('project', module_options) return d2
def gmtconvert(self, options, input, output=None): d = gmt_data.GMT_Dataset(self._gmt_session) d.register_input(input) d.register_output(output) module_options = ' '.join([d.in_str, options, d.out_str, self.v]) self._print_call('gmtconvert ' + module_options) self._gmt_session.call_module('gmtconvert', module_options) return d
def fitcircle(self, options, input, output=None): d = gmt_data.GMT_Dataset(self._gmt_session) d.register_input(input) t = gmt_text.GMT_Text(self._gmt_session) t.register_output(output) module_options = ' '.join([d.in_str, options, t.out_str, self.v]) self._print_call('fitcircle ' + module_options) self._gmt_session.call_module('fitcircle', module_options) return t
def pswiggle(self, options, input): ''' Call the GMT pswiggle module with the text string "options" ''' d = gmt_data.GMT_Dataset(self._gmt_session) d.register_input(input) module_options = ' '.join([ d.in_str, options, self.ko, self.v, self.range_proj, self.ps_output ]) self._print_call('pswiggle ' + module_options) self._gmt_session.call_module('pswiggle', module_options)
def psxy(self, options, input, cpt=None): ''' Call the GMT psxy module with the text string "options" and the input "input" options is a text string of the flags to be given to psxy. ''' d = gmt_data.GMT_Dataset(self._gmt_session) d.register_input(input) module_options = ' '.join([ d.in_str, options, self.ko, self.v, self.range_proj, self.ps_output ]) if cpt != None: c = gmt_cpt.GMT_CPT(self._gmt_session) c.register_input(cpt) module_options = module_options + ' ' + c.in_str self._print_call('psxy ' + module_options) self._gmt_session.call_module('psxy', module_options)