# Square spectrum¶

## Description¶

This spectrum type corresponds to a square shaped spectrum, with a constant “top” value between two wavelengths, and a “base” value otherwise.

Note

This spectrum was named renamed from “peak” to “square” after Ocean 2015 beta 3

## Unit¶

This spectrum type has no intrinsic unit. It takes the same unit as the given top and base parameters.

## Parameters¶

name |
type |
description |
---|---|---|

min |
real |
The low wavelength limit in meters |

max |
real |
The high wavelength limit in meters |

base |
real |
The spectrum value for wavelengths outside min and max |

top |
real |
The spectrum value for wavelengths between min and max |

## Ocean XML 3.0 example¶

```
<spectrum type="peak" name="spectrum" min="4.7e-007" max="5.9e-007" base="0" top="1"/>
```