Giter VIP home page Giter VIP logo

inter-iit-isro-backend's Introduction

Ensure that the system is Linux based with xsmgenspec and xsmcomputeflex installed. Follow the following steps for installation of xsmdas:

Installation of xsmdas software

Prerequisites for xsmdas

  1. OS: Linux/Unix (CentOS 7.0+, Ubuntu 14.04+, RHEL 6.5+, Fedora 20.0+, SLED 11.0+, OS X 10.13+)
  2. Compiler: gcc 4.4+

Steps for xsmdas installation

  1. Download the installation package of XSMDAS and CALDB from https://pradan.issdc.gov. in/pradan/
  2. Unzip the installation package ch2_xsmdas_yyyymmdd_vn.mm.zip to desired directory:
unzip ch2_xsmdas_yyyymmdd_vn.mm.zip
  1. Set environmental variables by adding following lines to ~/.bashrc
export xsmdas= <path to xsmdas directory>/xsmdas
export PATH="$xsmdas/bin:$xsmdas/scripts:$PATH"
export LD_LIBRARY_PATH="$xsmdas/lib/":$LD_LIBRARY_PATH
export PFILES="$PFILES:$xsmdas/pfiles"

here 'path to xsmdas directory' is to be replaced with the absolute path under which xsmdas directory is present source ~/.bashrc file as:

.~/.bashrc

If the user has installed any other package that uses PIL with PFILES environment defined in /.bashrc, make sure that the other declaration are appending the pfile paths to the environment variable. If the user has HEASOFT installation, it is recommended that the command to source the initialization script of HEASOFT, commonly aliased as heainit, if included in .bashrc shall be after the above commands. This will create a local copy of Parameter files under $HOME/pfiles. 4. Installation of libraries:

cd $xsmdas
./InstallLibs

This will compile cfitsio and pil libraries from source. 5. Installation of CALDB: Download the caldb zip file provided along with XSMDAS. Unzip the package ch2_xsm_caldb_yyyymmdd.zip to $xsmdas directory as:

unzip ch2_xsm_caldb_yyyymmdd.zip -d $xsmdas

The caldb files will be extracted to $xsmdas/caldb directory

  1. Compilation: Once the libraries are installed compile XSMDAS with
cd $xsmdas
make
  1. Modify one of the scripts file: Change line 1 of xsmcomputeflux.py to:
#!/ysr/bin/env python3.9

(Note: Most of the above part of Installation steps was taken from the official XSM Data Analysis Guide provided by Physics Research Laboratory Ahmedabad and can be accessed from: https://pradan.issdc.gov.in/pradan/protected/downloadFile/xsm/ch2_xsm_data_analysis_guide.pdf)

Installation

For Backend

Install Python dependencies

$ pip3 install -r requirements.txt

Start the development server by running

# dev server with hot reload at http://localhost:8080
$ python app.py

For Frontend

$ npm install

or

$ yarn install

Basic usage

# dev server with hot reload at http://localhost:3000
$ npm start 

# if you use Node 17+ use this command instead of `npm start`
$ npm run start:n17 

or

# dev server with hot reload at http://localhost:3000
$ yarn start

# if you use Node 17+ use this command instead of `yarn start`
$ yarn start:n17 

inter-iit-isro-backend's People

Contributors

aficionado45 avatar amreshsinha avatar shirin-edilitics avatar siddharthkhincha avatar tanmay1024 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.