Giter Club home page Giter Club logo

cl-corsika's Introduction

CL-CORSIKA

ATTENTION

CL-CORSIKA is still WIP, feel free to make issue, request functionalities or contribute to the repo

About

Ah, I was doing my Corsika simulation work while I happend to found that COAST does not compile on my poor machine, which brings me trouble while reading Corsika binary output files.

So at that time, I thought, that, why could not ME, MYSELF wrote a program that reads the binary output instead? So here it goes, the CL-CORSIKA package.

Right now, it’s mostly focus on Corsika 7.75 and dealing with the reading tasks.

BUT PLEASE NOTE THAT CL-CORSIKA does NOT intend to replace Corsika or rewrite Corsika, for those purpose, please refer to Corsika 8 for more details. CL-CORSIKA is kinda like an enhance interface in lisp for Corsika or more simpler, just an automation scripts for my Corsika simulation works.

Progress

CL-CORSIKA/BINARY

Package cl-corsika/binary is for reading Corsika binary output file structure.

Currently it’s work in progress. You could just load it to have a simple try:

;; Make sure cl-corsika is under quicklisp load path
;; for example, `~/quicklisp/local-project'.
(ql:quickload '(cl-corsika/binary))

;;; High-level methods:
(cl-corsika/binary:with-open-corsika (corsika "PATH/TO/YOUR/OUTPUT")
  (cl-corsika/binary:run-header corsika) ; -> get run-header of `corsika'
  ;; ...
  )

;;; Low-level methods:
;; These functions are not exported.
;; (with-corsika-binary-output (corsika "PATH/TO/YOUR/OUTPUT")
;;   (read-type :int corsika)              ; -> 29932 if not thin
;;   (read-type :run-header corsika)       ; -> run-header
;;   ;; ...
;;   )

TODO MEMO:

  • [DONE] Add automated parser for structured reading output
  • [DONE] Double check =corsika-defbin.lisp=
  • [DONE] Add export functionality in =defbin.lisp=
  • Easier alias names for slots reading

cl-corsika's People

Contributors

li-yiyang avatar

Watchers

James Cloos 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.