A basin network can be seen as a graph, specifically as a directed acyclic tree . In GEOframe , the topology of the basins, which describes the direction of the flow and the interconnections of the basins, is usually saved in a text file with two columns: the first column represents the origin basin , and the second column represents the target basin . The 0 is used to mark the outlet of the network. For example: 8 7 7 4 6 5 5 4 4 3 3 2 2 1 1 0 The 0 mark the outlet. In my work, I've encountered the need to manipulate basin networks so verifying the topological correctness of these new graphs is crucial. To accomplish this task, I chose the NetworkX Python library. This library facilitates a variety of tasks—such as cutting the network, iterating through the network, and comparing two or more networks within the same watershed—thanks to its class structure, specifically the Graph class. As a result, I've developed some functions for basic operations on the network and shar
The Beginning It's been a long time since I first heard about Julia . Despite my interest, I never got around to actually studying it. That changed recently when I attended a short course on Julia at the last EGU General Assembly . Inspired by what I learned, I returned home determined to dive into programming with Julia. First Steps I started with a basic book on Julia, aiming to build a solid foundation. The simplicity and power of the language fascinated me, and soon, I felt ready to take a more hands-on approach. My Project: A Julia Package As I gained confidence, I began writing my own package. This project is still a work in progress on github. The package includes: Reading Time Series: It can read a time series from a CSV file, handling special formatting and metadata. Goodness of Fit Functions. Graph Operations on river networks.(in progres) Geometry/Geography Operations. Focus on Geography In this blog post, I want to delve into the last point —