Giter VIP home page Giter VIP logo

Comments (4)

ericmandel avatar ericmandel commented on June 30, 2024

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.

briehanlombaard avatar briehanlombaard commented on June 30, 2024

Sorry Eric, I seem to have declared the override in the wrong place. It works perfectly now.

from js9.

ericmandel avatar ericmandel commented on June 30, 2024

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.

briehanlombaard avatar briehanlombaard commented on June 30, 2024

Thanks. I'll definitely keep any eye out for that.

from js9.

Related Issues (20)

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.