question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: How can I match the raw data (got from the raw object observations) with the feature layers?

See original GitHub issue

Hi, How can I match the raw data (got from the raw object observations) with the feature layers? For example, How can I convert the world_space_pos (x: 26.001220703125 y: 26.275634765625) to the feature_layer_pos (x: 0-84, y: 0-84)? Following is an example of the raw data i got.

[
  {
    display_type: Visible
    alliance: Self
    tag: 4303093761
    unit_type: 48
    owner: 1
    pos {
      x: 26.001220703125
      y: 26.275634765625
      z: 7.99609375
    }
    facing: 4.66746711730957
    radius: 0.375
    build_progress: 1.0
    cloak: NotCloaked
    is_selected: true
    is_on_screen: true
    is_blip: false
    health: 45.0
    health_max: 45.0
    shield: 0.0
    energy: 0.0
    is_flying: false
    is_burrowed: false
    orders {
      ability_id: 16
      target_world_space_pos {
        x: 25.428466796875
        y: 20.0
      }
    }
    assigned_harvesters: 0
    ideal_harvesters: 0
    weapon_cooldown: 0.0
    shield_max: 0.0
    energy_max: 0.0
  },
...,
]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
EveLIn3commented, Jan 17, 2018

@tjuHaoXiaotian Hi, may I ask how did you extract those raw information? Can we do that using solely pysc2? Thx

0reactions
sflc6commented, Jul 11, 2020

Sure, pysc2 can be used for that as a library. The environment (sc2_env.SC2Env) doesn’t expose the raw information, and likely never will beyond what’s in #141.

Could you say how to use pysc2 to extract the fine-grained raw information above? Right now, I’m only able to see numbers rounded to integers within the sc2_env.SC2Env object.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Turn Raw Data into a Feature Layer - Esri
This blog post covers multiple ways to turn a flat file of raw data into a feature layer. Feature layers allow you to...
Read more >
Displaying a subset of features in a layer—Help
If the Perform the attribute search first option is selected, all attributes that match your query from the entire dataset will be selected...
Read more >
What is raw data and how does it work? - TechTarget
Raw data, in data management, is the collection of information as gathered by the source before it has been further processed, cleaned or...
Read more >
Chapter 1. Data Visualization with ggplot2 - O'Reilly
This chapter will teach you how to visualize your data using ggplot2. R has several systems for making graphs, but ggplot2 is one...
Read more >
Exporting Response Data - Qualtrics
Each row of the file is a different respondent, and each column is a question of the survey they answered, survey metadata (e.g....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found