Extracting a low resolution grid

Category: Python - Miscellaneous

This script illustrates how to extract a low resolution grid from a high resolution grid using the Numeric package. It presents an inefficient but straightforward solution and then a more efficient solution that employs the functionality in Numeric. This script shows how functionality in the Numeric package can be applied in cases where one would normally iterate through a rectangular subgrid. The initial solution is presented in grid_coarse(). This solution is quite efficient in Fortran or C but is not an effective solution when used with the Numeric package. The convert method in GridCoarse avoids the inner loop and is useful for converting a number of 2-d grids all having the same grid dimensions. This is just what is called for when converting the horizontal planes in a 3d volume. Date: 01 April, 2012


Low Resolution Grid - High Resolution Grid - Numeric Package - Numeric - Package - Grid

Homepage: http://code.activestate.com/

Developer: code.activestate.com

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

This JavaScript adds commas in the proper places.

developer Developer: Steve S
license License: GNU General Public License (GPL)
operating systems Operating System: Not Available


A superset of C compatible and platform independant scripting language.

developer Developer: Mr. Cheng
license License: Freeware
operating systems Operating System: Linux, Unix, Windows


Given a large one-dimensional array, this script breaks it into blocks of contstant length and compute min and max for each block, the so-called "peaks data".

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This is a traditional base converter with the twist that it accepts any strings as the digits for the input and output bases.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script converts a Numeric to a rational.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This is the code of a scientific calculator with all functions defined numerically.

developer Developer: planet-source-code.com
license License: Freeware
operating systems Operating System: All


Numeric number to literal number script allows you to convert a numeric number to a literal string equivalent.

developer Developer: phpbuilder.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


Oleo is a light-weight spreadsheet manager that will work in almost any environment.

developer Developer: ftp.gnu.org
license License: Freeware
operating systems Operating System: All


Because the normal value oe a person's ECG is not always constant, the script will output an average value.

developer Developer: mathworks.com
license License: Freeware
operating systems Operating System: All