holzschu / Carnets

Carnets is a stand-alone Jupyter notebook server and client. Edit your notebooks on the go, even where there is no network.
https://holzschu.github.io/Carnets_Jupyter/
BSD 3-Clause "New" or "Revised" License
567 stars 34 forks source link

Install Basemap #21

Open weiszr opened 5 years ago

weiszr commented 5 years ago

It would be great in add Basemap as well to be able to make nice maps.

holzschu commented 5 years ago

I'll have a look. It seems like a big addition, although smaller than Scipy (or Pandas).

holzschu commented 5 years ago

Basemap in itself seems easy (sort of).

But the 185 MB of data associated with it are a bit too much for the AppStore. I will have to make it available as a separate download, if I can find a way to do so.

weiszr commented 5 years ago

Hello,

Yes..that might be a issue. The possibility to have the shape files locally download and not part be part of the app per se is a great idea. If you like I can see if that is possible on a regular installation.

Cheers,

Robert


Robert Weiss Associate Professor of Natural Hazards Department of Geosciences Virginia Tech 4044 Derring Hall (0420) Blacksburg, VA 24061, U.S.A.

Office: 1068A Derring Phone:+1-540-231-2334 Fax: +1-540-231-3386

!!!!!Please note the new webpage!!!!! http://coastalhazardsvt.weebly.com

Twitter: @VTCoastal

Albert Einstein (probably joking): If the facts don't fit the theory, change the facts! On May 7, 2019, 3:47 AM -0400, Nicolas Holzschuch notifications@github.com, wrote:

Basemap in itself seems easy (sort of). But the 185 MB of data associated with it are a bit too much for the AppStore. I will have to make it available as a separate download, if I can find a way to do so. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

petrushy commented 5 years ago

Hi, an alternative is cartopy, similar features and it can download data at usage.

holzschu commented 5 years ago

Thanks for the info. I see (from basemap web page): https://matplotlib.org/basemap/users/intro.html

The Cartopy project will replace Basemap, but it hasn’t yet implemented all of Basemap’s features. All new software development should try to use Cartopy whenever possible, and existing software should start the process of switching over to use Cartopy.

weiszr commented 5 years ago

I have done some work recently with cartopy. It requires an internet connection at runtime of the code. So it would kind of defeat the purpose of running jupyter locally on the ipad.

dopplershift commented 5 years ago

CartoPy requires an internet connection to download the map shapefiles...which is exactly what @holzschu was saying would have to happen for Basemap, so they're kinda of equal in that regard. I'd personally love to have CartoPy available.

holzschu commented 4 years ago

After testing, cartopy requires scipy. Or rather, it's a soft dependency, but even the most basic commands to plot a map require "scipy.interpolate.griddata".

weiszr commented 4 years ago

Alas...that is a problem.

On Sun, Jan 5, 2020 at 3:48 PM Nicolas Holzschuch notifications@github.com wrote:

After testing, cartopy requires scipy. Or rather, it's a soft dependency, but even the most basic commands to plot a map require "scipy.interpolate.griddata".

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/21?email_source=notifications&email_token=AAKYINTDL3A3KZQWDHNRJ2LQ4HXJ5A5CNFSM4HK2BZF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIDYQKI#issuecomment-570918953, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKYINX42XCHIJYVP4AIIS3Q4HXJ5ANCNFSM4HK2BZFQ .

--


Dr. Robert Weiss Professor of Natural Hazards Center for Coastal Studies (Coastal@VT), Director DRRMVT, Director Department of Geosciences Virginia Tech 4044 Derring Hall (0420) Blacksburg, VA 24061, U.S.A.

Offices: 1068A Derring Phone:+1-540-231-2334 Fax: +1-540-231-3386

Web: http://coastalhazardsvt.weebly.com https://fralin.vt.edu/gssda/coastal.html https://www.drrm.fralin.vt.edu/index.php

Twitter: @VTCoastal Research Web: http://coastalhazardsvt.weebly.com Education Web: https://fralin.vt.edu/DRRM.html

Twitter: @VTCoastal

holzschu commented 2 years ago

This is one of the oldest issues still opened. The current TestFlight version of Carnets-with-Scipy has Cartopy installed: https://testflight.apple.com/join/UbNIjkjp

It appears to work, the map files are downloaded in ~/Library/cartopy by default (which is great). I'm interested in feedback.