-
Hi, I'm starting to learn and use Planetmapper on a Windows 11 laptop in the Spyder IDE. I typically run all my code from within this IDE. The GUI doc says, "To start, type planetmapper into a command line and press Enter. This will open a window where you can choose a file to open:" I do this on the IDE command line and it simply reports a description of planetmapper: In[4]: planetmapper Is this intended to be run from the OS command line instead? Thanks! I'll be using amateur data that won't come with WCS data and may not initially be in FITS format (e.g., PNG, JPG). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @smhill001, Great question! You're right that the Currently, the easiest way to launch the GUI from a Python terminal (or any other Python code) is by running: planetmapper.gui.GUI().run() This is basically what happens under the hood when you run the This is definitely very cumbersome, so I'll also add an easier way to launch the GUI from a Python terminal in the next release of PlanetMapper. This will probably be something more logical, like I hope this helps - let me know if any of this doesn't work/doesn't make sense, or if you have any other questions! ~ Oliver Here are a couple of alternatives for launching the GUI from a python terminal/script - they're a little bit more complex, but might be useful, depending on what you're doing... If you already know the path to your data file, you could do something like this to launch the GUI with the appropriate file already open (see docs): observation = planetmapper.Observation('/path/to/data.png', target='jupiter', utc='2024-09-18T00:00')
observation.run_gui() If you already have a good idea of some of the disc parameters, you can set these before running the GUI. See this section of the documentation for a list of the various useful methods to set disc parameters: observation = planetmapper.Observation('/path/to/data.png', target='jupiter', utc='2024-09-18T00:00')
observation.set_rotation(123.45)
observation.set_plate_scale_arcsec(67.89)
observation.run_gui() |
Beta Was this translation helpful? Give feedback.
-
For completeness, with the latest release of PlanetMapper (v1.12.1), it's now possible to launch the GUI from a Python terminal (or any other Python code) by running: planetmapper.run_gui() This Python command is directly equivalent to running the See the GUI tutorial and documentation for more details. |
Beta Was this translation helpful? Give feedback.
For completeness, with the latest release of PlanetMapper (v1.12.1), it's now possible to launch the GUI from a Python terminal (or any other Python code) by running:
This Python command is directly equivalent to running the
planetmapper
command in an Operating System command line.See the GUI tutorial and documentation for more details.