| 1 | % | % | 
| 2 | % [] = COMPUTE_DENSITY(SNAPSHOT) | % [] = compute_density(SNAPSHOT) | 
| 3 | % | % | 
| 4 | % For a time snapshot, this program computes the | % For a time snapshot, this program computes the | 
| 5 | % 3D density from potential temperature and salinity. | % 3D density from potential temperature and salinity. | 
| 6 | % THETA and SALTanom are supposed to be defined on the same | % THETA and SALTanom are supposed to be defined on the same | 
| 7 | % domain and grid. | % domain and grid. | 
| 8 | % | % | 
| 9 |  | % Files names are: | 
| 10 |  | % INPUT: | 
| 11 |  | % ./netcdf-files/<SNAPSHOT>/<netcdf_THETA>.<netcdf_domain>.<netcdf_suff> | 
| 12 |  | % ./netcdf-files/<SNAPSHOT>/<netcdf_SALTanom>.<netcdf_domain>.<netcdf_suff> | 
| 13 |  | % OUPUT: | 
| 14 |  | % ./netcdf-files/<SNAPSHOT>/RHO.<netcdf_domain>.<netcdf_suff> | 
| 15 |  | % | 
| 16 | % 06/21/2006 | % 06/21/2006 | 
| 17 | % gmaze@mit.edu | % gmaze@mit.edu | 
| 18 | % | % |