Support the Arctic Sea Ice Forum and Blog

Author Topic: Dev library  (Read 1752 times)

uniquorn

  • Nilas ice
  • Posts: 1888
    • View Profile
  • Liked: 973
  • Likes Given: 187
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: 1888
    • View Profile
  • Liked: 973
  • Likes Given: 187
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: 1888
    • View Profile
  • Liked: 973
  • Likes Given: 187
Re: Dev library
« Reply #2 on: September 12, 2019, 10:53:49 PM »
osisaf graticule

MyACIsDying

  • Guest
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: 1888
    • View Profile
  • Liked: 973
  • Likes Given: 187
Re: Dev library
« Reply #4 on: September 26, 2019, 08:30:07 PM »
Good gradient palette

uniquorn

  • Nilas ice
  • Posts: 1888
    • View Profile
  • Liked: 973
  • Likes Given: 187
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

  • Guest
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: 1888
    • View Profile
  • Liked: 973
  • Likes Given: 187
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

  • Guest
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: 1888
    • View Profile
  • Liked: 973
  • Likes Given: 187
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: 1888
    • View Profile
  • Liked: 973
  • Likes Given: 187
Re: Dev library
« Reply #10 on: November 08, 2019, 11:57:50 AM »
lat/lon overlay for osi-saf

uniquorn

  • Nilas ice
  • Posts: 1888
    • View Profile
  • Liked: 973
  • Likes Given: 187
Re: Dev library
« Reply #11 on: November 24, 2019, 07:19:11 PM »
I just know everyone is going to want to try this for themselves ;)

Steps and rationales in placing an S1 image under its buoy time frame:

rotate S1 of 05:46 22.11.19 cw 45º in ImageJ
measure scale between 85-86 at 2712.46 pixels or 813.7 pixels per 0.3 deg of lat
animation scale between 85.6 and 85.9 which is 0.3 deg of lat is 369.6 pixels
consequently the S1 needs to be downscaled by 45.42% to fit under animation frame 77 need to find 85.6 120 on the S1 to know how far to drag it.
given 85.0 and 86.0 corners, it will be 0.6 * 2712.46  = 739.2 pixels down from 85.0
add a blank layer and put a green dot there.
put a big red * over the Polarstern on the image
add frame 77 and final frame 100 overlays and co-slide to 85.6 120
autocrop to get rid of S1 that is not under frame 77.
note PS is 53 pxl left and 6 pxl down relative to buoy P204 on frame 77
for future PS put a magenta star 53 pxl left and 6 pxl down relative to buoy P204 on frame 100
sailwx is saying PS is at 85.7 120.3 on frame 100 which is at 04:30 on 11.23.19
put a orange star 27.4 pxls up from 85,7 (in a blank layer, don’t cover up data).
copy out P204’s route, color it cyan and translocate it from PS f77 to PS f100 for
that gives hypothetical intermediate drift that we can test with RAMMB
ship GPS is only 1 dp so has a large uncertainty orange box
save a new-from-visible png enlarged to ~700
 
repeat for all the frames that have a nearby S1 time and post to forum later
most of the steps are the same for all S1 and
steps vary simply if Uniq changes buoy animation scale and orientation

05:46   22 11 19
04:08   22 11 19
02:30   22 11 19
06:43   21 11 19
03:27   21 11 19
06:02   20 11 19
04:24   20 11 19
07:00   19 11 19
05:21   19 11 19

blumenkraft

  • Young ice
  • Posts: 3228
  • Fans of Hans Ø Club - circa 2018
    • View Profile
  • Liked: 1202
  • Likes Given: 1900
Re: Dev library
« Reply #12 on: January 30, 2020, 12:38:54 PM »
CesiumJS - an open source JavaScript library for creating world-class 3D globes and maps with the best possible performance, precision, visual quality, and ease of use

Link >> https://cesium.com/cesiumjs/
Everyone who can must self-isolate.

sidd

  • First-year ice
  • Posts: 5350
    • View Profile
  • Liked: 626
  • Likes Given: 0
Re: Dev library
« Reply #13 on: February 02, 2020, 10:14:26 PM »

uniquorn

  • Nilas ice
  • Posts: 1888
    • View Profile
  • Liked: 973
  • Likes Given: 187
Re: Dev library
« Reply #14 on: March 11, 2020, 05:09:12 PM »
ascat ready land mask from here
« Last Edit: March 11, 2020, 05:24:33 PM by uniquorn »