Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boxfill plots don't pick proper interval #867

Closed
potter2 opened this issue Nov 2, 2014 · 10 comments
Closed

boxfill plots don't pick proper interval #867

potter2 opened this issue Nov 2, 2014 · 10 comments
Assignees
Milestone

Comments

@potter2
Copy link

potter2 commented Nov 2, 2014

I have just found that the boxfill plots - even though the data range is between 5e-7 and .0004 (very small numbers) the default range for plotting it picks is between 0 and 20. the colorfill plot works fine and picks a range between .0004 and 5e-7. Users shouldn't have to reset the range for the boxfill. The attached example is for precip.. Color fill on top and boxfill on the bottom.
boxfill_issue

@doutriaux1
Copy link
Contributor

thanks @potter2 will take a look this morning.

@doutriaux1 doutriaux1 added the VCS label Nov 3, 2014
@doutriaux1 doutriaux1 added this to the 2.1 milestone Nov 3, 2014
@doutriaux1 doutriaux1 self-assigned this Nov 3, 2014
@doutriaux1
Copy link
Contributor

@potter2 works for me. Is that from the GUI?

import cdms2,sys,vcs
x=vcs.init()
f=cdms2.open(sys.prefix+"/sample_data/clt.nc")
s=f("clt",time=slice(0,1),squeeze=1)/100000000.
iso=x.createisofill()
x.plot(s,iso)
raw_input("pe")

ok

@potter2
Copy link
Author

potter2 commented Nov 3, 2014

Yes,

Gerald (Jerry) Potter
NASA Goddard Space Flight Center
E-mail gerald.potter@nasa.gov
Office 28:S241
Phone 707.315.8314
Analysis and Data Consultant
Department GSFC:606.2

From: Charles Doutriaux <notifications@github.commailto:notifications@github.com>
Reply-To: UV-CDAT/uvcdat <reply@reply.github.commailto:reply@reply.github.com>
Date: Monday, November 3, 2014 at 10:40 AM
To: UV-CDAT/uvcdat <uvcdat@noreply.github.commailto:uvcdat@noreply.github.com>
Cc: Gerald Potter <gerald.potter@nasa.govmailto:gerald.potter@nasa.gov>
Subject: Re: [uvcdat] boxfill plots don't pick proper interval (#867)

@potter2https://github.com/potter2 works for me. Is that from the GUI?

import cdms2,sys,vcs
x=vcs.init()
f=cdms2.open(sys.prefix+"/sample_data/clt.nc")
s=f("clt",time=slice(0,1),squeeze=1)/100000000.
iso=x.createisofill()
x.plot(s,iso)
raw_input("pe")
ok


Reply to this email directly or view it on GitHubhttps://github.com//issues/867#issuecomment-61525720.

@doutriaux1
Copy link
Contributor

import cdms2,sys,vcs
x=vcs.init()
f=cdms2.open(sys.prefix+"/sample_data/clt.nc")
s=f("clt",time=slice(0,1),squeeze=1)/100000000.
x.plot(s)
x.png("ok")

raw_input("pe")

ok

@doutriaux1
Copy link
Contributor

works for me from the gui as well. Can anybody else reproduce this?

@potter2
Copy link
Author

potter2 commented Nov 3, 2014

It may be that the data has very small numbers. Try a precip file that has values similar to what I sent as an example.

Gerald (Jerry) Potter
NASA Goddard Space Flight Center
E-mail gerald.potter@nasa.gov
Office 28:S241
Phone 707.315.8314
Analysis and Data Consultant
Department GSFC:606.2

From: Charles Doutriaux <notifications@github.commailto:notifications@github.com>
Reply-To: UV-CDAT/uvcdat <reply@reply.github.commailto:reply@reply.github.com>
Date: Monday, November 3, 2014 at 10:47 AM
To: UV-CDAT/uvcdat <uvcdat@noreply.github.commailto:uvcdat@noreply.github.com>
Cc: Gerald Potter <gerald.potter@nasa.govmailto:gerald.potter@nasa.gov>
Subject: Re: [uvcdat] boxfill plots don't pick proper interval (#867)

works for me from the gui as well. Can anybody else reproduce this?


Reply to this email directly or view it on GitHubhttps://github.com//issues/867#issuecomment-61526802.

@doutriaux1
Copy link
Contributor

well yours are 1E-4 my test is 1E-6

@doutriaux1
Copy link
Contributor

@potter2 Tom phillips came to me with a similar bug today I think this should fix your issue. Pushing a branch in a few minutes

@doutriaux1
Copy link
Contributor

@potter2 please go to your uvcdat sources

git checkout -b issue_869_boxfill_resets_level_1_level_2 origin/issue_869_boxfill_resets_level_1_level_2
#make sure you are having the right python
which python
cd Packages/vcs
python setup.py install
uvcdat

Let me know if tthat fixes things for you.

@doutriaux1
Copy link
Contributor

@potter2 after talking to you. It turns out you are using "quick" boxfill. For whatever historical reason "quick" has the levels preset to these values. I will generate back all the "a_boxfill" and al. so you have a clean graphic method with default values that you can edit for each type.

@doutriaux1 doutriaux1 modified the milestones: 2.1, 2.2 Feb 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants