diff --git a/_site/404.html b/_site/404.html index 586a101..d18a31d 100644 --- a/_site/404.html +++ b/_site/404.html @@ -37,14 +37,6 @@ -
  • - - conda environments for NCO, NCL, and CDO - -
  • - - -
  • about @@ -82,8 +74,6 @@ - -
  • diff --git a/_site/about/index.html b/_site/about/index.html index e1989fa..cb9579c 100644 --- a/_site/about/index.html +++ b/_site/about/index.html @@ -37,14 +37,6 @@ -
  • - - conda environments for NCO, NCL, and CDO - -
  • - - -
  • about @@ -82,8 +74,6 @@ - -
  • diff --git a/_site/coding/index.html b/_site/coding/index.html index 4556521..c05f564 100644 --- a/_site/coding/index.html +++ b/_site/coding/index.html @@ -37,14 +37,6 @@ -
  • - - conda environments for NCO, NCL, and CDO - -
  • - - -
  • about @@ -82,8 +74,6 @@ - -
  • @@ -119,10 +109,6 @@

    coding tips

    +

    +

    +

    conda environments for NCO, NCL, and CDO

    +

    July, 2018

    +

    +
    diff --git a/_site/pages/setting-up-conda-environments.html b/_site/coding/setting-up-conda-environments.html similarity index 90% rename from _site/pages/setting-up-conda-environments.html rename to _site/coding/setting-up-conda-environments.html index 4dbde8d..10bb833 100644 --- a/_site/pages/setting-up-conda-environments.html +++ b/_site/coding/setting-up-conda-environments.html @@ -13,7 +13,7 @@ - + @@ -37,14 +37,6 @@ -
  • - - conda environments for NCO, NCL, and CDO - -
  • - - -
  • about @@ -82,8 +74,6 @@ - -
  • @@ -110,14 +100,13 @@
    -
    +
    -
    -

    conda environments for NCO, NCL, and CDO

    -
    +

    conda environments for NCO, NCL, and CDO

    +
    -
    -

    Environments in conda are incredibly useful: they allow you to install parallel versions of Python and its packages, or even other languages and software, that mind their own business and never affect one another.

    +
    +

    Environments in conda are incredibly useful: they allow you to install parallel versions of Python and its packages, or even other languages and software, that mind their own business and never affect one another.

    In my own research, I actively use several different conda environments to keep everything in its place. To see what environments you currently have, type conda list env. You’ll have at least one, called the base environment, and the asterisk means it’s the current/active environment:

    @@ -189,6 +178,7 @@

    conda environments for NCO, NCL, and

    +
    diff --git a/_site/collections/_pages/setting-up-conda-environments.html b/_site/collections/_pages/setting-up-conda-environments.html deleted file mode 100644 index 7e292fb..0000000 --- a/_site/collections/_pages/setting-up-conda-environments.html +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - - - - conda environments for NCO, NCL, and CDO - - - - - - - - - - - - - - - - - - -
    - - - - -
    - -
    - -
    - - -
    -
    - -
    -

    conda environments for NCO, NCL, and CDO

    -
    - -
    -

    Environments in conda are incredibly useful: they allow you to install parallel versions of Python and its packages, or even other languages and software, that mind their own business and never affect one another.

    - -

    In my own research, I actively use several different conda environments to keep everything in its place. To see what environments you currently have, type conda list env. You’ll have at least one, called the base environment, and the asterisk means it’s the current/active environment:

    - -
    conda env list
    -
    -# conda environments:
    -#
    -base                  *  /Users/baird/miniconda3
    -
    -vcv076219:python-for-climate-scientists baird$
    -
    - -

    Installing an environment is also a great way to make the switch to a new Python library or package without breaking your installation for all your current scripts. For example, if you use basemap for plotting maps, you may have heard it’s being retired in the next couple years (see also this discussion). Its replacement is officially cartopy, but when you try to install them both, their packages conflict (or at least they did in the past). The solution: Install a separate cartopy environment to get used to it, and later switch your base environment over to cartopy.

    - -

    I typically keep at least four separate environments (in addition to the default), described below. You could get away with putting things like NCO and NCL into your base environment, but I’ve run into compatibility issues in the past, and I keep them separate to be safe.

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    conda environmentuse forinstall commands
    basemost things
    nco_stableNCO (NetCDF Operators)conda install -c conda-forge nco
    ncl_stableNCL (NCAR Command Language)conda install -c conda-forge ncl
    cdo_stableCDO (Climate Data Operators)conda install -c conda-forge cdo
    basemap_stablebasmap (assuming you have cartopy in your base environment)conda install basemap
    - -

    To create these environments yourself (base is the default), type the following (choose y after each). I like to use the _stable suffix because it helps me mentally separate an environment related to NCO from the language itself. You can name them anything you like, though.

    -
    conda create --name nco_stable
    -conda create --name ncl_stable
    -conda create --name cdo_stable
    -
    - -
      -
    • To activate an environment: source activate env_name
    • -
    • To get back to your default conda: source deactivate
    • -
    • The active environment will have an asterisk next to it in conda env list
    • -
    - -
    -

    More to come…

    -
    - - -
    -
    - -
    - -
    -
    - -

    This website is a modification of Jekyll Swiss and is maintained by Baird. Contact me here.

    - - -
    -
    - - - - - diff --git a/_site/feed.xml b/_site/feed.xml index 825d85d..12d34e3 100644 --- a/_site/feed.xml +++ b/_site/feed.xml @@ -1 +1 @@ -Jekyll2018-07-12T23:02:19-07:00http://localhost:4000/Python for climate scientistsMaterials for Earth science data wranglingBaird \ No newline at end of file +Jekyll2018-07-12T23:04:14-07:00http://localhost:4000/Python for climate scientistsMaterials for Earth science data wranglingBaird \ No newline at end of file diff --git a/_site/index.html b/_site/index.html index 988a5a4..dff15b5 100644 --- a/_site/index.html +++ b/_site/index.html @@ -33,12 +33,6 @@ -
  • - conda environments for NCO, NCL, and CDO -
  • - - -
  • about
  • diff --git a/collections/_pages/setting-up-conda-environments.md b/collections/_coding/setting-up-conda-environments.md similarity index 100% rename from collections/_pages/setting-up-conda-environments.md rename to collections/_coding/setting-up-conda-environments.md