Questions tagged [transformation]
Generally means modifying the shape or appearance of objects while preserving the content. Common applications are transformations of vectors, quaternions, matrices or XML files.
3,433
questions
1
vote
0
answers
18
views
Transforming a polygon list after the cropping and resizing of an image
I hope you can help me with the following transformation I am trying to do in Python. Let me know if I can provide further info to improve my post.
I am doing the following steps:
Find the bounding ...
-2
votes
0
answers
20
views
How would I apply per-frame translation for animation?
Working on implementing animation and im slightly confused about something. I have a position offset which is an offset from the parent joint, together they form a bone. I have a per-frame translaton ...
0
votes
1
answer
40
views
need help parsing XML that contains namespace into ABAP internal table
I am trying to convert this XML file into ABAP internal table where the root tag <CBISDDStsRptLogMsg.... \> contains namespace and my Simple Transformation is dumping an exception without much ...
0
votes
0
answers
34
views
Nifi : JSON to .csv file transformation
I have a following input in Nifi Jolt Specification processor, that i got from an API :
{
"BAG": {
"Ett": "WWWLOG",
"refD": "DVJOB1415738",
...
0
votes
1
answer
59
views
How do I apply for-each-group and return 1 row per Code listed if within the a specified date range?
I am trying to create a couple nested loops in my code to group by Time_Data/Time_Off/Code. I want to display all Time Off Codes that fall within consecutive days on 1 line in the output. Any ...
0
votes
1
answer
22
views
Don't get a Map correctly transformed in Dart
Should be a basic method, but even after checking many Q&As and experimenting for quite a while, I don't get it working.
I want to generate a Map<String, bool> from a list of objects that ...
1
vote
1
answer
28
views
Jolt spec to combine different attributes
I'm trying to move the key to the value of another JSON key. The destination value is an array, and I'm attempting to add an element to that array.
Case 1: Input json object:
{
"Name": {
...
0
votes
0
answers
44
views
Transforming and merging event time data in R
Let's say I have a data.frame of some event time data as such
> example_data
id start.f stop.f status.f start.r1 stop.r1 status.r1 start.r2 stop.r2 status.r2
1 1 0 10.0 1 0.00 ...
1
vote
2
answers
32
views
Jolt - inserting new a field in array list
I'm having issues with Jolt transformation, I need to extract values/fields from array list and add one custom field either from array I'm targeting to extract or outer list. But let me try to explain ...
0
votes
1
answer
52
views
How to create TextField with spannable text in Jetpack compose
How to create TextField with spannable text where every word is wrapped in separate spannable.
Do I need to use VisualTransformation?
Must be something like that:
1
vote
1
answer
33
views
Jolt converts comma separated array to array
I'm new to JOLT.
This is the transformation I'm trying to achieve:
The input json is an object that is comma separated. The input json looks like this:
{
"Ids": {
"IND": {
...
0
votes
0
answers
71
views
How does Kotlin coroutine Flow .map function know how to apply transformation
I have this "state" object:
data class StudentState(
val students: List<Student> = emptyList()
)
In my ViewModel I have val called studentState which I am instantiating this way:
...
0
votes
0
answers
13
views
Transforming One Arc Into Another Using HTML Canvas
I need to transform an arc into another larger arc that passes through the same start and end points of the original arc. To do this the arc center and arc radius of the original arc need to be ...
0
votes
0
answers
17
views
PyTorch's grid_sample vs landmark transformation
I want to do a simple rotation transformation of the image. I go through all the steps with affine_grid and grid_sample. It properly transforms the image while centering the rotation at the center of ...
2
votes
3
answers
61
views
Iterating over Rows in many CSV Files and modifying them in Pandas
I am writing a script that is supposed to read a lot of csv files and transform data in a specific column, when the condition is being met.
To do this I have a for-loop that looks like this:
for index,...
1
vote
1
answer
85
views
Is there a function in the Kotlin stlib for transforming a List<Pair<A, B>> into a Pair<List<A>, List<B>>
I currently have code with similar mechanics to the following
fun main() {
val listOfLists = listOf(listOf("1234", "1", "42"), listOf("hello", "there&...
0
votes
0
answers
24
views
Transformation matrix gone wrong
I am trying to apply a affine transform to a point using translation , rotation and scaling.This is my code:
namespace PictureProcessor
{
public class PointTranslator
{
public Point p;
...
0
votes
1
answer
25
views
How to transform nexted object with nested array in jolt transformation
Input :
[
{
"MAIN": {
"SCALE": "N",
"TAX": "INV",
"DETAIL_GROUP": [
{
"ORDER_GROUP": &...
0
votes
0
answers
91
views
Transform Rows into Columns Table Data (Infinity Plugin)
I'm trying to transform data using the Infinity plugin as the main datasource in Grafana version 9.1.7.
API endpoint used:
https://9498199887151372.hostedstatus.com/1.0/status/5d849b1c02e65b3ec45369d4
...
0
votes
0
answers
39
views
Transforming monthly panel data into quarterly based on multiple criteria [duplicate]
I have a panel dataset with countries, date and two columns with other data (inflation rate and payments from a specific program). What I want is to aggregate the data from monthly into quarterly data ...
1
vote
1
answer
41
views
Jolt JSON transformation is returning empty or null values except for the default values
I'm using Camel Jolt to transform an input JSON to other format output JSON, and my Jolt JSON transformation is returning nothing (either empty or null) value except for the default values. It doesn't ...
0
votes
0
answers
25
views
Is there any way to recursively traverse through JSON to find some property and transform it
In following json name property can be at any level in json tree hierarchy, I want to get that property anywhere I found it, first occurrence having valid value.
Note: JSON can be of any level and ...
0
votes
0
answers
46
views
getting a transformation matrix from a specific point of view of a 3d plot, matplotlib vs pytorch3d
I've been working on a problem where numerous 2d projections of a 3d plot are created based on spherical coordinates around the 3d plot. I have been using matplotlib to successfully generate these 2d ...
2
votes
3
answers
109
views
How to rename XML element names, decided at run-time?
I've tried a bit myself, search a lot, but could not find a solution how to do that efficiently in Perl (I guess the solution would be somewhat similar to https://stackoverflow.com/a/22119220/6607497):...
0
votes
0
answers
54
views
How to change the base reference year in R
I have a very large dataframe containing monthly price indices of 400 items, across 20 years. For my analysis, I need to chain the indices across years to provide a consistent base reference period. ...
0
votes
2
answers
44
views
Jolt alternative for head to find first non empty non null string in json array
Is there any alternative head to transform and get first non empty or non null value from JSON array. similar to head(/part/subline/sublineGrouop/sublineGroupTP/detailsGP/dtlLine/details/code)
should ...
0
votes
1
answer
23
views
Unable to add colors inside the same json file using style-dictionary
I want to generate scss vars from my design token using style-dictionarys npm package (not the cli). At the moment i have one token that holds the entire design-system and i cannot be sure that i will ...
0
votes
1
answer
37
views
Jolt conditional mapping of array of elements
Input.json
{
"accountType": "ADMIN",
"id": "aaab-ccc-ddd-eeeAAA",
"relationship": "DIRECT",
"accountInfo": {
"...
0
votes
0
answers
43
views
R - Importing a CSV file and Transforming it to column-based format
I am currently working on a script that performs statistical analysis on a certain type of data which involves treatment, subject, date, body mass, and a few other, mostly nonrelevant measures.
As of ...
0
votes
1
answer
112
views
Find GPS coordinates of a local point using 2 reference points
Given 2 reference points with known local coordinates and GPS (Decimal Degrees lat,lon) how can you calculate the GPS coordinates of any local point?
Note that I am interested in small areas far from ...
0
votes
0
answers
20
views
unable to use macros in dbt models
--macro
{% macro get_payment_methods3(p_org_id1) %}
{% set query %}
SELECT * FROM transaction_test
{% endset %}
{% do run_query(query) %}
{% endmacro %}
this is my macro and i am not able to use it in ...
-1
votes
2
answers
72
views
Backslash automatically getting removed from the json while reading and need to preseve the backslash - Azure Data Factory
Backslash from the json is getting removed after the file is processed by copy activity
I have json input file which contains the below object
INPUT
{
"Name": "xyz",
"...
0
votes
1
answer
16
views
transform input json in two different collections shares same property from input json
Sample input JSON
{
"name": "XYZ",
"lastName": "PQR",
"address": "abc, mnop, 534291"
}
Expected output JSON with shared properties
{
...
2
votes
1
answer
95
views
Panning canvas after transformations in incorrect direction
I created a small HTML5 image viewer using HTML5 canvas and only Vanilla Javascript.
Everything works quite well, except for one thing, and that's panning after a transformation like rotate, flip and ...
0
votes
0
answers
25
views
How to remove an empty line left behind by an <xsl: /> tag from transformed file from .xsl file
I am using an .xsl file to generate a .vb file and am using multiple if, choose, etc xsl tags in it.
But what is happening is the xsl tags are leaving behind blank lines after transformation in the ...
0
votes
1
answer
67
views
Is it possible to achieve negative X-Skewing without cropping in Python PIL?
Im working on to transform images using X-skew using the following code
from PIL import Image
def x_skew_image(input_path, output_path, skew_factor):
# Open the input image
input_image = ...
2
votes
1
answer
36
views
Jolt Conditional Flag Based on JSON Fields
I have a JSON input as below
Scenario 1:
{
"accountType": "Admin",
"accountInformation": {
"user": "internal",
"source": "...
0
votes
0
answers
76
views
How to rewrite a complicated expression in terms of several defined functions in Mathematica
I have a long expression in mathematica that contains various unevaluated definite integrals and numerous parameters. I also have other functions whose definitions contain these integrals, and I know ...
0
votes
0
answers
17
views
Three way model transformation guidelines required
Good Day
I have a scenario where I want to implement three way transformations. I have three different models i.e. UML, uppaal (xml) and verilog (code). Now I want to create real time model ...
0
votes
0
answers
88
views
Grafana: Configure from query: Threshold: All Values - seems not to work
I found some really helpful advice in How to plot horizontal line in Timeseries in Grafana and now I would like to apply this to my Timeseries Chart with multiple thresholds.
My data source provides ...
0
votes
0
answers
29
views
Jolt json transformation to filter last 5 Hrs data
I am trying to filter the scenario that happened in last 5 hrs form the list of scenarios in spring boot application using jolt(jolt -core) json transfomer
Input Json:
[{
"scenarioId":120,
&...
1
vote
0
answers
23
views
ScaledTranslation and X/Y inconsistency in pdf
Context
I'm working on a python function that plots data (a plt.plot wrapper) with arrow and name at the end of each axe, and an option to show the scale at given coordinates (sclorg in the example ...
0
votes
1
answer
72
views
Extracting entity geometry information in world coordinates
I'm looping through all entities in the modelspace and generating a representative set of points for each entity type and storing them in a json file. Some entities like INSERT entities have an ...
0
votes
1
answer
38
views
Jolt spec for filtering JSON records in an array which has same value for two different fields in same object
Input JSON :
[
{
"id": "1",
"name": "a",
"token": "x"
},
{
"id": "2",
"name": "...
0
votes
0
answers
44
views
Shear Transformation in terms of other transformations (Computer Graphics)
I want to express the Shear transformation in terms of other transformations (Rotation and Scaling transformation).
I am looking for Proof, to show the Shear transformation in terms of rotation and ...
0
votes
0
answers
34
views
asp.net c# webpage transforming url redirecting issue
i am running asp.net c# website and i have tags page. i transform tag page url in global.asax and that new url is working but when i click on page 2 button then url redirecting.
here is new url
http://...
0
votes
1
answer
45
views
How do I transform elements in comment?
Is it possible to keep elements in a comment when applying an XSLT to a XML-file? I want til transform:
<div>
<!-- <rs type=”bible”>Mos 1</rs> --><note>Hello World</...
1
vote
1
answer
19
views
joint_tests omits covariate transformed with asin(sqrt()) via make.tran()
Relating to joint_tests doesn't recognize asin.sqrt transformation via make.tran() I have emmeans 1.8.8
set.seed(83)
library(emmeans)
dummy <- expand.grid(
covar = runif(72, min = 0, max = 1)...
0
votes
1
answer
49
views
[Jolt]remove array element based on a dynamic value provided in key/value format
I am trying to remove an array element if the element is value of a fixed key.
Input:
{
"components": {
"schemas": {
"element1": {
"type": &...
0
votes
1
answer
84
views
Rotating and scaling an image to match reference points on a map in Leaflet
I'm implementing a feature where users can overlay an image onto a map. The idea is for users to select two reference points on the map and two on the image (but using map coordinates i receive). ...