Questions tagged [libgee]

Libgee is a utility library providing GObject-based interfaces and classes for commonly used data structures. Do **NOT** use this tag for referring to Google Earth Engine or generalized estimating equations.

Overview

Libgee is an utility library providing GObject-based interfaces and classes for commonly used data structures.

Libgee provides the following interfaces:

  • Travsersable
  • Iterable
  • Collection
  • List
  • BidirList
  • Set
  • SortedSet
  • BidirSortedSet
  • MultiSet
  • Queue
  • Deque
  • Map
  • SortedMap
  • BidirSortedMap
  • Iterator
  • BidirIterator
  • BidirListIterator
  • ListIterator
  • BidirListIterator
  • MultiMap
  • Future

The ArrayList, ArrayQueue ConcurrentLinkedList, ConcurrentSet, HashSet, HashMap, HashMultiSet, HashMultiMap, LinkedList, PriorityQueue, Promise, TreeSet, TreeMap, TreeMultiSet, and TreeMultiMap classes provide a reasonable sample implementation of those interfaces. In addition, a set of abstract classes are provided to ease the implementation of new collections.

Around that, the API provide means to retrieve read-only views, efficient sort algorithms, simple, bi-directional or index-based mutable iterators depending on the collection type.

Libgee is written in Vala and can be used like any GObject-based C library. It's planned to provide bindings for further languages.

Homepage


Tag usage

Do NOT use tag for referring to Google Earth Engine. Use the tag instead.
Do NOT use tag for referring to Generalized Estimating Equations. Use alternative tags, instead.
If the question is about Generalized Estimating Equations, consider whether it is more suitable on Stack Overflow SE or Cross Validated SE, the Stack Exchange site for statistics, machine learning and data analysis.

54 questions
6
votes
2 answers

Gee HashMap containing methods as values

I'm trying to fill a Libgee HashMap where each entry has a string as key, and a function as value. Is this possible? I want this sort of thing: var keybindings = new Gee.HashMap (); keybindings.set ("h", this.show_help…
Riazm
  • 365
  • 2
  • 4
  • 10
3
votes
2 answers

How to preserve insertion order in HashMap in Vala

I'm using a HashMap. When I iterate over the map, the data is returned in (often the same) random order. But the data was inserted in a specific order, and I need to preserve the insertion order. How can I do this in Vala? In Java there is…
Wayne
  • 914
  • 2
  • 13
  • 25
2
votes
1 answer

Trying to make a list: The name `Gee' does not exist

I'm trying to make a list in Genie and it doesn't seem to work. Compiling the code: [indent=2] init var l = new list of string produces these errors: someone@someone-UBook:~/Documents$ valac helloworld.gs helloworld.gs:2.10-2.24: error: The name…
weberc2
  • 7,423
  • 4
  • 41
  • 57
2
votes
2 answers

How to combine the images in Google Earth Engine?

So from the Sentinel 5P image collection I created 3 different images for 3 years (mean of - 2019, 2020 and 2021). Then I clipped those 3 images using a Geometry and then again 3 images were made. Now I want to combine these 3 images into a single…
2
votes
0 answers

Why the variable can't work in the loop of GEE?

When I want to use "for" in GEE,I found out that the loop cannot be performed.The code is below: var list=ee.List([1,2]); var len = ee.Number(list.length()); for (var i =0;i
ilnaug
  • 19
  • 3
2
votes
1 answer

valac says undef ref but libgee exists

When I try to compile a vala or genie program needing libgee, I get undefined references to gee_array_list_new, etc. I have libgee installed from source; its .so file is right there in plain sight in /usr/local/lib, its other files as they should…
DarenW
  • 16,549
  • 7
  • 63
  • 102
1
vote
1 answer

How do I loop through a list of formulas in GEE model in R?

I am trying to run a set of GEE models. However, each model takes about an hour to an hour and a half to run. This wouldnt normally be an issue, but given the amount of models i am trying to run, I am currently trying to implement parallel…
1
vote
1 answer

Interpreting Variable Importance from Random Forest in GEE

This is more of a theoretical/function question. I'm doing a land cover classification in Google Earth Engine using random forest and need to report Variable Importance. Does anyone know how to interpret Variable Importance from random forest…
frib
  • 13
  • 3
1
vote
0 answers

In GEE, how do I map over a collection of Landsat images using a specific range of dates?

I want to map over a collection of Landsat images by a specific date range (filterdate) and compute NDVI (or any other function). Specifically, I want to increment the "filterdate" by year, advancing from 2013 - 2022 (keeping day and month steady),…
1
vote
0 answers

GEE Bulk download modis time series clipped by given ROI

I need to bulk download the modis LST time-series clipped by the given ROI in my local folder, this code running successfully, but when I run exported images in my tasks, there is an error didn't download images. error: Can't transform…
1
vote
0 answers

why do we use ee.number().pow().int in Cloud masking using Google earth engine

I didn't understand why we use raise number 2 with power 3 for accessing cloud bit mask and what exactly means setting flag to 0 while performing bitwiseAnd operation var maskL8SR = function(image) { // Bits 3 and 5 are cloud shadow and cloud,…
Sowjanya
  • 11
  • 3
1
vote
0 answers

Google earth engine export to Drive not working

var roi = geometry; Map.addLayer (roi);`enter code here` var start = ee.Date ('2013-12-01') var finish = ee.Date('2013-12-30'); var dataset = ee.ImageCollection('LANDSAT/LC08/C02/T1_L2').filterDate('2013-12-01', '2013-12-30'); var Lagos =…
Ad Ben
  • 11
  • 1
1
vote
1 answer

How to compare objects in Vala?

I am using a Gee.ArrayList with an own class for content. I want to use the "contains" method of the ArrayList, but I really don't know how to set up an equals-method in my class, so ArrayList uses it to find out if the object is in the ArrayList or…
Organized
  • 352
  • 3
  • 9
1
vote
1 answer

Does foreach work on Iterator?

using Gee; int main (string[] args) { ArrayList list = new ArrayList(); list.add ("a"); list.add ("b"); list.add ("c"); foreach (var s in list.filter (s => s > "a")) stdout.printf…
Jens Mühlenhoff
  • 14,565
  • 6
  • 56
  • 113
0
votes
0 answers

How to plot histogram in GEE based on object properties

I am new to GEE but I managed to create this dictionary object using reduceRegion on Google Earth Engine. I now have days of year (100, 101, 102, etc) as properties and the associated value being the pixel count for that date. Object (1 property) …
1
2 3 4