Should data processing functions have their own modules?
See original GitHub issueIn #685, @weiji14 asked the question of if data processing modules like makecpt and grd2cpt should be split into their own Python scripts, much like the plotting modules will be. My opinion is they should be split up. The other files aren’t nearly as big as base_plotting.py, but I think it’s best to standardize all functions in this way, and it makes it easier to find the function you’re looking for (I wasn’t sure if grd2cpt should be under mathops.py or grdops.py?).
I’m happy to do it. I’m assuming the process would be similar to the changes in base_plotting.py, and just involve copying the functions to their own scripts in pygmt.src, but how do we “tell” PyGMT where to look for it beyond the init file, as there isn’t a base_plotting-equivalent script to import into?
Issue Analytics
- State:
- Created 3 years ago
- Comments:17 (17 by maintainers)

Top Related StackOverflow Question
I can help with this if needed.
Ping @weiji14 to separate
x2sys_initandx2sys_cross.