Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
NetCDF output for GeoClaw
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Randall J. LeVeque  
View profile  
 More options Apr 14 2011, 1:53 am
From: "Randall J. LeVeque" <r...@uw.edu>
Date: Wed, 13 Apr 2011 22:53:21 -0700
Local: Thurs, Apr 14 2011 1:53 am
Subject: NetCDF output for GeoClaw
Thanks to Josh Jacobs, there is now an option to output NetCDF files
rather than ASCII files from GeoClaw.  So far this is only in
branches/4.6.x.  This will be extended to AMRClaw more generally and also
to classic Clawpack in the future.

Instead of the usual files fort.tXXXX and fort.qXXXX in the output
directory, there will generate one set of files fort.qXXXX.nc that are
about 25%  the size the fort.qXXXX files would be.

To output from Fortran in NetCDF format, adjust the Makefile to replace
   $(GEOLIB)/valout_geo.f \
by
   $(GEOLIB)/valout_nc_geo.f \
and add the Fortran flags
 FFLAGS ?=-I/usr/include  -lnetcdf -lnetcdff

This assumes that the NetCDF libraries are installed and that the file
 /usr/include/netcdf.inc
exists, see below.

The Python plotting tools have also been modified to support reading
in NetCDF files.  Simply set
 plotdata.format = "netcdf"
in the setplot function to use this, assuming the required Python
modules are installed.

There are also files in 4.6.x/util to do the conversion of both the Makefile
and the setplot.py file automatically.  Josh provided both Python and
bash+perl script versions:  update_nc_param.bash and update_nc_param.py

NetCDF INSTALLATION:

You may first have to install NetCDF for both Fortran and Python.
On Ubuntu things should work (famous last words) if you install the
following packages  (in addition to gfortran, NumPy and SciPy):

python-netcdf
python-scientific
libnetcdf4
libbetcdf-dev

Please report difficulties (or success)

 - Randy


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »