Python code to post process ANUGA sww files for Australian Rainfall and Runoff 2019 data
Petar Milevski and Ole Nielsen 2021
Python code to implement the Australian Rainfall and Runoff algorithms
License: Apache License 2.0
Currently, the data directory is specified in the config file.
That makes it hard to reproduce runs on different setups.
It should be possible to specify it on the command line but maybe keep it in there as a default.
Currently, the script 1_sww2maxTIF.py reruns from scratch every time. This is time consuming.
It would be better to have it compute only those files that need to and leave existing results be.
If a rerun is needed, the procedure should be to delete all output files (see Issue #2) and then rerun.
Currently post processing data is stored with the raw input data making it difficult to clean out and rerun.
Suggest making a new director for post processing data which can easily be deleted without affecting the raw input data.
('data_directory', '/home/petar/media/petar/TOSHIBA EXT/PyARR-data/1%AEP/')
('proc_directory', '/home/petar/media/petar/TOSHIBA
EXT/PyARR-postprocessed-data/1%AEP/')
Postprocessing storm 1 for quantity WL at all specified locations
Traceback (most recent call last):
File "2_critical_duration_patterns.py", line 17, in
points_dict = post_process(durations=durations, locations=locations,
storm=storm, quantity=quantity, proc_directory=proc_directory,
blockage=blockage)
File "/home/petar/PyARR/ARR2019_post_processing.py", line 198, in
post_process
points_dict = critical_duration_pattern(fromdir, locations)
File "/home/petar/PyARR/ARR2019_post_processing.py", line 142, in
critical_duration_pattern
mean, (one_up_filename, value) = find_average_element(filename_list)
File "/home/petar/PyARR/ARR2019_post_processing.py", line 68, in
find_average_element
raise BaseException('Got an empty list: %s' % filename_list)
BaseException: Got an empty list: []
There are lots of runscripts that are almost identical. Work on a more data driven approach.
Also, the config file in this project should be split up into two:
One which is about real configuration - i.e. things that don't change often such as MyTimeStep or Cellsize or quantities.
Another one which is 'per run' and 'per user'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.