Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Brian Mapes
@brianmapes
Is there a general suite of hygeine commands one should run as these miniconda installs age year after year?
ill try conda update conda and repeat it
Ryan May
@dopplershift
I definitely do both conda update conda and conda update --all for the base environment. This "should" be the same as downloading a new miniconda.
You shouldn't run into problems updating the environment, but if you have a .yml file then you could nuke the environment and redo: conda env create -f xxx.yml
Brian Mapes
@brianmapes
conda nuke?
Ryan May
@dopplershift
What's weird is that updating the environment should in no way require any compilers. It feels like pip is trying to build something and I don't understand why.
conda env remove -n myenvironmentname
Brian Mapes
@brianmapes
thats a good test before assigning it to students, starting over
ill try it
Ryan May
@dopplershift
If that doesn't work, feel free to post the yml file here or send it over.
Brian Mapes
@brianmapes
so Xcode should not be required? Do you tell people to install git on mac in some other way?
Ryan May
@dopplershift
If you need git for something, then it's either Xcode or you can actually do conda install git
Brian Mapes
@brianmapes
ohh, so then one can put git in a .yml file?
Ryan May
@dopplershift
You can. That just means you need to activate the environment any time you want to use git.
Brian Mapes
@brianmapes
Oh right. Actually I steer students to the github desktop client (which is what I do myself) which may not require git. (or does it?)
Ryan May
@dopplershift
Github desktop client should come with git
WxmanJ
@WxmanJ
Does MetPy offer the ability to display a WPC frontal analysis? I think these products come in redbook format or KML.
Ryan May
@dopplershift
So one of the pieces of code I have laying around is code to make matplotlib draw fronts. I've also looked at the text products of the frontal analyses and they look straightforward to parse. But today, no there's nothing.
If that's an important feature for you, I'd encourage you to open an issue: https://github.com/Unidata/MetPy/issues/new
That way we can capture it and include it in future release planning.
WxmanJ
@WxmanJ
Will do. Thank you, Ryan.
WxmanJ
@WxmanJ
@dopplershift, for now I am just using GDAL to convert the PNG from the Weather Prediction Center to a GeoTiff. Then plotting it with Matplotlib and GeoRaster.
Ryan May
@dopplershift
Sounds like a reasonable solution
Claude Dicaire
@eliteuser26
@dopplershift I have a question about external dependencies. Do you have a list of dependencies that Metpy uses? I could go through the code in Metpy. Sometimes to decode some weather data there is a need of other external dependencies. As you know weather file formats vary from weather center to weather center. It would nice to have a list of dependencies to compare before coding.
Zach Bruick
@zbruick
Here's our current dependency list: https://unidata.github.io/MetPy/latest/installguide.html. Note that CartoPy became an accidental dependency (and isn't on that list), and it might be removed from the dependency requirements in the near future. Pandas will be added as a dependency in 0.11
Brian Mapes
@brianmapes
Infinite regress! conda update -n base conda
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.5.11
latest version: 4.7.12
Please update conda by running
$ conda update -n base conda
All in response to trying to install this environment https://github.com/ATMOcanes/ATM651_IntroAtmDynamics/blob/master/ATM651_conda_environment.yml which gets me the following error:
(besides the warning to update conda that leads to infinite regress),
Downloading and Extracting Packages
qtconsole-4.5.5 | 90 KB | ################################################################################# | 100%
bzip2-1.0.8 | 148 KB | ################################################################################# | 100%
importlib_metadata-0 | 38 KB | ################################################################################# | 100%
pyqt-5.9.2 | 4.5 MB | ################################################################################# | 100%
ca-certificates-2019 | 143 KB | ################################################################################# | 100%
certifi-2019.9.11 | 147 KB | ################################################################################# | 100%
zlib-1.2.11 | 101 KB | ################################################################################# | 100%
pyproj-2.3.1 | 231 KB | ################################################################################# | 100%
ipython-7.8.0 | 1.1 MB | ################################################################################# | 100%
tk-8.6.9 | 3.2 MB | ################################################################################# | 100%
libnetcdf-4.6.2 | 1.2 MB | ################################################################################# | 100%
numpy-1.17.2 | 4.9 MB | ################################################################################# | 100%
pluggy-0.13.0 | 28 KB | ################################################################################# | 100%
pyzmq-18.1.0 | 455 KB | ################################################################################# | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: failed
ERROR conda.core.link:_execute(502): An error occurred while installing package 'conda-forge::appdirs-1.4.3-py_1'.
FileNotFoundError(2, "No such file or directory: '//anaconda/envs/ATM651/bin/python3.7'")
Attempting to roll back.
Not clear to me why it wants to and can't find python3.7 despite python=3 being the top line of the environment file
Brian Mapes
@brianmapes
all done from "home" (base, no environment)
Ryan May
@dopplershift
@brianmapes Are you sure you ran conda update -n base conda ? I don't understand why that would be complaining about your ATM651 environment.
Brian Mapes
@brianmapes
@dopplershift Yes, the infinite regress is standalone.
Infinite regress! conda update -n base conda
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.5.11
latest version: 4.7.12
Please update conda by running
$ conda update -n base conda
I just happened to mention that what sparked it was the WARNING popping up during 'conda env create' session
Ryan May
@dopplershift
It's updating libnetcdf when you tell it conda update -n base conda?
?
Brian Mapes
@brianmapes
No, it just gives that WARNING
Ryan May
@dopplershift
Have you actually tried to do what it's suggesting?
Often times when I run into weird conda errors, updating conda with conda update -n base conda fixes it. Your current conda of 4.5.11 is a bit old.
Brian Mapes
@brianmapes
By infinite regress I mean: yes I do precisely what it suggests, and get the same warning and suggestion to do exactly that again, which gets the same warning and so on, but conda never updates.
sounds like I might need to clobber my whole miniconda install and start over?
I'll save your goodwill for bigger problems :) very soon...
Ryan May
@dopplershift
:wink: It sounds like you got it squared away then, glad to hear it.
Bizarre bug though
Claude Dicaire
@eliteuser26
Thank you @zbruick for indicating where to look for the dependency list. I noticed that sometimes we use dependencies that are not indicated like you said for cartopy and pandas. That way we can verify what we use for dependencies for coding in Metpy.
Ryan May
@dopplershift
@eliteuser26 See #845
Claude Dicaire
@eliteuser26
Thanks @dopplershift . I have seen the issues that were created in Metpy. I have seen that Canadian radiosondes are now distributed in CSV format. This will simplify ingesting radiosondes into Metpy instead of decoding text files.
Ryan May
@dopplershift
Looks like NWS has been sending out hires BUFR ones for awhile and I had no idea.