Comments (4)
Hi Briehan,
Both of these work for me:
# override the dimension limits in the Load command:
JS9.Load("../data/f814w.fits.gz", {xdim:10000,ydim:10000})
and
# change the limits in js9prefs.son
var JS9Prefs = {
"globalOpts": {"helperType": "nodejs",
"helperPort": 2718,
"helperCGI": "./cgi-bin/js9/js9Helper.cgi",
"fits2png": false,
"debug": 0,
"loadProxy": true,
"workDir": "./tmp",
"workDirQuota": 100,
"dataPath": "$HOME/Desktop:$HOME/data",
"analysisPlugins": "./analysis-plugins",
"analysisWrappers": "./analysis-wrappers",
"image": {xdim: 10000, ydim: 10000, bin: 1}
},
"imageOpts": {"colormap": "grey",
"scale": "linear"}
}
JS9.Load("../data/f814w.fits.gz")
I assume you are doing the latter. What is the value of JS9.globalOpts.image once JS9 is ready?
Any chance you have an old value set and saved in your preference plugin?
from js9.
Sorry Eric, I seem to have declared the override in the wrong place. It works perfectly now.
from js9.
OK, that's better than a bug!
An important side note: be aware that Chrome will eventually start 'aw snap'ing if your images get too large, since it has a per-tab memory limit (2Gb or 4Gb, I forget, but it's real). I'm pretty sure FF does not have the same limit. If you trip over that problem (and depending on what you are trying to do), there is 'large file' support in place to extract and display a section of a huge image ... it's a work in progress, so let me know if you bump into memory issues.
from js9.
Thanks. I'll definitely keep any eye out for that.
from js9.
Related Issues (20)
- Conflicting CSS HOT 3
- Loading files from the server with the node helper HOT 14
- Javascript API HOT 2
- Load multi extension tile compressed fits report error. HOT 9
- JS9.Load("file", {ra: 0, dec: 0}) doesn't pan HOT 3
- Missing reference in CSS file "tabcontent.css" HOT 3
- Unable to Load FITS files with NaN values HOT 12
- JS9 ERROR: cannot load: ../astroemw.wasm ... please check the url/pathname HOT 3
- Multi Extension FITs mosaic display HOT 12
- Fits Image Display Area + Rotation HOT 10
- JS9 potentially crashing on ARM64 architecture HOT 8
- JS9.ChangeRegions() to change position incorrect after zooming image HOT 5
- Incorporating JS9 (and pyjs9) into a JupyterLab -> Kubernetes/Docker system HOT 2
- Release with bundled minimist bump? HOT 3
- Q: is there a query parameters to load image from CORS server? HOT 16
- ImageOpts.flip does nothing HOT 3
- Load image from memory. HOT 4
- End of JS9 development: July 1, 2022 HOT 2
- Preload regions with image HOT 3
- unable to open some files HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js9.