Skip to content
/ MPCS Public

A program for solving the Minor Planet Center uncertainty maps of near Earth objects (NEOs)

License

Notifications You must be signed in to change notification settings

astrohr/MPCS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MPCS ☄️

forthebadge forthebadge

Static Badge Static Badge

A desktop program for solving the Minor Planet Center uncertainty maps of near Earth objects (NEOs) 🌟


Table of contents

The purpose

MPCS is a program created to simplify the interactions between the official Minor planet center website for NEO objects and systems using it

In short, you provide the object you want to observe to the program and it displays its uncertainty map to you, the map is interactive so you can click on it and the picture location coordinates for the telescope will get calculated

MPCS stands for Minor Planet Center Solver

🔭 This program is used in Višnjan Observatory and in Farra Observatory 🔭

Please do note that as of right now, this program is largely untested on linux and mac but dont hesitate to get in touch if you want to try using it in your observatory, we can easily figure something out

Requirements

For running: a computer that's preferably from this century but it may be fine if its not

For building: C++ compiler, a buildsystem (for example mingw), CMake version 3.20 or higher, git, and NSIS2 (optional)

If you are building on a Windows machine, using MSYS2 to get the compiler and the build system is highly recommended.

How to use

MPCS was made to be simple to use, so yeah, there's that

Getting the data

Go to the NEO index, pick the objects and insert your position. Then click on "Get ephemerides"

Obtain offsets

You will be prompted with a bunch of objects and their offsets, pick the one you want to observe at the desired time and copy its offsets link

Copy offset

Running the program

Just... run the MPCS executable

Running MPCS from the terminal

If you choose to run it from the terminal, make sure you are in its directory, otherwise it will not be able to reach the data it needs access to

Its also worth noting that MPCS can be ran with arguments from the command line, you can get the list of arguments by running MPCS --help

Extracting data

When MPCS runs it will ask you for the data about the object you want to observe, which includes the offsets URL, exposure of the pictures and their amount

When you provide all information you will be prompted with an interactive uncertainty map where you will select the areas you want to take pictures on the map

You can press H and the controls will get printed to the terminal

When you select all areas to take pictures, you should press Q to confirm the selection

Use program

The observation locations will get printed to the console and copied to the clipboard

Configuring

You can configure the program in resources/MPCS.ini

The parameters you can configure are window height (H), width (W) and the telescope FOV (FOV)

Installing from the binary

Installing from the binary is as simple as going to the releases tab and downloading the release you want

The wizard 🧙 will walk you through the installation, this way you also get a cool uninstall executable

Keep in mind that the binary will be located in the bin folder of the install location and will be named MPCS.exe

Building from source

Obtaining the source 📜

git clone --recursive https://github.com/astrohr/MPCS.git ./MPCS

^ due to submoduling, it is crucial you do a recursive clone

Building ⚙️

Create the build directory and run the cmake command for generating makefiles

mkdir build
cmake -S . -B ./build -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release

^ please do note that -G is dependent on the build system that you will use, here its MinGW, you can see all generators by running cmake --help

After cmake generates makefiles, run them

cd ./build
mingw32-make

^ again, mingw is the buildsystem we use

And a fully functional executable should appear in your build folder 😄

Installing from source

While just building the program will create a working executable, it is recommended that you finish the installation process by running cmake --install . from an elevated terminal inside the build folder, this will populate the directories that are meant to be populated for regular program installation

If, however, you want to export the project outside the system used for building you have two options

creating a zip archive of the program

run cpack -G ZIP or cpack -G TGZ from the build folder, it will create an archive that you can extract on the desired location

creating an installer

running cpack -G NSIS should do

^ for this you must have NSIS2 installed

Dependencies

All of the following dependencies are submoduled in this version, so cloning the repo recursively will include all of the dependencies

Wonderful open source projects that make this project possible:

huge thanks and respect to their devs ❤️

License

This program is released under the zlib license


The future

This is MPCS version 2, the work on this branch has ended, however the work still continues on other branches (version 3 as of writing this)

Version 3 aims to be simpler to use, more portable and have a vastly improved functionality, so keep an eye on it! 👀