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

Basemap mpl tool not listed as a dependency #70

Closed
kuanb opened this issue Apr 25, 2017 · 5 comments
Closed

Basemap mpl tool not listed as a dependency #70

kuanb opened this issue Apr 25, 2017 · 5 comments

Comments

@kuanb
Copy link
Member

kuanb commented Apr 25, 2017

Basemap is an extension of Matplotlib but not included/distributed with the main library (see: http://matplotlib.org/mpl_toolkits/index.html?highlight=basemap#basemap).

Introduced in PR #38, the new dependency requirement appears to have been added/listed only to the Travis file.

Two suggestions:

  1. Add documentation (specifically in the Installation doc), indicating users need to install this.
  2. Modify Basemap plot #38's code and make it an optional lib (via a try), wherein matplotlib simply plots based on the x and y values in the dataframe.
@kuanb
Copy link
Member Author

kuanb commented Apr 25, 2017

Here's a sketch (not finalized) of what the install steps would be in a Dockerfile:

RUN echo "Installing GEOS library..." && \
    mkdir -p /provisioning/geos && \
    cd /provisioning/geos && \
    curl -# -O http://download.osgeo.org/geos/geos-3.5.1.tar.bz2 && \
    tar -xjf geos-3.5.1.tar.bz2 && \
    cd geos-3.5.1 && \
    ./configure && \
    make -j$(python -c 'import multiprocessing; print(multiprocessing.cpu_count())') && \
    make install && \
    ldconfig -v && \
    rm -rf /provisioning/geos*

RUN echo "Installing Proj4 library..." && \
    mkdir -p /provisioning/proj4 && \
    cd /provisioning/proj4 && \
    curl -# -O http://download.osgeo.org/proj/proj-4.9.3.tar.gz && \
    tar -xf proj-4.9.3.tar.gz && \
    cd proj-4.9.3 && \
    ./configure && \
    make install

RUN echo "Installing Basemap plotting library..." && \
    mkdir -p /provisioning/basemap && \
    cd /provisioning/basemap && \
    wget https://sourceforge.net/projects/matplotlib/files/matplotlib-toolkits/basemap-1.0.7/basemap-1.0.7.tar.gz && \
    tar -xf basemap-1.0.7.tar.gz && \
    cd basemap-1.0.7 && \
    python setup.py install && \
    rm -rf /provisioning/basemap

Aside: Installing GEOS is slow.

@kuanb kuanb changed the title Basemap not listed as a dependency Basemap mpl tool not listed as a dependency Apr 25, 2017
@wwymak
Copy link

wwymak commented Jun 1, 2019

just wondering-- is using basemap for the plot still a good idea, given that it's being EOL? https://matplotlib.org/basemap/users/intro.html#cartopy-new-management-and-eol-announcement

@sablanchard
Copy link
Collaborator

sablanchard commented Jun 4, 2019

Hi @wwymak you are right, updating plot to move away from basemap makes sense with its depreciation and move over to cartopy. PRs are welcome if interested. Added it as a new issue: #110 .

@knaaptime
Copy link

there's also contextily if you're after a more full-featured basemap

@smmaurer
Copy link
Member

smmaurer commented Aug 7, 2020

See issue #144

@smmaurer smmaurer closed this as completed Aug 7, 2020
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

5 participants