File: create_tmp.rb

package info (click to toggle)
ruby-netcdf 0.6.6-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,184 kB
  • ctags: 882
  • sloc: ansic: 3,968; ruby: 1,661; makefile: 9; csh: 6
file content (15 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'numru/netcdf'

$DEBUG = true
include NumRu
file = NetCDF.create_tmp
file.def_dim('x',5)
file.put_att("history", __FILE__ )
p file.path
p file.att("history").get
print "environment variable TEMP ="+(ENV['TEMP'] || '')+"\n"
file2=file
print "000\n"
file.close
GC.start
print "aaa\n"