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

Coastline not showing #10

Closed
prise6 opened this issue Apr 4, 2019 · 8 comments
Closed

Coastline not showing #10

prise6 opened this issue Apr 4, 2019 · 8 comments

Comments

@prise6
Copy link

prise6 commented Apr 4, 2019

Hi,

I try to understand why in my plots i can't see any coastline.
For example this code :

import Magics.macro as magics
magics.plot(magics.mcoast())

give me this plot:
github_issue_mcoast

OS: ubuntu 18.04
Magics installation: conda install -y -c conda-forge Magics=4.0.0

i would like to know if you have some test i can run to help me find why i can't draw coasts ?

Thanks

@StephanSiemen
Copy link
Contributor

Hi @prise6 ,
Did you get any error/warning messages? This seems to happen the the shapefiles wwhihc contain the coastlines can not be found at runtime. But there should be messages on that?!
Can not see this on any of my tests environments, but just downloading an Ubuntu 18.04 ...
Get back to you
Stephan

@StephanSiemen
Copy link
Contributor

Hi @prise6 ,
unfortunately, I can not reproduce your problem. Under Ubuntu 18.04 with mini conda I get the coastlines. Could you please try the python code
magics.info()
after your lines and tell us what you get?
Thanks

@prise6
Copy link
Author

prise6 commented Apr 5, 2019

Hi @StephanSiemen,
Thank you for your answer.
I do not have any warning or errors when using magics. This is the reason why i'm a bit lost.
Is there a debug mode i can turn on ?

Here is the executed code you ask:

magics.info()

Checking Magics: Magics 4.0.0 (64 bit)
Configuration files found in /opt/conda

I use docker, here's my Dockerfile:

FROM jupyter/tensorflow-notebook:7f1482f5a136

USER root

RUN apt-get update && \
    apt-get install -y \
    libmagplus3v5 \ 
    libproj-dev \
    proj-data \
    proj-bin \
    gdal-bin \
    libgeos-dev \
    libssl1.0.0 \
    libssl-dev

RUN conda install -y -c conda-forge python-eccodes cartopy Magics=4.0.0

USER $NB_UID

Can you tell me where i shoud find my shapefiles wwhihc in my system ?

Thank you again.

@StephanSiemen
Copy link
Contributor

Hi @prise6 ,
I can currently not try your setup, but I noticed that you install Magics through apt-get and Conda. You do not need the apt-get one if you have Conda since Magics 4.0. Perhaps there is a mismatch if both versions are installed? Please try remove the installation of Magics through apt-get ("libmagplus3v5") and see if this helps.
Cheers

@prise6
Copy link
Author

prise6 commented Apr 8, 2019

@StephanSiemen ,
I removed libmagplus3v5 and build my image, unfortunately it doesn't work :/
Could it be a permission problem ?

@oldtree2008
Copy link

oldtree2008 commented Apr 30, 2019

I have the same problem.
Unable to open /home/xxxx/anaconda3.shp or /home/xxxx/anaconda3.SHP.
Magics-ERROR: Can not open Shapefile /home/xxxx/anaconda3Magics

But selfcheck is Ok
python -m Magics selfcheck
Checking Magics: Magics 4.1.0 (64 bit)
Configuration files found in /home/xxxx/anaconda3
Found: Magics 'Magics 4.1.0 (64 bit)'.

@oldtree2008
Copy link

oldtree2008 commented Apr 30, 2019

I have solved the problem. just set Environment variant MAGPLUS_HOME=/home/xxxx/anaconda3.

@dtip
Copy link
Collaborator

dtip commented Apr 30, 2019

@oldtree2008 if you activate your conda environment MAGPLUS_HOME should be automatically set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants