Regression Tests
[NetCDF Files]

Collaboration diagram for Regression Tests:


Detailed Description

Regression tests for the netcdf package.



 BOOST_AUTO_TEST_CASE (read_bathy_header)
 This test prints out the dimensions and variables in the netCDF header.
 BOOST_AUTO_TEST_CASE (read_etopo)
 Extract Hawaii bathymetry from March 2010 version of ETOPO1 using the netcdf_bathy class.
 BOOST_AUTO_TEST_CASE (read_coards)
 Extract Hawaii bathymetry from the etopo_cmp.nc file created in the Makefile using the ncks tool.
 BOOST_AUTO_TEST_CASE (span_bathy)
 Tests the ability of the netcdf_bathy class to span a longitude cut point in the database.
 BOOST_AUTO_TEST_CASE (nonglobal_database)
 Tests the ability of the netcdf_bathy class to extract data from a netcdf file that does not have a global range.



 BOOST_AUTO_TEST_CASE (read_woa)
 Tests the ability of the netcdf_woa class to splice deep and shallow databases into a combined product.
 BOOST_AUTO_TEST_CASE (span_profile)
 Tests the ability of the netcdf_profile class to span a longitude cut point in the database.

Function Documentation

BOOST_AUTO_TEST_CASE ( span_profile   ) 

Tests the ability of the netcdf_profile class to span a longitude cut point in the database.

To test this, it reads data from WOA09 across the area from -1E (aka 1W) to 1E. It relies on the fact that WOA09 defines its data in terms of longitudes from 0 to 360. Dumps the resulting profiles to the span_profile.csv file.

Automatically compares results for a handfull of individual location to data that was extracted by hand from the woacmp2.log file created by the Makefile. Generates BOOST errors if these values differ by more that 1E-6 percent.

BOOST_AUTO_TEST_CASE ( nonglobal_database   ) 

Tests the ability of the netcdf_bathy class to extract data from a netcdf file that does not have a global range.

This would in return prevent the data from wrapping around and instead limit the bounds of the data to the database provided.

BOOST_AUTO_TEST_CASE ( span_bathy   ) 

Tests the ability of the netcdf_bathy class to span a longitude cut point in the database.

To test this, it reads data from ETOPO1 across the area from 179E to 181E (aka 179W). This assumes that ETOPO1 defines its data in terms of longitudes from -180 to 180.

Dump the resulting bathymetry to the span_bathy.log file.

BOOST_AUTO_TEST_CASE ( read_coards   ) 

Extract Hawaii bathymetry from the etopo_cmp.nc file created in the Makefile using the ncks tool.

Compare results for individual array indices to equivalent data that extracted from this database by hand from the etopo_cmp.log file created by the Makefile. Throw errors if values differ by more that 1E-6 percent. Comparisons of the log files output by each phase (etopo.log and coards.log) should also show no differences.

The input file may be missing if the current platform does not include the ncks utility. This test quietly exits if etopo_cmp.nc is missing.

BOOST_AUTO_TEST_CASE ( read_etopo   ) 

Extract Hawaii bathymetry from March 2010 version of ETOPO1 using the netcdf_bathy class.

Dump the resulting bathymetry to the read_etopo.log file.

Automatically compares results for a handfull of individual location to data that was extracted by hand from the etopo_cmp.log file created by the Makefile. Generate BOOST errors if these values differ by more that 1E-6 percent.

BOOST_AUTO_TEST_CASE ( read_woa   ) 

Tests the ability of the netcdf_woa class to splice deep and shallow databases into a combined product.

Extract Hawaii ocean temperature and dumps the resulting data to the read_woa.csv file.

Automatically compares results for a handfull of individual location to data that was extracted by hand from the woacmp.log file created by the Makefile. Generates BOOST errors if these values differ by more that 1E-6 percent.

BOOST_AUTO_TEST_CASE ( read_bathy_header   ) 

Generated on 4 May 2015 for USML by  doxygen 1.6.1