Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | sky.py: Implement method "reproject_to()" | Aaron LI | 2017-05-22 | 1 | -8/+102 |
| | | | | | | | | | | This method reproject the given sky/image onto the grid of its own, using the ``reproject`` package [1]. However, the performance may be a problem and needs optimization or rewrite. [1] reproject: https://github.com/astrofrog/reproject | ||||
* | Add utils/wcs.py with function "make_wcs()" | Aaron LI | 2017-05-22 | 1 | -0/+54 |
| | |||||
* | utils/grid: Add function "make_ellipse()" | Aaron LI | 2017-05-22 | 1 | -7/+47 |
| | |||||
* | sky/SkyPatch: Add wcs and region coverage check | Aaron LI | 2017-05-22 | 1 | -0/+56 |
| | | | | NOTE: only TAN sky projection supported. | ||||
* | configs/checkers: Check SNR simulation resolution against pixel size | Aaron LI | 2017-05-21 | 1 | -0/+7 |
| | |||||
* | Minor updates to galactic/{freefree,synchrotron}.py | Aaron LI | 2017-05-21 | 2 | -12/+10 |
| | |||||
* | sky.py: Flatten 2D image of sky patch to 1D for easier processing | Aaron LI | 2017-05-21 | 1 | -14/+21 |
| | | | | | Flatten the image array to 1D makes it similar to the HEALPix map array, therefore, it is easier to deal with both cases. | ||||
* | galactic/freefree: Update to support sky.py | Aaron LI | 2017-05-21 | 2 | -70/+54 |
| | |||||
* | galactic/synchrotron: Update to support sky.py | Aaron LI | 2017-05-21 | 3 | -117/+121 |
| | | | | | | | * Also update foregrounds.py to use sky.py * Minor fixes to configs/manager.py TODO: update synchrotron/add_smallscales() to also work with sky patch. | ||||
* | Add sky.py to support both sky patch and HEALPix all-sky map | Aaron LI | 2017-05-21 | 1 | -0/+272 |
| | |||||
* | galactic/synchrotron.py: Fix typo w.r.t. component name | Aaron LI | 2017-05-21 | 1 | -1/+1 |
| | |||||
* | configs : Drop "output/filetype"; only support FITS | Aaron LI | 2017-05-17 | 6 | -31/+3 |
| | |||||
* | configs: New "sky" section, and remove "common" section | Aaron LI | 2017-05-16 | 4 | -39/+69 |
| | | | | * Update checkers accordingly | ||||
* | configs: Use separate section "foregrounds" to config components | Aaron LI | 2017-05-16 | 4 | -31/+63 |
| | | | | Also update copyright information. | ||||
* | Bump to version 0.4.1 with important bug fixesv0.4.1 | Aaron LI | 2016-12-13 | 1 | -1/+1 |
| | | | | | | | | | | | | | | * Fix two serious bug in "utils/draw.py", which causes the generated ellipses are wrong (like rectangles), and thus leads to wrong simulation shapes for SNRs, clusters, etc. * Also clean up "utils/draw.py" by merging the "_ellipse_in_shape()" function into "ellipse()". * Update "galactic/snr.py" to use the JIT-optimized "Fnu_to_Tb_fast()" function. * Other small changes/updates. | ||||
* | galactic/snr.py: Small cleanup; Update default resolution | Aaron LI | 2016-12-13 | 2 | -3/+4 |
| | |||||
* | utils/draw.py: Merge "_ellipse_in_shape()" to "ellipse()" | Aaron LI | 2016-12-13 | 2 | -85/+25 |
| | | | | | * Fix the bug that "ellipse()" generate unexpected results. * Update the parameters of "ellipse()" also | ||||
* | utils/draw.py: Fix a wrong brace in "_ellipse_in_shape()" | Aaron LI | 2016-12-13 | 1 | -1/+1 |
| | | | | | This bug causes wrong ellipse generation, which is the main reason to the strange and wrong SNRs shapes. | ||||
* | galactic/snr.py: Use HEALPix pixel area if object smaller than it | Aaron LI | 2016-12-13 | 1 | -1/+5 |
| | |||||
* | galactic/snr.py: Update to use "Fnu_to_Tb_fast()"; some cleanups | Aaron LI | 2016-12-13 | 1 | -18/+19 |
| | |||||
* | products.py: Add parameter "load" to __init__() | Aaron LI | 2016-12-09 | 2 | -7/+11 |
| | | | | | | | | | | The "load" parameter explicitly controls whether to load the specified manifest file. Update "foregrounds.py" to use this new "load" parameter, which prevent the manifest file been loaded. Otherwise, if the output manifest file already exists, it will be loaded to Products, which may cause inconsistencies with the manifest of newly simulated products. | ||||
* | webui: configs.html: Fix a typo and change tag | Aaron LI | 2016-12-07 | 1 | -1/+1 |
| | |||||
* | webui: Use the same "#modal-box" and the "showModal()" function | Aaron LI | 2016-11-28 | 9 | -71/+36 |
| | |||||
* | webui: websocket.js: Get rid of the global variables | Aaron LI | 2016-11-28 | 1 | -63/+101 |
| | |||||
* | webui: main.js: Add the global object "FG21SIM" | Aaron LI | 2016-11-28 | 1 | -1/+2 |
| | |||||
* | webui: Some JavaScript cleanups and refactors | Aaron LI | 2016-11-28 | 5 | -244/+258 |
| | | | | | Credit: "JavaScript: The Good Parts" by Douglas Crockford | ||||
* | Bump to version 0.4.0v0.4.0 | Aaron LI | 2016-11-26 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | * Add "products.py" to build the products manifest and manage the simulation products * Finished the "Products" section (original named "Results") for the Web UI * Fix several client-side bugs, now the Web UI works well on Edge and IE v11 * Tune the Web UI styles and layouts * Significantly improved the README.rst * Add the "docs/" with a simple guide and example and test configuration files * Host the required input templates and catalogs on M$ OneDrive, and generate the "data-manifest.json" manifest * Implement the "bin/fg21sim-download-data" to automatically download the required data | ||||
* | Minor updates | Aaron LI | 2016-11-26 | 1 | -0/+5 |
| | |||||
* | utils: Add download.py with function "download_file()" | Aaron LI | 2016-11-26 | 1 | -0/+112 |
| | |||||
* | utils: Rename function "md5()" to "calc_md5()" | Aaron LI | 2016-11-26 | 2 | -7/+7 |
| | |||||
* | webui: Replace jQuery.when() with jQuery.Deferred's .then() | Aaron LI | 2016-11-24 | 1 | -5/+5 |
| | | | | | | | | | | Note that jQuery.when() can NOT promise the ordering of the passed Deferred's. Therefore, chain multiple AJAX requests using ".then()" and ".done()" to keep them ordered. This fixes the configurations loading problem on IE (v11), which calls the "when()" arguments in different orders as Firefox and Chromium, thus leads to the wrong results. | ||||
* | webui: Use new ".getJSONUncached()" instead of ".getJSON()" | Aaron LI | 2016-11-24 | 3 | -7/+7 |
| | |||||
* | webui: Extend jQuery with "getJSONUncached()" | Aaron LI | 2016-11-24 | 1 | -6/+27 |
| | | | | | | | | | | This jQuery extension sent the AJAX GET request but force the requested page NOT to be cached by the browser! NOTE: IE will by default cache the GET request even the contents has changed. Credit: https://stackoverflow.com/a/35130770/4856091 | ||||
* | webui: Update modal box styles | Aaron LI | 2016-11-24 | 2 | -28/+43 |
| | |||||
* | webui: configs.js: Trigger "Enter keypress" event after field updated | Aaron LI | 2016-11-24 | 1 | -6/+9 |
| | | | | | | | | When the value of a configuration field is updated by jQuery ".val()", trigger the "Enter keypress" event to update its related contents, e.g., the resolution note for "common/nside". Remove the wrong "Enter keypress" event triggering on page loading. | ||||
* | webui: configs.html: Add placeholder for several fields | Aaron LI | 2016-11-24 | 1 | -4/+4 |
| | |||||
* | webui: products.js: Support download healpix/hpx products | Aaron LI | 2016-11-24 | 1 | -6/+25 |
| | |||||
* | webui: Bind "ProductsDownloadHandler" to URI "/products/download/" | Aaron LI | 2016-11-24 | 1 | -0/+2 |
| | |||||
* | webui: products.py: Add new "ProductsDownloadHandler" | Aaron LI | 2016-11-24 | 2 | -2/+75 |
| | | | | | This new handler is based on the "StaticFileHandler", and will be used to serve the simulated products for downloading. | ||||
* | products.py: Add method "get_root_dir()" and use it | Aaron LI | 2016-11-24 | 1 | -9/+32 |
| | |||||
* | webui: main.js: Prevent form submitting on "Enter" press | Aaron LI | 2016-11-24 | 1 | -0/+9 |
| | |||||
* | webui: configs.html: Improve the form layout and styles | Aaron LI | 2016-11-23 | 2 | -33/+49 |
| | |||||
* | webui: main.css: Hide the spinner in "number" input | Aaron LI | 2016-11-23 | 1 | -0/+13 |
| | | | | | | Tested on both Firefox (v45.4) and Chromium (v53.0). Credit: https://stackoverflow.com/a/23374725/4856091 | ||||
* | webui: products: Add the client-side support for opening HPX images | Aaron LI | 2016-11-23 | 2 | -13/+70 |
| | |||||
* | webui: ProductsAJAXHandler: implement the "open" GET action | Aaron LI | 2016-11-23 | 1 | -3/+59 |
| | | | | | The new method "_open_hpx()" is added to open the requested the HPX FITS image using the Python subprocess. | ||||
* | products.py: Add new method "get_product_abspath()" | Aaron LI | 2016-11-23 | 1 | -0/+34 |
| | | | | | This new method will be used by the "ProductsAJAXHandler" for the "open" and "download" actions. | ||||
* | webui: configs.js: Trigger "Enter" after page load on "common/nside" | Aaron LI | 2016-11-23 | 1 | -14/+15 |
| | | | | | Refactor the "click" event handler on "common/nside" to avoid the duplicated code on resolution calculation. | ||||
* | webui: products: Implement GET action "which" | Aaron LI | 2016-11-23 | 2 | -1/+37 |
| | | | | | | | | The "which" GET action try to locate the given executable name/path, in order to check whether the executable callable. This function will be used to check the validity of the specified FITS viewer, which opens the HPX FITS images. | ||||
* | webui: Add "from_localhost" to IndexHandler and products template | Aaron LI | 2016-11-23 | 2 | -1/+15 |
| | |||||
* | webui: utils: Remove three unused functions | Aaron LI | 2016-11-23 | 1 | -97/+0 |
| |