I have downloaded spatial data from the USGS website that comes in a .dat format, which I can't read in textedit either - it just says "../ofr041189it03/vat.adf". I am familiar with STATA, ArcGIS, and GeoDA, so I was hoping to convert it into a type that can be read by any of these programs (preferably STATA), but don't know how. Any ideas?
convert .dat files to either .dta, .shp, .bdf, or .csv
Open a New Blank Excel file
In Excel
- Go to Data tab
- Select From Text
- Select the .dat file which you want to open(Note: Select "All files" in dropdown box)
- Click Import
- Check Delimited and click next
- Deselect the tab and select Other and give "|"(Tab symbol) then click next
- Click finish and Ok
Still relevant after all these years. I'd add that steps 1-5 are as advertised, but I did't have to unselect 'tab' as in step 6. Imported just fine. For my situation, I was saving it as a .csv file for a mysql table import via mysql workbench. For the MySQL Workbench import to work for me, after it was imported in Excel, I had to "Save As.." and select MS-DOS Comma Separated.." as the file type before it would work for my import for the database. –
Jordanjordana
© 2022 - 2024 — McMap. All rights reserved.