Some code for my UROP. To get started, you'll want to run git clone https://github.com/mauriciobarba/UROPsatellites.git. Also, get a hang of how to use the cd command in your shell. Once you've figured that out, you'll want to cd into the UROPsatellites directory on your computer that you've just cloned. The base directory for these instructions is the UROPsatellites folder. Since I'm using a Linux machine, directories are written using forward slashes (/). If you're using a Windows shell, these should probably be replaed with backslashes (\).
When STK closes, it'll ask if you want to save changes. From my experience, I don't think you should. If you do accidentally save, GitHub will detect changes in the STK files. You should restore these. If you don't, there shouldn't be any problem either.
- MATLAB
- STK
- Python
- pip
For running MATLAB scripts, do the following:
- Open
src/DetectabilityTesting/DetectabilityTesting.scwith STK - Run one of the MATLAB scripts located in
./src.
For running python scripts, do the following:
- First, you'll want to make sure python and pip are installed on your machine. Instructions for how to set these up are here. Before running the clustering analysis, you'll have to set up and activate the python virtual environment.
pip install virtualenvpython -m virtualenv ./ClusterAnalysis/cluster-env- Depending on which shell you're using, activating the virtual environment is either
source ./ClusterAnalysis/cluster-env/bin/activateorsource .\ClusterAnalysis\cluster-env\Scripts\activate.
pip install -r requirements.txt. You'll have to activate the virtual environment every time you want to run the clustering analysis.
Class that scapes for the TLE data of some 2000 satellites from the Celestrak website. It has several methods that get satellite information from these data.
This is a function that returns the visual magnitude of the SPACEBEE satellite at several times of the month. The workflow should be like this:
- Set the properties of a satellite you plan to analyze in the STK GUI.
- Run the MATLAB function with the required parameters to get the visual magnitude at several timesteps of the satellite.
The workflow for this is the same as that of EOIRAnalysis but this function returns the maximal probabability of detection of a satellite in some time period.
Gets information from the TLE data collected from the Celestrak site. Simulates satellites with these parameters and gets their access from STK.
Gets the difference between the time that a satellite's TLE data was collected and published on the Celestrak website.
Plots a histogram with of the difference of a satellite's TLE data being published and recorded against the frequency that this value is in some range.
Given a .STL file, it gets the radar cross section of a satellite with the shape described in the .STL file
Given en EOIR raw sensor data file, it calculates the visual magnitude of the satellite.
Plots the clusters of satellites in polar coordinates. Cartesian coordinates for these satellites are found in the groundtrush_cluster.xlsx excel file.
- If you're having a hard time connecting STK and MATLAB try doing the following:
- Close STK.
- Run
clearin the MATLAB command window. This should take 1 to 2 seconds. Note that this will clear all variables saved in the MATLAB command window. - reopen STK.
- Try to run the MATLAB script again
- Supposedly, getting the irradiance data is faster if the EOIR synthetic scene is closed. It takes a long time no matter what. Consequently, running EOIRAnalysis.m takes a while.
- If the DetectabilityTesting STK file is taking too long to open do the following:
- Run
git statusto see if there were any changes to files related to STK. Such files are found in the DetectabilityTesting. If you don't see that any of these files have been altered I'm not really sure what the problem is. If they have been altered, continue following the steps. - Run
git restorefollowed by the names of the STK-related files that have been altered. For examplegit restore ./DetectabilityTesting/DetectabilityTesting.sc3
- In the RCS_Calculator.mlx file, set the numerical parameter of the
meshfunction to either 0.1 or 0.5 so that MATLAB doesn't crash. Rendering the image takes about a minute. - If
piporpythonaren't working, trypip3orpython3respectively. - If you're getting an error related to the connect command in EOIRAnalysis, go in STK and check that there are no satellites in the EOIR configuration.
All work under the ClusterAnalysis directory was done by Vishnu Narayanan