Moved from this Gist to a repo here
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Geometry getGeodeticLineBuf(Geometry inline, int dist) { | |
GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(null ); | |
GeodeticCalculator calc = new GeodeticCalculator(DefaultGeographicCRS.WGS84); | |
Coordinate[] subsat_points = inline.getCoordinates(); | |
ArrayList<Coordinate> hull_right = new ArrayList<Coordinate>(); | |
ArrayList<Coordinate> hull_left = new ArrayList<Coordinate>(); | |
for (int i = 0; i < subsat_points.length-1; i++) { | |
calc.setStartingGeographicPoint(subsat_points[i].x,subsat_points[i].y); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# solution to https://files.slack.com/files-pri/T24GA6QHY-F0127L8RSUE/image_from_ios.jpg | |
import numpy | |
# index as cateprillar, clock and flower | |
# caterpillars data are # body segments | |
# clocks data are hour on the face of clock | |
# flower data are count of flowers, incl flowers on caterpillars' heads | |
a = numpy.array([ | |
[5+5+5, 0, 3], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import labelbox | |
import numpy as np | |
import PIL | |
import requests | |
from tqdm import tqdm | |
from retry import retry | |
from typing import * | |
import io |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from labelbox import Client, DataRow | |
ds = Client().get_dataset('ckije80bs2l8m0yag5qc03doo') | |
drs = ds.data_rows() | |
dr = next(iter(drs)) # only one datarow in this dataset for now | |
dr.metadata() # this is a PaginatedCollection. To get the first element | |
next(iter(dr.metadata())) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kfp | |
c = kfp.Client(host="...") | |
xs = c.experiments.list_experiment(page_size=200).experiments | |
for x in xs: | |
if (x.name.startswith('firstgraphidpipe') or x.name.startswith('secondgraphidpipe')) and not x.name.endswith('-us'): | |
print(x.id+x.name) | |
c.delete_experiment(x.id) | |
OlderNewer