funnelferry's Blog

Week 6: Client side and OOP

funnelferry
Published: 07/09/2019

What I did?

I worked on client side by migrating functions written in basemap and creating the instance of topview to generate plot in cartopy

What is next?

Actually a lot, Apart from generating a basic plot, there still a lot to go, before doing this I removed a lot of functionality and this process worked for me in server side as suggested by my mentor who has been immensely helpful towards guiding me.

Did you get stuck?
 

Yes, I was able to plot a blank canvas but could not display the map, my mentor diagnosed and proposed a solution further I could not generate different maps from drop down menu but after little bit of playing around I solved that. So yes, I am on way of doing this.

View Blog Post

Week 4: Finishing up first evaluation

funnelferry
Published: 06/30/2019

What did you do this week?

I have been working on completing up the server side functionality, that is, completing removing basemap's use from there and make sure every coded part in cartopy is working properly, further adding the ability to plot 'barbs' using cartopy.

What is coming up?

Completing everything related to back end and moving on to migrate the front end of code base is my next task

Did you get stuck anywhere?

Yes, I had several errors in contourf function but later were resolved when I scoured the issue tracker of Cartopy on github.

View Blog Post

Week 3: Server-side about to finish

funnelferry
Published: 06/20/2019

What did I do this Week?

This week I tranlated all the required functionality for mpl_hsec.py to generate  plot and rewrote the get_projection_params to interpret projection parameters in accordance with cartopy ways

What is coming up?

Mpl_hsec_styles.py contains the plot styles responsible for contours, barbs, quivers and overlay of necessary data, Finishing this will be the end of migration of server-side code.

Did you get stuck anywhere?

I did get stuck, at one point the correct cartopy code was not producing any plots and that was case the everywhere on the system, on a jupyter notebook or in a standalone script, but then I found the solution in another related issue from issue tracker of Cartopy.

View Blog Post

Week 2: Basic plot into the server

funnelferry
Published: 06/10/2019

What did I do this week?

This week I worked on to getting a basic plot as output as a result of changing from basemap to cartopy.

As suggested by my mentor I basically removed all the features that were there with basemap and just tried to get a plain map working, from here I will try to rebuild those specifics in cartopy.

Further I wrote one small test for the a function I added which basically emulated a similar function in pyproj.

What is coming up next?

Building on the previous work I would emulate the features previously available in basemap with also taking advantage of cartopy's other features to make the task easier and code shorter than it would have been with basemap and have a result plot plotted through the WMS successfully.

Did you get stuck anywhere?

Yes I got stuck a few number of places some of which my mentor helped me got through, one where I had to strip the code of a function to bare minimum for it to be function but I got through with a little bit of time.

View Blog Post

Week 1: Starting the migration!

funnelferry
Published: 06/04/2019

Hello all, I am Anveshan and have completed my first week of coding period, learning variety of things about Cartopy package which is used for plotting tasks as matplotlib's basemap is 

What did you do this week?

I changed functions in ```utils.py```, that made use of basemap's pyproj class for the following two tasks using cartopy package:

  • To get distance between two points
  • To compute intermediate points between two coordinates on basis of connection type (circular or linear)

What is coming up next?

I will assess and start making changes ```mpl_hsec.py``` which is a constituent of server side code and makes of basemap heavily for the horizontal plotting operations, and is also used by ```mpl_hsec_styles.py``` as a superclass.  

Did you get stuck anywhere?

Yes I had a difficulties in making the function ```ntps``` from basemap in cartopy but I got through it with help of stackoverflow and cartopy's documentation.

View Blog Post