How to read a file with '.sww' format? - python-2.7

I am working with open source package written in python.
Its output is a file with .sww format.
I am unable to find a software which can read this.
Please kindly reply if you know.
Thank you
this is picture of the file icon

It's time to answer my own question.
SWW file format is a NetCDF format for storing model output with mesh information f(t,x,y).
One such use of SWW file extension is
In ANUGA, a hydrodynamic modelling. It's used for storing the model output and therefore pertains to a set of points and a set of times at which a model is evaluated.
The contents of an SWW file may be viewed using the anuga viewer anuga_viewer, which creates an on-screen visualisation.

Related

RE: How Would I Change a .txt File to a .msp or .gpx for Google Earth-GPS Usage?

I have a file called TacoII.txt. It is a kml file in .txt format. I wanted to add this file to Google Earth to track items I attach my BeagleBone Black and a GPS module (SIM28). I downloaded GPSBabel and tried to change file types. I was successful at changing the file type once with a specific routine.
With this routine, the .mps file was not able to be displayed in Google Earth.
If anyone is coming across difficulties with this notion, please reply. I would like to first track me and the BBB w/ GPS on Google Earth.
Seth
P.S. If you need any other info, do not hesitate to ask.
I tried GPSbabel and failed at using it. I then researched their site more and looked around. After looking around I found that the skeleton file, this .py file that was produced by Mr. Whorton, was correct and his KML file, the file I needed, was incorrect for Google Earth.
I changed the KML file to suit the needs of Google Earth:
<kml xmlns="http://www.earth.google.com/kml/2.2">
This is the second line that was needed for the Google Earth KML file. Oh and I had to use a "shady" conversion tool online that changed my file to .gpx format from .txt.
Seth
P.S. Please let me know if anyone else needs help with this specific issue.

Create arff training and test files for weka

Good day.
An apology for my English but it's not my native language so they know apologize for any errors.
I have a text file with the data processing which want to get a .arff file, which is the file type using weka.
I do not want to generate a single file. I get 2 files, one for training the model (training) and another to test the model (test).
This is done directly weka eh applying a filter stringtowordtokenizer but the problem is that when you use the second file to test a mistake because it is not fair test a model that has words that should not be.
If someone helps me I would appreciate.
Thank you and best regards.

Best way to parse a complex log file?

I need to parse a log file that consist in many screenshot of real-time OS stdout.
In particular, every section of my log_file.txt is a text version of what appear on screen. In this machine there's not monitor, so the stdout is written on a downloadable log_file.txt.
The aim would be to create a .csv of this file for data mining purpose but I'm still wondering what could be the best method to compute this file.
I would the first csv file line with the description (string) of the value and from the second line I would the respective values (int).
I was thinking about a parser generator (JavaCC, ANTLR, etc..) but before starting with them I would get some opinions.
Thank you.
P.S.
I put a short version of my log at the following link: pastebin.com/r9t3PEgb

How to Convert .gis(geographic information system) file to .img format using C++?

I want convert .gis(geographic information system) file into .img format. Is this possible in C++? Can any one help me how to do this in C++????
Thanks in advance
You would have to read the .gis file, decipher what it means and redraw that in a manner to your liking.
Check GIS file formats and check how they are stored.
Read that into your program.
Then use a graphics API (SDL/Allegro/OpenGL) and draw the verticies/lines/polygons.

C++ Importing and Renaming/Resaving an Image

Greetings all,
I am currently a rising Sophomore (CS major), and this summer, I'm trying to teach myself C++ (my school codes mainly in Java).
I have read many guides on C++ and gotten to the part with ofstream, saving and editing .txt files.
Now, I am interested in simply importing an image (jpeg, bitmap, not really important) and renaming the aforementioned image.
I have googled, asked around but to no avail.
Is this process possible without the download of external libraries (I dled CImg)?
Any hints or tips on how to expedite my goal would be much appreciated
Renaming an image is typically about the same as renaming any other file.
If you want to do more than that, you can also change the data in the Title field of the IPTC metadata. This does not require JPEG decoding, or anything like that -- you need to know the file format well enough to be able to find the IPTC metadata, and study the IPTC format well enough to find the Title field, but that's about all. Exactly how you'll get to the IPTC metadata will vary -- navigating a TIFF (for one example) takes a fair amount of code all by itself.
When you say "renaming the aforementioned image," do you mean changing metadata in the image file, or just changing the file name? If you are referring to metadata, then you need to either understand the file format or use a library that understands the file format. It's going to be different for each type of image file. If you basically just want to copy a file, you can either stream the contents from one file stream to another, or use a file system API.
std::ifstream infs("input.txt", std::ios::binary);
std::ofstream outfs("output.txt", std::ios::binary);
outfs << insfs.rdbuf();
An example of a file system API is CopyFile on Win32.
It's possible without libraries - you just need the image specs and 'C', the question is why?
Targa or bmp are probably the easiest, it's just a header and the image data as a binary block of values.
Gif, jpeg and png are more complex - the data is compressed