-
Notifications
You must be signed in to change notification settings - Fork 52
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
Fix bug in sea ice analysis with oceanStreams #124
Fix bug in sea ice analysis with oceanStreams #124
Conversation
oceanStreams has no method close Also, fix PEP8 formatting.
@milenaveneziani, these changes are required to get If you can just verify that |
@xylar, @vanroekel: I ran the test mentioned above on wolf, using the newest conda environment (python/anaconda-2.7-climate_new). All the resulting plots look OK, but I get these warnings that remind me what you two have been mentioning recently:
Are they related to the fact that we are using a newer numpy, maybe? |
In my experimentation with packages, these warnings arise in the newer dask package. Since they don't seem to influence output, I have not looked into them. |
Thanks @milenaveneziani! That error seems to be related to @vanroekel's nearest neighbor interpolation with the latest dask. That will go away with #123 but will be replaced with a boatload of ncremap-related warnings instead. So fun times! |
I wander if we can suppress some of the ncremap/ncks warnings. @czender, do you have any suggestion?
|
@milenaveneziani and @czender, part of the reason for the warnings is that xarray wants to produce files with |
By the way, these warnings are completely unrelated to this PR so we should discuss them somewhere else... |
@xylar and @milenaveneziani |
Thanks @czender for the response. I would say maybe we would only want the following:
I tried to look for a |
@milenaveneziani, a rather easy solution to this would be to have individual error and log files for the subprocess call to I'm okay with having an option to suppress output from |
I'll add a verbosity level switch by which the user can turn up/down the printed output. And I'll try to ensure that the WARNINGs only get printed once. It's dangerous to turn-off all warnings by default, so this will be an opt-out situation. On the other hand, the current output is a bit wordy and hasn't been pared down from what I found most useful when developing. Will post again when the verbosity option works. |
The latest version of ncremap (4.6.5-alpha04 and counting...) has a --vrb_lvl option that can considerably quiet the output to what you might want. It still prints WARNINGs that IMHO users should see. Examples of vrb_lvl=0 to 3 below. 0 prints nothing, 3 prints most everything. I am inclined to set the default level to 2 which shows each file transformation stage inputs and outputs. Please play around with it and give me feedback within the next week if you want changes before I release 4.6.5 (which will presumably become your default after conda updates). zender@aerosol: |
Thanks @czender. I could play around with this on edison, while testing various MPAS-Analysis PR's: how do I point to 4.6.5-alpha04 there? (we have been using the default module 4.6.2 in the last few months) |
it's in ~zender/[bin,lib]_edison |
StreamsFile
has noclose
method, so calls have been removed.seaice_modelvsobs
now resorts to an ocean restart file if no sea-ice restart file is available. This is similar to the behavior ofseaice_timeseries
.Fixes PEP8 formatting in sea ice analysis.