Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

questions about the input file carins.asc #203

Open
Dongxueyang opened this issue Aug 10, 2019 · 12 comments
Open

questions about the input file carins.asc #203

Dongxueyang opened this issue Aug 10, 2019 · 12 comments

Comments

@Dongxueyang
Copy link

Dongxueyang commented Aug 10, 2019

Hi guys:

I open the input file carins.asc and find some information of elevation. But some value is minus like -9999. If this kind of value is meaningless?
And I found the model of landform is rectangular . If I want to simiulate a proccess based on an irregular landform(like polygon) ,can the anuga_core achieve?

all regards
dong

@stoiver
Copy link
Member

stoiver commented Aug 10, 2019

@Dongxueyang

The -9999 represents "no value" or "not a number" and is excluded from the interpolation.

Of course you can use a more complicated boundary. You can check some of the notebooks on https://github.com/stoiver/anuga-clinic-2018 in particular notebook1 and notebook2 to see the use of anuga.create_domain_from_regions

@Dongxueyang
Copy link
Author

@stoiver
Thanks a lot. I will read the notebook carefully.
Another question.
I have finished computing carins example and run " python export_results_to_qgis.py"
But I got error like this:
Area of bounding polygon = 107720.35 km^2
output dir: cairns_fixed_wave
Traceback (most recent call last):
File "export_results_to_qgis.py", line 30, in verbose=True)
File "/usr/local/lib/python2.7/dist-packages/anuga/utilities/plot_utils.py", line 1004, in Make_Geotif
raise ImportError, msg
ImportError: Failed to import gdal/ogr modules --perhaps gdal python interface is not installed.

And then I run "sudo apt-get install python-gdal" . But the error was not solved.
dong

@Dongxueyang
Copy link
Author

@stoiver
If the iuput file .asc is not square, dx≠dy,can the anuga simulate successfully?

@Dongxueyang
Copy link
Author

@stoiver
Hi stoiver, I am run the example cairns_excel. But I got error like: Segmentation fault (core dumped).
So I want to change the resolution of the model. But I can not find the default_res. I try to change the "maximum mesh triangle area" in file "cairns_excel" ,but it is useless . Could you help me how can I solve this problem?
best regards
dong

@stoiver
Copy link
Member

stoiver commented Aug 12, 2019

@Dongxueyang i just tried to run the cairns_excel example and ran into a problem. I will look into it.

@stoiver
Copy link
Member

stoiver commented Aug 12, 2019

@Dongxueyang, My problem was just that I forgot to unzip the cairns.zip file.

Can you provide the Simulation_logfile.log file from your cairns_excel run. Should be in the appropriate MODEL_OUTPUTS directory.

@Dongxueyang
Copy link
Author

Dongxueyang commented Aug 12, 2019

@stoiver
I have unziped the cairns.zip file. But problem was not sovled, even I can not got file simulation_logfile.log.

@stoiver
Copy link
Member

stoiver commented Aug 13, 2019

@Dongxueyang, so how have you installed anuga, on what type of machine, and have you successfully run the unit tests (via python runtests.py?).

@Dongxueyang
Copy link
Author

@stoiver
After I downloaded anuga.
I ran "sudo sh install_ubuntu.sh" at anuga_core_master/tools .
And print follows on scream:

InsecurePlatformWarning
install_ubuntu.sh: 78: install_ubuntu.sh: [[: not found
install_ubuntu.sh: 85: install_ubuntu.sh: [[: not found
install_ubuntu.sh: 92: install_ubuntu.sh: [[: not found
install_ubuntu.sh: 101: install_ubuntu.sh: [[: not found
install_ubuntu.sh: 101: install_ubuntu.sh: openmpi: not found
install_ubuntu.sh: 101: install_ubuntu.sh: openmpi: not found
+===============================================+
| Build anuga |
+===============================================+
python setup.py build
Building, see build.log...
Build OK

That took 0.501s
+===============================================+
| Install anuga using setup.py |
+===============================================+
Running from anuga source directory.

There are some warnings but no errors.
And then I ran "python runtest.py"
I got this:

Building, see build.log...
Build OK
Running unit tests for anuga
NumPy version 1.16.4
NumPy relaxed strides checking option: True
NumPy is installed in /usr/local/lib/python2.7/dist-packages/numpy
Python version 2.7.6 (default, Nov 13 2018, 12:45:42) [GCC 4.8.4]
nose version 1.3.7
....../usr/local/lib/python2.7/dist-packages/netCDF4/init.py:3: UserWarning:
WARNING: Backwards incompatible files will be created with HDF5 1.10.x
and netCDF < 4.4.1. Upgrading to netCDF4 >= 4.4.1 or downgrading to
to HDF5 version 1.8.x is highly recommended
(see Unidata/netcdf-c#250).
from ._netCDF4 import *
Segmentation fault (core dumped)

Maybe is the key of the problem. But I can run cairns example successfully. What is your opinion to this problem.

My computer is based on Ubuntu14.04 with python2.7.6, gcc4.8.4.

Best regards
dong

@stoiver
Copy link
Member

stoiver commented Aug 13, 2019

@Dongxueyang, so there is some strange conflict between netcdf4 and hdf5. I wonder if your machine had anuga installed in the past? Anyway there seems to be some conflict with what python expects and the netcdf4 library.

It might be worth trying to install anuga within a conda environment. Checkout https://github.com/GeoscienceAustralia/anuga_core/wiki/Install-ANUGA-on-Ubuntu-(using-Miniconda)

Anyrate you need to get the unittests (via runtests.py ) working before expecting to get the examples to working consistently.

@Dongxueyang
Copy link
Author

@stoiver

Ok, I had not installed anuga in the past.
I will try again to install within conda environment later.
Thanks a lot.
dong

@Dongxueyang
Copy link
Author

@stoiver
Hi storiver, I want to set diffierent stage on diffierent areas in one model. Is it possible to achieve and is there an example with this function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants