Categories
Mastering Development

Connection Algorithm with Constraints

I have block categories A, B, C, … and each category has blocks. all blocks in each category have ports p0, p1, p2, … and have constraints to connect as: A: a0, a1, a2, … p0: B, C p1: B p2: B, C p3: C B: b0, b1, b2, … p0: A C: c0, c1, […]

Categories
Mastering Development

Converting a complicated date function to

I am trying to convert a series of date functions from excel into a single Actian-PSQL function. The excel is as follows; A1=Today() B1=DATE(YEAR($A$1),MONTH($A$1),DAY($A$1) + 2-WEEKDAY($A$1)) [This Monday] B2=DATE(YEAR($A$1),MONTH($A$1),DAY($A$1) +9-WEEKDAY($A$1)) [Next Monday] B3=IF(A1>B1,B2,B1) The goal of these functions is to determine the date of the next coming Monday, and query the database for all items […]

Categories
Ask Geographic Information System (GIS)

How to add values of a mask image as one of the classification classes

I have performed supervised classification on GEE in the Russian Lena Delta to map different vegetation classes using sentinel 2 images (BUT i had to mask out the water and sandbank pixels) to improve the classification results. However, I would like now (after the classification) to include the sand and water masks as additional classes […]

Categories
Database Development

Sum Scores in Tree Structure Based on Rollup Type

I am trying to calculate totals for each node of a tree structure, Calculating the total depends on roll up type I have Structure like below if node type is current list = Look to current node, no need I go down in the tree if node type is child = ignore the current node […]

Categories
Mastering Development

how to reduce the noise of an image on python?

This is my code so far. I am totally lost and not sure what to do. its python language. I cant use cv2 or matpolibic. I am only allowed to use cimpl and numpy from Cimpl import* import numpy as np def reduce_noise (image: Image) -> Image: new_image = copy(image) for pixel in image: X, […]

Categories
Ask Geographic Information System (GIS)

Export filtered image (based on date) from Google Earth Engine for NDVI

I am trying to export an NDVI image from Landsat5 to Drive but it seems like the date filter is not being applied in the exported image. How do I resolve this? Code below. //Var geometry is a shapefile of area var image = ee.Image( l8.filterBounds(geometry) .filterDate(‘2012-06-15’, ‘2012-07-15’) ); var ndvi = image.normalizedDifference([‘B5’, ‘B4’]).rename(‘NDVI’); var […]

Categories
Ask Electrical Engineering Engineering

How can I make Verilog HDL ModelSim test bench for a simple ripple adder circuit output an addition table instead of a long list of every calculation?

I’ve completed my assignment and I’d like to make the output look something like this, with one table for sum output and one table for carry output: Sum: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 __ __ __ __ __ __ __ __ __ __ __ __ […]

Categories
Mastering Development

How to change CSV values into multiple limited columns in Postgres?

I have a table with a single column in a Postgres 13.1 database. It consists of many rows with comma-separated values – around 20 elements currently. I want to split the data into multiple columns. But I have only a limited number of columns say 5 and more than 5 CSV values in a single […]

Categories
Ask Geographic Information System (GIS)

Image Segmentation and Classification with Google Earth Engine

I’m new to using Google Earth Engine and I obtained the following code from Medium and tried to update it with the AOI and training data for my specific area. I am trying to classify landcover for an AOI and then export this to csv using CORINE landuse categories The issue seems to be with […]

Categories
Ask Geographic Information System (GIS)

Image Segmentation and Classification with Google Earth Engine

I’m new to using Google Earth Engine and I obtained the following code from Medium and tried to update it with the AOI and training data for my specific area. I am trying to classify landcover for an AOI and then export this to csv using CORINE landuse categories The issue seems to be with […]