Menu

Tree [b3ac69] master /
 History

HTTPS access


File Date Author Commit
 html 2012-10-22 rsz rsz [3131e5] Initial commit.
 libs 2012-10-22 rsz rsz [3131e5] Initial commit.
 src 2012-10-22 rsz rsz [3131e5] Initial commit.
 test 2012-10-22 rsz rsz [3131e5] Initial commit.
 .gitignore 2016-02-17 rsz rsz [b3ac69] update
 COPYING 2012-10-22 rsz rsz [3131e5] Initial commit.
 Makefile 2012-10-22 rsz rsz [51c9be] Enhanced make dist.
 Makefile.inc 2012-10-22 rsz rsz [3131e5] Initial commit.
 README.md 2012-10-22 rsz rsz [3131e5] Initial commit.

Read Me

ncmock - NetCDF mock data generator.

Banner image

Overview

Creates a NetCDF file from command-line arguments. Variables can be any type and filled with data in 5 ways, either a constant, a checker pattern, randoms, linear range, or a sombrero ripple function, all of which can be animated too if they use a record dimension. Specific constants and randoms allowed include positive/negative infinity, NaN, negative zero, minimum denormalized positive for a datatype, and min/max for a datatype. Global and variable attributes can also be created. Advanced controls exist for choosing alignment, blocksize, file flavor (classic or HDF5), prefill, initial size, and header pad. ncmock has throughput and peak memory calipers, so it can also be used as a benchmark tool.

Examples

# Create ripple data animated in time.
ncmock -d x,300 -d y,300 -d t,10,record -v test,f,t,y,x,fun1 -n ripple,fun1,5,5 -p ripple.nc

Figure1

# Create checkerboard data animated in time.
ncmock -d x,300 -d y,300 -d t,10,record -v test,f,t,y,x,fun1 -n checker,fun1,50,50 -p checker.nc

Figure2

# Create linear range data animated in time.
ncmock -d x,300 -d y,300 -d t,10,record -v test,f,t,y,x,fun1 -n range,fun1,0,1 -p range.nc

Figure3

# Create constant fill data.
ncmock -d x,300 -d y,300 -d t,10,record -v test,f,t,y,x,fun1 -n const,fun1,0 -p constant.nc

Figure4

# Create random data animated in time.
ncmock -d x,300 -d y,300 -d t,10,record -v test,f,t,y,x,fun1 -n rand,fun1 -p random.nc

Figure5

Download

Source code

Installation

make
make test
make memtest
make example
src/ncmock --help

Distribution

make clean
make html
make dist VER=0.0.1

News

v0.0.1 2011/12/19
- Bug fix, 0D record values range did not export, such as for "double rec(rec)".

v0.0.0 2011/11/19
- Initial release. Fully tested and no bugs or memory leaks.

Publishing

ssh -t rsz,ncmock@shell.sourceforge.net create
scp html/* rsz,ncmock@shell.sourceforge.net:/home/project-web/ncmock/htdocs
scp ../ncmock-0.0.1.tar.gz rsz,ncmock@shell.sourceforge.net:/home/frs/project/n/nc/ncmock

License

Copyright 2011,2012 Remik Ziemlinski under the terms of the GNU General Public License

<link rel="stylesheet" href="http://yandex.st/highlightjs/7.0/styles/default.min.css">

<script src="http://yandex.st/highlightjs/7.0/highlight.min.js"></script> <script>hljs.initHighlightingOnLoad();</script> <style type="text/css"> body { font-family: Sans-Serif; } </style>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.