The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset access » How to open up Geographic Dataset for Beginners. (Downloaded GQIS, how to proceed?)
Re: How to open up Geographic Dataset for Beginners. [message #29661 is a reply to message #29230] Thu, 18 July 2024 02:12 Go to previous message
marcmarcos is currently offline  marcmarcos
Messages: 4
Registered: July 2024
Member
ev231 wrote on Mon, 13 May 2024 13:04
Hi! I am working on a computer vision project training on households with electricity. I have inquiries on how to read the GPS Data. When we only select "Geographic Data" in the "File Data Type" section, we receive a few files of types we have never seen before (.DAT, .STX, etc). How can we read in the GPS data?
When we select both "Geographic Data" and "DHS" in the "File Data Type" section, the files mentioned above are not found. When we only download DHS data and select "Stata" type to download, we can open the .DTA file using Pandas and Python. However, if we download them with "Flat" type, we don't know how to read in the .DAT file.

Basically our end goal is to have a dataset that has a few indicators (specifically electricity) and the geographic coordinates as features (columns) and have each row a datapoint.

Would greatly appreciate guidance on how to open up these datasets!
Hi,

To read GPS data from .DAT and .STX files, you can use specialized tools or libraries like GDAL (Geospatial Data Abstraction Library),. For .DAT files, try using GDAL's `ogr2ogr` utility to convert them to a more accessible format like CSV or GeoJSON. You can then use Python libraries such as Pandas and Geopandas to read and manipulate the data. For integrating this with your DHS data, ensure you have common identifiers or coordinates to merge the datasets.:

Good luck with your project!
 
Read Message
Read Message
Read Message
Previous Topic: Information on the different variable
Next Topic: Expert Advice Needed on Analyzing DHS Data with SPSS
Goto Forum:
  


Current Time: Thu Nov 28 05:12:14 Coordinated Universal Time 2024