OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

make picture/image/pixel image of a xml-file

  • Thread starter Thread starter kennedi white
  • Start date Start date
K

kennedi white

Guest
I am trying to write a script to convert my XML files of direct image exoplanet data into/back into images for my AI classifier, but I having some trouble with converting the XML's into images. An example of the input is:

Code:
<data><row>
    <name>WISEA J083011.95+283716.0</name>
    <binaryflag>0</binaryflag>
    <mass>8.5</mass>
    <radius />
    <period />
    <semimajoraxis />
    <eccentricity />
    <periastron />
    <longitude />
    <ascendingnode />
    <inclination />
    <temperature>350.0</temperature>
    <age />
    <discoverymethod>imaging</discoverymethod>
    <discoveryyear>2020.0</discoveryyear>
    <lastupdate>21/10/19</lastupdate>
    <system_rightascension>08 30 11.95</system_rightascension>
    <system_declination>+28 37 16.00</system_declination>
    <system_distance>11.1</system_distance>
    <hoststar_mass />
    <hoststar_radius />
    <hoststar_metallicity />
    <hoststar_temperature />
    <hoststar_age />
    <list>Confirmed planets</list>
  </row>
  </data>

When I tried the method I knew, it made an image but it was an image of the input as a table. Is there anyway for it to be transformed into at least a pixel image of the direct imaged exoplanets? What rows are important to translate that information?
<p>I am trying to write a script to convert my XML files of direct image exoplanet data into/back into images for my AI classifier, but I having some trouble with converting the XML's into images. An example of the input is:</p>
<pre><code><data><row>
<name>WISEA J083011.95+283716.0</name>
<binaryflag>0</binaryflag>
<mass>8.5</mass>
<radius />
<period />
<semimajoraxis />
<eccentricity />
<periastron />
<longitude />
<ascendingnode />
<inclination />
<temperature>350.0</temperature>
<age />
<discoverymethod>imaging</discoverymethod>
<discoveryyear>2020.0</discoveryyear>
<lastupdate>21/10/19</lastupdate>
<system_rightascension>08 30 11.95</system_rightascension>
<system_declination>+28 37 16.00</system_declination>
<system_distance>11.1</system_distance>
<hoststar_mass />
<hoststar_radius />
<hoststar_metallicity />
<hoststar_temperature />
<hoststar_age />
<list>Confirmed planets</list>
</row>
</data>
</code></pre>
<p>When I tried the method I knew, it made an image but it was an image of the input as a table. Is there anyway for it to be transformed into at least a pixel image of the direct imaged exoplanets? What rows are important to translate that information?</p>
 
Top