Module Expr Str ImportFrom alias alias alias Import alias ImportFrom alias identifier alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias identifier ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Call NameLoad NameLoad Str Assign NameStore Num Assign NameStore Str FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad TupleLoad Str Assign SubscriptStore NameLoad Slice Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Yield NameLoad Expr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index Num BinOpSub NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad Str Str NameStore body Pass With Call NameLoad Str Str NameStore body Expr Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Num With Call NameLoad Str NameStore body Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num With Call NameLoad Str Str NameStore body Expr Call NameLoad UnaryOpNot AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num With Call NameLoad Str keyword NameLoad NameStore body Expr Call NameLoad UnaryOpNot AttributeLoad NameLoad attr Expr Call NameLoad NameLoad With Call NameLoad Str Str NameStore body With Call NameLoad NameLoad NameStore body Expr Call NameLoad UnaryOpNot AttributeLoad NameLoad attr Expr Call NameLoad NameLoad With Call NameLoad Str Str NameStore body With Call NameLoad NameLoad keyword NameLoad NameStore body Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad With Call NameLoad Str Str NameStore body With Call NameLoad NameLoad Str NameStore body Expr Call NameLoad UnaryOpNot AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str Str TupleLoad Str Assign SubscriptStore NameLoad Slice Num With Call NameLoad Str NameStore body Expr Call NameLoad NameLoad Expr Call NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Slice Num handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Raise Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad With Call NameLoad NameLoad NameStore body Expr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Str NameLoad Assign NameStore Call NameLoad With Call NameLoad NameLoad Str keyword Num NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad With Call NameLoad NameLoad NameStore body Expr Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad With Call NameLoad NameLoad keyword Num NameStore body Expr Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body For NameStore Call NameLoad Call NameLoad NameLoad Str body With Call NameLoad NameLoad Str NameStore body Pass With Call NameLoad NameLoad Str keyword NameLoad NameStore body Pass decorator_list FunctionDef arguments args defaults body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Str With Call NameLoad NameLoad Str NameStore body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad Str Str If CompareEq AttributeLoad Call AttributeLoad NameLoad attr Str attr Num body Expr Call AttributeLoad NameLoad attr Str If CompareEq AttributeLoad Call AttributeLoad NameLoad attr Str attr Num body Expr Call AttributeLoad NameLoad attr Str With Call NameLoad Call NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad For NameStore NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Str NameLoad TupleLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad With Call NameLoad NameLoad keyword Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str Str ListLoad Str Assign SubscriptStore NameLoad Slice Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call NameLoad CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args defaults body With Call NameLoad Call NameLoad keyword Str NameStore body Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Str ListLoad Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad Num Num Num Num Num Num Num Num Num Num With Call NameLoad NameLoad Str NameStore body Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str Str TupleLoad Str Assign SubscriptStore NameLoad Slice NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call NameLoad AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad Num Expr Call NameLoad SubscriptLoad NameLoad Slice NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str With Call NameLoad NameLoad keyword NameLoad NameStore body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Slice Delete NameDel FunctionDef arguments args defaults body With Call NameLoad NameLoad keyword NameLoad NameStore body Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Slice decorator_list With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Str Str ListLoad Assert CompareIs AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body With Call NameLoad body Assign NameStore Str Assign NameStore Call NameLoad NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body With Call NameLoad body Assign NameStore Str Assign NameStore Call NameLoad NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign SubscriptStore NameLoad Index Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Assign NameStore Call NameLoad NameLoad Str With Call NameLoad NameLoad keyword NameLoad NameStore body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice attr Delete NameDel Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call NameLoad NameLoad NameLoad With Call NameLoad body Assign NameStore Str Assign NameStore Call NameLoad NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str TupleLoad Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign SubscriptStore NameLoad Slice NameLoad Expr Call AttributeLoad NameLoad attr With Call NameLoad NameLoad keyword NameLoad NameStore body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice attr Delete NameDel Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Str With Call NameLoad NameLoad keyword NameLoad NameStore body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Slice Expr Call NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Str With Call NameLoad NameLoad keyword NameLoad NameStore body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Slice Expr Call NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad ListLoad Num Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call NameLoad NameLoad Str With Call NameLoad NameLoad keyword NameLoad NameStore body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Slice Expr Call NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad ListLoad NameLoad Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Str With Call NameLoad NameLoad keyword NameLoad NameStore body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Slice Expr Call NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Str With Call NameLoad NameLoad keyword NameLoad NameStore body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Slice Expr Call NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Str With Call NameLoad NameLoad keyword NameLoad NameStore body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Slice Expr Call NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Str With Call NameLoad NameLoad keyword NameLoad NameStore body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Slice Expr Call NameLoad NameLoad ListLoad ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Str With Call NameLoad NameLoad keyword NameLoad keyword NameLoad NameStore body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Slice Expr Call NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad ListLoad Num Num Num decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A  Tests for netcdf  __future__ division print_function absolute_import N/A os os.path join pjoin dirname N/A shutil N/A tempfile N/A warnings io BytesIO glob glob contextlib contextmanager N/A numpy np numpy.testing assert_ assert_allclose assert_raises assert_equal run_module_suite scipy.io.netcdf netcdf_file scipy._lib._tmpdirs in_tempdir N/A TEST_DATA_PATH N/A pjoin N/A dirname __file__ data N/A N_EG_ELS 11 N/A VARTYPE_EG b make_simple N/A N/A N/A args kwargs N/A N/A f N/A netcdf_file args kwargs N/A N/A f history Created for a test N/A N/A N/A f createDimension time N_EG_ELS N/A time N/A N/A f createVariable time VARTYPE_EG N/A time N/A N/A time N/A N/A N/A np arange N_EG_ELS N/A N/A time units days since 2008-01-01 N/A N/A N/A f flush N/A N/A f N/A N/A N/A f close N/A contextmanager check_simple N/A N/A ncfileobj N/A N/A N/A Example fileobj tests  N/A N/A assert_equal N/A ncfileobj history Created for a test N/A time N/A N/A ncfileobj variables N/A time N/A N/A assert_equal N/A time units days since 2008-01-01 N/A N/A assert_equal N/A time shape N/A N_EG_ELS N/A N/A assert_equal N/A time N/A -1 N/A N_EG_ELS 1 N/A assert_mask_matches N/A N/A arr expected_mask N/A N/A N/A 
    Asserts that the mask of arr is effectively the same as expected_mask.

    In contrast to numpy.ma.testutils.assert_mask_equal, this function allows
    testing the 'mask' of a standard numpy array (the mask in this case is treated
    as all False).

    Parameters
    ----------
    arr: ndarray or MaskedArray
        Array to test.
    expected_mask: array_like of booleans
        A list giving the expected mask.
     N/A mask N/A N/A N/A np ma getmaskarray arr N/A N/A assert_equal mask expected_mask N/A test_read_write_files N/A N/A N/A N/A N/A cwd N/A N/A os getcwd N/A N/A N/A tmpdir N/A N/A tempfile mkdtemp N/A N/A N/A os chdir tmpdir N/A N/A make_simple simple.nc w f N/A N/A N/A N/A netcdf_file simple.nc a f N/A N/A N/A check_simple f N/A N/A N/A f _attributes N/A appendRan 1 N/A N/A netcdf_file simple.nc f N/A N/A N/A assert_ N/A f use_mmap N/A N/A check_simple f N/A N/A assert_equal N/A N/A f _attributes N/A appendRan 1 N/A N/A netcdf_file simple.nc a f N/A N/A N/A assert_ N/A N/A f use_mmap N/A N/A check_simple f N/A N/A assert_equal N/A N/A f _attributes N/A appendRan 1 N/A N/A netcdf_file simple.nc mmap False f N/A N/A N/A assert_ N/A N/A f use_mmap N/A N/A check_simple f N/A N/A open simple.nc rb fobj N/A N/A N/A netcdf_file fobj f N/A N/A N/A assert_ N/A N/A f use_mmap N/A N/A check_simple f N/A N/A open simple.nc rb fobj N/A N/A N/A netcdf_file fobj mmap True f N/A N/A N/A assert_ N/A f use_mmap N/A N/A check_simple f N/A N/A open simple.nc r+b fobj N/A N/A N/A netcdf_file fobj a f N/A N/A N/A assert_ N/A N/A f use_mmap N/A N/A check_simple f N/A N/A N/A f createDimension app_dim 1 N/A var N/A N/A f createVariable app_var i N/A app_dim N/A N/A var N/A 42 N/A N/A netcdf_file simple.nc f N/A N/A N/A check_simple f N/A N/A assert_equal N/A N/A N/A f variables N/A app_var N/A 42 N/A N/A N/A N/A N/A N/A os chdir cwd N/A N/A N/A shutil rmtree tmpdir N/A N/A N/A N/A os chdir cwd N/A N/A N/A shutil rmtree tmpdir N/A test_read_write_sio N/A N/A N/A N/A N/A eg_sio1 N/A BytesIO N/A N/A make_simple eg_sio1 w f1 N/A N/A str_val N/A N/A eg_sio1 getvalue N/A eg_sio2 N/A BytesIO str_val N/A N/A netcdf_file eg_sio2 f2 N/A N/A N/A check_simple f2 N/A eg_sio3 N/A BytesIO str_val N/A N/A assert_raises ValueError netcdf_file eg_sio3 r True N/A eg_sio_64 N/A BytesIO N/A N/A make_simple eg_sio_64 w version 2 f_64 N/A N/A str_val N/A N/A eg_sio_64 getvalue N/A eg_sio_64 N/A BytesIO str_val N/A N/A netcdf_file eg_sio_64 f_64 N/A N/A N/A check_simple f_64 N/A N/A assert_equal N/A f_64 version_byte 2 N/A eg_sio_64 N/A BytesIO str_val N/A N/A netcdf_file eg_sio_64 version 2 f_64 N/A N/A N/A check_simple f_64 N/A N/A assert_equal N/A f_64 version_byte 2 N/A test_read_example_data N/A N/A N/A N/A N/A fname N/A glob N/A pjoin TEST_DATA_PATH *.nc N/A N/A N/A netcdf_file fname r f N/A N/A N/A N/A netcdf_file fname r mmap False f N/A N/A N/A test_itemset_no_segfault_on_readonly N/A N/A N/A N/A N/A N/A N/A warnings catch_warnings N/A N/A N/A N/A warnings simplefilter ignore N/A filename N/A pjoin TEST_DATA_PATH example_1.nc N/A N/A netcdf_file filename r f N/A N/A time_var N/A N/A f variables N/A time N/A N/A assert_raises RuntimeError N/A time_var assignValue 42 N/A test_write_invalid_dtype N/A N/A N/A N/A N/A dtypes N/A int64 uint64 N/A N/A N/A N/A N/A np dtype int itemsize 8 N/A N/A N/A N/A dtypes append int N/A N/A N/A N/A N/A np dtype uint itemsize 8 N/A N/A N/A N/A dtypes append uint N/A N/A netcdf_file N/A BytesIO w f N/A N/A N/A N/A f createDimension time N_EG_ELS N/A dt dtypes N/A N/A N/A assert_raises ValueError N/A f createVariable time dt N/A time N/A test_flush_rewind N/A N/A N/A N/A N/A stream N/A BytesIO N/A N/A make_simple stream mode w f N/A N/A x N/A N/A f createDimension x 4 N/A v N/A N/A f createVariable v i2 N/A x N/A N/A v N/A 1 N/A N/A N/A f flush N/A len_single N/A len N/A N/A stream getvalue N/A N/A N/A f flush N/A len_double N/A len N/A N/A stream getvalue N/A N/A assert_ N/A len_single len_double N/A test_dtype_specifiers N/A N/A N/A N/A N/A N/A make_simple N/A BytesIO mode w f N/A N/A N/A N/A f createDimension x 4 N/A N/A N/A f createVariable v1 i2 N/A x N/A N/A N/A f createVariable v2 N/A np int16 N/A x N/A N/A N/A f createVariable v3 N/A N/A np dtype N/A np int16 N/A x N/A test_ticket_1720 N/A N/A N/A N/A N/A io N/A BytesIO N/A items N/A 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 N/A N/A netcdf_file io w f N/A N/A N/A f history Created for a test N/A N/A N/A f createDimension float_var 10 N/A float_var N/A N/A f createVariable float_var f N/A float_var N/A N/A float_var N/A items N/A N/A float_var units metres N/A N/A N/A f flush N/A contents N/A N/A io getvalue N/A io N/A BytesIO contents N/A N/A netcdf_file io r f N/A N/A N/A assert_equal N/A f history Created for a test N/A float_var N/A N/A f variables N/A float_var N/A N/A assert_equal N/A float_var units metres N/A N/A assert_equal N/A float_var shape N/A 10 N/A N/A assert_allclose N/A float_var N/A items N/A test_mmaps_segfault N/A N/A N/A N/A N/A filename N/A pjoin TEST_DATA_PATH example_1.nc N/A N/A N/A warnings catch_warnings N/A N/A N/A N/A warnings simplefilter error N/A N/A netcdf_file filename mmap True f N/A N/A x N/A N/A N/A f variables N/A lat N/A N/A x doit N/A N/A N/A N/A N/A N/A netcdf_file filename mmap True f N/A N/A N/A N/A N/A f variables N/A lat N/A N/A N/A N/A N/A warnings catch_warnings N/A N/A N/A N/A warnings simplefilter ignore N/A x N/A doit N/A N/A N/A x sum N/A test_zero_dimensional_var N/A N/A N/A N/A N/A io N/A BytesIO N/A N/A make_simple io w f N/A N/A v N/A N/A f createVariable zerodim i2 N/A N/A N/A N/A v isrec False N/A v isrec N/A N/A N/A f flush N/A test_byte_gatts N/A N/A N/A N/A N/A N/A in_tempdir N/A N/A filename g_byte_atts.nc N/A f N/A netcdf_file filename w N/A N/A N/A f _attributes N/A holy grail N/A N/A N/A f _attributes N/A witch floats N/A N/A N/A f close N/A f N/A netcdf_file filename r N/A N/A assert_equal N/A N/A f _attributes N/A holy grail N/A N/A assert_equal N/A N/A f _attributes N/A witch floats N/A N/A N/A f close N/A test_open_append N/A N/A N/A N/A N/A N/A in_tempdir N/A N/A filename append_dat.nc N/A f N/A netcdf_file filename w N/A N/A N/A f _attributes N/A Kilroy was here N/A N/A N/A f close N/A f N/A netcdf_file filename a N/A N/A assert_equal N/A N/A f _attributes N/A Kilroy was here N/A N/A N/A f _attributes N/A naughty Zoot N/A N/A N/A f close N/A f N/A netcdf_file filename r N/A N/A assert_equal N/A N/A f _attributes N/A Kilroy was here N/A N/A assert_equal N/A N/A f _attributes N/A naughty Zoot N/A N/A N/A f close N/A test_maskandscale N/A N/A N/A N/A N/A t N/A N/A np linspace 20 30 15 N/A N/A t N/A 3 100 N/A tm N/A N/A N/A np ma masked_greater t 99 N/A fname N/A pjoin TEST_DATA_PATH example_2.nc N/A N/A netcdf_file fname maskandscale True f N/A N/A Temp N/A N/A f variables N/A Temperature N/A N/A assert_equal N/A Temp missing_value 9999 N/A N/A assert_equal N/A Temp add_offset 20 N/A N/A assert_equal N/A Temp scale_factor N/A N/A np float32 0.01 N/A found N/A N/A N/A Temp N/A compressed N/A Temp N/A expected N/A N/A np round N/A N/A tm compressed 2 N/A N/A assert_allclose found expected N/A N/A in_tempdir N/A N/A newfname ms.nc N/A f N/A netcdf_file newfname w maskandscale True N/A N/A N/A f createDimension Temperature N/A len tm N/A temp N/A N/A f createVariable Temperature i N/A Temperature N/A N/A temp missing_value 9999 N/A N/A temp scale_factor 0.01 N/A N/A temp add_offset 20 N/A N/A temp N/A tm N/A N/A N/A f close N/A N/A netcdf_file newfname maskandscale True f N/A N/A Temp N/A N/A f variables N/A Temperature N/A N/A assert_equal N/A Temp missing_value 9999 N/A N/A assert_equal N/A Temp add_offset 20 N/A N/A assert_equal N/A Temp scale_factor N/A N/A np float32 0.01 N/A expected N/A N/A np round N/A N/A tm compressed 2 N/A found N/A N/A N/A Temp N/A compressed N/A Temp N/A N/A assert_allclose found expected N/A test_read_withValuesNearFillValue N/A N/A N/A N/A N/A fname N/A pjoin TEST_DATA_PATH example_3_maskedvals.nc N/A N/A netcdf_file fname maskandscale True f N/A N/A vardata N/A N/A N/A f variables N/A var1_fillval0 N/A N/A N/A assert_mask_matches vardata N/A False True False N/A test_read_withNoFillValue N/A N/A N/A N/A N/A fname N/A pjoin TEST_DATA_PATH example_3_maskedvals.nc N/A N/A netcdf_file fname maskandscale True f N/A N/A vardata N/A N/A N/A f variables N/A var2_noFillval N/A N/A N/A assert_mask_matches vardata N/A False False False N/A N/A assert_equal vardata N/A 1 2 3 N/A test_read_withFillValueAndMissingValue N/A N/A N/A N/A N/A IRRELEVANT_VALUE 9999 N/A fname N/A pjoin TEST_DATA_PATH example_3_maskedvals.nc N/A N/A netcdf_file fname maskandscale True f N/A N/A vardata N/A N/A N/A f variables N/A var3_fillvalAndMissingValue N/A N/A N/A assert_mask_matches vardata N/A True False False N/A N/A assert_equal vardata N/A IRRELEVANT_VALUE 2 3 N/A test_read_withMissingValue N/A N/A N/A N/A N/A fname N/A pjoin TEST_DATA_PATH example_3_maskedvals.nc N/A N/A netcdf_file fname maskandscale True f N/A N/A vardata N/A N/A N/A f variables N/A var4_missingValue N/A N/A N/A assert_mask_matches vardata N/A False True False N/A test_read_withFillValNaN N/A N/A N/A N/A N/A fname N/A pjoin TEST_DATA_PATH example_3_maskedvals.nc N/A N/A netcdf_file fname maskandscale True f N/A N/A vardata N/A N/A N/A f variables N/A var5_fillvalNaN N/A N/A N/A assert_mask_matches vardata N/A False True False N/A test_read_withChar N/A N/A N/A N/A N/A fname N/A pjoin TEST_DATA_PATH example_3_maskedvals.nc N/A N/A netcdf_file fname maskandscale True f N/A N/A vardata N/A N/A N/A f variables N/A var6_char N/A N/A N/A assert_mask_matches vardata N/A False True False N/A test_read_with2dVar N/A N/A N/A N/A N/A fname N/A pjoin TEST_DATA_PATH example_3_maskedvals.nc N/A N/A netcdf_file fname maskandscale True f N/A N/A vardata N/A N/A N/A f variables N/A var7_2d N/A N/A N/A assert_mask_matches vardata N/A N/A True False N/A False False N/A False True N/A test_read_withMaskAndScaleFalse N/A N/A N/A N/A N/A fname N/A pjoin TEST_DATA_PATH example_3_maskedvals.nc N/A N/A netcdf_file fname maskandscale False mmap False f N/A N/A vardata N/A N/A N/A f variables N/A var3_fillvalAndMissingValue N/A N/A N/A assert_mask_matches vardata N/A False False False N/A N/A assert_equal vardata N/A 1 2 3 N/A N/A N/A __name__ __main__ N/A N/A N/A run_module_suite