# AmatiRelation **Repository Path**: mseeworld/amati-relation ## Basic Information - **Project Name**: AmatiRelation - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-08 - **Last Updated**: 2025-06-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Amati Relation Web Application This is a web application for calculating and visualizing the Amati relation for gamma-ray bursts (GRBs). ## build docker image docker build -t amati-relation:1.0 . docker run -d -p 5336:5336 amati-relation:1.0 ## Features - Interactive web interface for parameter input - Support for both Band Function and Cutoff Power Law spectrum models - Query history tracking - Result visualization with plots - Data persistence without database ## Project Structure ``` amati/ ├── backend/ │ ├── app.py # Flask application │ ├── amati_relation.py # Core calculation logic │ └── utils/ │ └── file_manager.py # File management utilities ├── frontend/ │ ├── static/ │ │ ├── css/ │ │ │ └── style.css │ │ └── js/ │ │ ├── main.js │ │ └── query.js │ └── templates/ │ ├── index.html # History page │ └── query.html # Query page ├── data/ │ └── queries/ # Query results storage ├── requirements.txt └── README.md ``` ## Installation 1. Clone the repository 2. Install dependencies: ```bash pip install -r requirements.txt ``` 3. Copy `Lan_2022.txt` to the project root directory ## Running the Application 1. Start the Flask server: ```bash python backend/app.py ``` 2. Open your browser and navigate to `http://localhost:5000` ## Usage 1. Click "New Query" to create a new calculation 2. Select the spectrum type (Band Function or Cutoff Power Law) 3. Enter the required parameters 4. Click "Submit Query" to process the calculation 5. View the results and plot 6. Access query history from the main page ## Data Storage - Each query is stored in a separate directory under `data/queries/` - Query parameters and results are saved in JSON format - Generated plots are saved as PNG files - A central JSON file maintains the list of all queries