| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
XXX/FIXME
---------
Consider the spherical coordination and WCS sky projection!!
|
|
|
|
| |
Also fix a typo in configs/checkers.py
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
| |
NOTE: only TAN sky projection supported.
|
| |
|
| |
|
|
|
|
|
| |
Flatten the image array to 1D makes it similar to the HEALPix map array,
therefore, it is easier to deal with both cases.
|
| |
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
| |
|
|
|
|
| |
* Update checkers accordingly
|
|
|
|
| |
Also update copyright information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
| |
* Fix the bug that "ellipse()" generate unexpected results.
* Update the parameters of "ellipse()" also
|
|
|
|
|
| |
This bug causes wrong ellipse generation, which is the main reason to
the strange and wrong SNRs shapes.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Credit:
"JavaScript: The Good Parts" by Douglas Crockford
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This new handler is based on the "StaticFileHandler", and will be used
to serve the simulated products for downloading.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Tested on both Firefox (v45.4) and Chromium (v53.0).
Credit: https://stackoverflow.com/a/23374725/4856091
|
| |
|
|
|
|
|
| |
The new method "_open_hpx()" is added to open the requested the HPX FITS
image using the Python subprocess.
|
|
|
|
|
| |
This new method will be used by the "ProductsAJAXHandler" for the "open"
and "download" actions.
|
|
|
|
|
| |
Refactor the "click" event handler on "common/nside" to avoid the
duplicated code on resolution calculation.
|
|
|
|
|
|
|
|
| |
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.
|