OceanParcels / Parcels

Main code for Parcels (Probably A Really Computationally Efficient Lagrangian Simulator)
https://www.oceanparcels.org
MIT License
295 stars 136 forks source link

fieldset.U.show() only displaying positive lon values for HYCOM #537

Closed MahiMahi90 closed 5 years ago

MahiMahi90 commented 5 years ago

When calling the fieldset.U.show() for a HYCOM dataset, only the positive lon values are displayed. (Hycom Lon values range from 0 to 360 deg.)

hycom_w_oceanparcels

erikvansebille commented 5 years ago

Thanks for reporting this! It's indeed a bug. I will fix it in a PR, but in the meantime a workaround seems to be to explicitly give the projection type. I.e.

import cartopy
fieldset.U.show(projection=cartopy.crs.PlateCarree())

Could you confirm that this works, @MahiMahi90 ?

MahiMahi90 commented 5 years ago

Yep that works! Thanks!!

screenshot 2019-02-20 at 20 30 08
erikvansebille commented 5 years ago

Fixed in #539