Support the Arctic Sea Ice Forum and Blog

Author Topic: Dev library  (Read 800 times)

uniquorn

  • Nilas ice
  • Posts: 1555
    • View Profile
  • Liked: 755
  • Likes Given: 156
Dev library
« on: September 12, 2019, 11:48:41 AM »
Resizing table for overlays:
satellite           pxl       %      ~km/pxl    ~km^2/pxl
SMOS              397.5    75.815   11.92      5.06
Ascat              524.3   100.000    9.04      6.67
OsiSaf            1075.5   204.711    4.41     13.66
SMOS-SMAP   1146.0   218.577    4.13     14.59
AMSR2           1197.6   228.419    3.96     15.24



uniquorn

  • Nilas ice
  • Posts: 1555
    • View Profile
  • Liked: 755
  • Likes Given: 156
Re: Dev library
« Reply #1 on: September 12, 2019, 11:59:53 AM »
method for creating graticules from A-Team. 2 examples with mosaic start area.
Quote
tech note: to crop to a lat-lon rectangle on an image lacking a suitable graticule, draw a vertical line through the north pole on a transparent layer copy, then rotate it to provide the lon lines. fix the circle tool to 1:1, find the number of pixels to an outer lat line, reduce the circle appropriately, cut the center, enlarge the circle, cut the inverted selection, autocrop image.

formula πR² * diff in lons * diff in sin(lats)

πR² = 126916372 sq km WGS84
πR² = 127516118 sq km sphere

42,900 sq km WGS84 for two degree lat, 20 degrees long
43,103 sq km sphere  for two degree lat, 20 degrees long

64,350 sq km WGS84 for two degree lat, 30 degrees long
64,654 sq km sphere  for two degree lat, 30 degrees long

uniquorn

  • Nilas ice
  • Posts: 1555
    • View Profile
  • Liked: 755
  • Likes Given: 156
Re: Dev library
« Reply #2 on: September 12, 2019, 10:53:49 PM »
osisaf graticule

MyACIsDying

  • New ice
  • Posts: 54
    • View Profile
  • Liked: 50
  • Likes Given: 12
Re: Dev library
« Reply #3 on: September 23, 2019, 12:08:38 AM »
R code for this animation attached. I'm practicing and much needs to be optimized, this run took about 2 hours..

Code is commented as sensibly as possible and can be run to produce the same result, 35 images, gif making done with ezgif. magick for next time.

requires 1.5GB disk space


uniquorn

  • Nilas ice
  • Posts: 1555
    • View Profile
  • Liked: 755
  • Likes Given: 156
Re: Dev library
« Reply #4 on: September 26, 2019, 08:30:07 PM »
Good gradient palette

uniquorn

  • Nilas ice
  • Posts: 1555
    • View Profile
  • Liked: 755
  • Likes Given: 156
Re: Dev library
« Reply #5 on: October 06, 2019, 04:47:29 PM »
In the macid spirit of sharing. Here is the octave code for creating the images for the mosaic buoy ani here https://forum.arctic-sea-ice.net/index.php/topic,2906.msg232120.html#msg232120
(rem the first line of the buoy file or it won't open)
« Last Edit: October 06, 2019, 04:57:56 PM by uniquorn »

MyACIsDying

  • New ice
  • Posts: 54
    • View Profile
  • Liked: 50
  • Likes Given: 12
Re: Dev library
« Reply #6 on: October 06, 2019, 10:54:16 PM »
In the spirit of sharing I stole the genius of the best libraries around.. plotly does more than I could have dreamed of and exports to WebGL, takes some time to load but worth it :D

Smallest example: http://rpubs.com/macid/ITP119_TempC
check the rest on http://rpubs.com/macid/, the biggest ones have crashed my browser on occasion, would like to hear how it works for other people. Could optimize with averaging some data points if needed or other 'd0h' moments.

code updated on https://github.com/macidR/arcticPlotting/blob/master/plotly.R much quicker and awesome

uniquorn

  • Nilas ice
  • Posts: 1555
    • View Profile
  • Liked: 755
  • Likes Given: 156
Re: Dev library
« Reply #7 on: October 06, 2019, 11:56:01 PM »
« Last Edit: October 07, 2019, 11:46:43 AM by uniquorn »

MyACIsDying

  • New ice
  • Posts: 54
    • View Profile
  • Liked: 50
  • Likes Given: 12
Re: Dev library
« Reply #8 on: October 07, 2019, 12:15:30 AM »
hmm doesn't sound like you're seeing what I see, only tested with chrome, less then GB mem use & 20 secs loading or so, data download should only be 10MB.

The controls are supposed to let you pan/zoom/orbit the thing

Sample of ITP116 attached (one of the nicest)


uniquorn

  • Nilas ice
  • Posts: 1555
    • View Profile
  • Liked: 755
  • Likes Given: 156
Re: Dev library
« Reply #9 on: October 07, 2019, 12:27:57 AM »
« Last Edit: October 07, 2019, 11:45:13 AM by uniquorn »

uniquorn

  • Nilas ice
  • Posts: 1555
    • View Profile
  • Liked: 755
  • Likes Given: 156
Re: Dev library
« Reply #10 on: November 08, 2019, 11:57:50 AM »
lat/lon overlay for osi-saf