Table of Contents generated with DocToc
Pre-requisite:
- Valid account in GitLab.
- Personal Access Token (PAT) create under this user's account.
- Administrator or similar level in local environment.
- This sample is using Visual Studio Code for IDE.
Run project locally:
- Clone from this repository: https://gitlab.com/godotuniverse/give-the-sun-a-voice.git.
- Open this file using IDE:
nasa_spaceApp/goes.py.
- Using VSCode: select
Run and Debug
icon in the left navigation and click Debug. - Using Terminal: open the terminal and go to
nasa_spaceApp
directory. Then type python3goes.py
. - Files will be generated inside of
data
directory.
goes.py
has 2 main methods that are ready to be executed with the default values.
Method: get_goes_by_date()
Function: retrieve a specific data from GOES 16, 17 or 18 satellites in a specific date.
Modification:
- Open
goes.py
file. - Fine 3 statements below and modify the input parameters.
- Remove the comment from this line:
get_geos_by_date()
. - Execute the program.
satList = [16, 17, 18]
typeList = ['xrs-x1s']
dateList = ['2022-10-02', '2022-10-01']
Results:
- Source:
https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes/goes17/l2/data/xrsf-l2-flx1s_science/2022/10/sci_xrsf-l2-flx1s_g17_d20221002_v2-1-0.nc
- Output:
nasa_spaceApp/data/goes-17-xrs-x1s-20220927.json
- JSON:
{"date":{"0":1663632000253,"1":1663632001253,"2":1663632002253,"3":1663632003253,"4":1663632004253,"5":1663632005253,"6":1663632006253,"7":1663632007253,"8":1663632008253,"9":1663632009253,"10":1663632010253,"11":1663632011253,"12":1663632012253,"13":1663632013253,...
Method: get_goes_last_7d_complete()
Function: retrive dataset from several instruments from GOES satellites for the past 7 days.
Modification:
- Not needed
Results:
- Source:
https://services.swpc.noaa.gov/json/goes/primary/xray-flares-7-day.json
- Output:
nasa_spaceApp/data/7-day/xrays-flares.json
- JSON:
[ { "time_tag": "2022-09-26T08:48:00Z", "begin_time": "2022-09-26T08:48:00Z", "begin_class": "C1.0", "max_time": "2022-09-26T09:11:00Z", "max_class": "C4.7", "max_xrlong": 4.7267981244658586e-06, "max_ratio": 5.888602034978241, "max_ratio_time": "2022-09-26T09:04:58Z", "current_int_xrlong": 0.009434806182980537, "end_time": "2022-09-26T09:36:00Z", "end_class": "C2.8", "satellite": 16 },...
This project's static Pages are built by GitLab CI, following the steps
defined in .gitlab-ci.yml
:
image: alpine:latest
pages:
stage: deploy
script:
- echo 'Nothing to do...'
artifacts:
paths:
- public
only:
- master
The above example expects to put all your HTML files in the public/
directory.
- CSS is missing! That means that you have wrongly set up the CSS URL in your HTML files. Have a look at the index.html for an example.
- Aaren Lai
- Budi Prasetya
- Nathan Hicks
- Shira Rubin
- Sunshine Eversull
- Zach Syver