Closed SAMPHY86 closed 7 years ago
Yes, there is. Please see the simple.py file in folder examples. https://github.com/nansencenter/sea_ice_drift/blob/add_mcc_functions/examples/simple.py It shows hot to correctly do quiver plot when lon and lat have different scales:
plt.quiver(lon1ft, lat1ft, uft, vft, color='r', angles='xy', scale_units='xy', scale=0.5)
On Aug 4, 2017 08:19, "SAMPHY86" notifications@github.com wrote:
Hi, Thank you for resolving the last issue. Now I tried running sea_ice_drift with the supplied test data but it shows all vectors for FT and PM in one (u) direction (see attachments) [image: sea_ice_drift_ft_img1] https://user-images.githubusercontent.com/29968261/28956019-7c530904-793e-11e7-98a6-2f8e6d4189ae.png [image: sea_ice_drift_pm_img2] https://user-images.githubusercontent.com/29968261/28956028-8570bd92-793e-11e7-8aa2-a9b447dc2fbe.png
But when i multiplied the vft and vpm by a factor say 10, then it resembles the results provided on website(see attachments) [image: sea_ice_drift_ft_img3] https://user-images.githubusercontent.com/29968261/28956104-05c9b444-793f-11e7-95e9-c7a1940487c7.png [image: sea_ice_drift_pm_img4] https://user-images.githubusercontent.com/29968261/28956111-0b4f5234-793f-11e7-989b-1acf761c13ff.png
So is there any scaling factor involve when try to plot the vectors? Many thanks, Usama
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nansencenter/sea_ice_drift/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AE_OY96glAT6jdOghiwfUsps74TDLbCmks5sUrfYgaJpZM4OtUeo .
Many thanks for your response! I got everything to work with the test data. Now I downloaded sentinel-1 data from ESA and I did a calibration using the SNAP software. Having it exported as a geotiff, I realized that the header information is different from the one provided in the sample data. So when I run the program I get the error below. Can I use SNAP to export the data in the right format, or did you use a different software?
Traceback (most recent call last):
File "
It is better to have it as a separate issue. Nonetheless I can reply that I use Nansat for calibration of Sentinel-1 data. I'd also like to add that it is not strictly compulsory to use the SeaIceDrift class. In fact it was designed more for demonstration. You can use the function from ftlib and pmlib directly and be very flexible.
Hi, Thank you for resolving the last issue. Now I tried running sea_ice_drift with the supplied test data but it shows all vectors for FT and PM in one (u) direction
But when i multiplied the vft and vpm by a factor say 10, then it resembles the results provided on website
So is there any factor involves when try to plot the vectors? Many thanks, Usama