Category: NZTekonverse -> Linux
-
Python Scripting [3C]: Layer Fractional Segments for NZ Rail Maps 3
Last time we had a look at how to read data from our files and store it in a list. This time we are going to get that data and perform the calculations we need on it. First thing is to convert the numbers read out as strings to floats. The numbers we need are…
-
Python Scripting [3B]: Layer Fractional Segments for NZ Rail Maps 2
Yesterday we looked at how to collect command line parameters easily in a Python script. Today we need to turn the parameters into filenames and then read their contents to memory. First thing is to get the arguments into variables we can refer to and manipulate. This is pretty simple as the arguments are stored…
-
Python Scripting [3A]: Layer Fractional Segments for NZ Rail Maps 1
This is a technical description of the scripting project which is for dividing a large layer into segments for NZ Rail Maps. As discussed in some previous posts I am taking for example a 0.4 metre resolution tile and scaling it to 0.1 metre resolution making it 16 times the area of the original. Then…
-
Python Scripting: Planned Scripting Projects
I’ve written a few posts about different scripts I am planning to look at. At the moment the ones that are most important are: A script to do segmented layer fractions for NZ Rail Maps. I am doing this very slowly and laboriously with a spreadsheet and keep making mistakes and having to paste things…
-
General update 2019-02-15
Last week I had some issues with mainpc resulting in it running out of /tmp space which of course is caused or impacted by running out of space on the install volume and caused a number of user files in /home I was working on to become corrupted. I haven’t looked at the bigger question…