Skip to content

Commit

Permalink
Update variable references
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrjones committed Mar 20, 2024
1 parent 44f1123 commit 51e0cbb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions demo/components/parameter-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ const sx = {
}

const CLIM_RANGES = {
tavg: { max: 30, min: -20 },
prec: { max: 300, min: 0 },
sst: { max: 30, min: -20 },
ice: { max: 300, min: 0 },
}

const DEFAULT_COLORMAPS = {
tavg: 'warm',
prec: 'cool',
sst: 'warm',
ice: 'cool',
}

const ParameterControls = ({ getters, setters }) => {
Expand Down Expand Up @@ -171,8 +171,8 @@ const ParameterControls = ({ getters, setters }) => {
sx={{ mt: [1] }}
value={band}
>
<option value='tavg'>Temperature</option>
<option value='prec'>Precipitation</option>
<option value='sst'>Sea Surface Temperature</option>
<option value='ice'>Sea Ice Concentrations</option>
</Select>

<Box sx={{ ...sx.label, mt: [4] }}>Colormap</Box>
Expand Down
8 changes: 4 additions & 4 deletions demo/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Index = () => {
const [opacity, setOpacity] = useState(1)
const [clim, setClim] = useState([2000, 3000])
const [month, setMonth] = useState(1)
const [band, setBand] = useState('tavg')
const [band, setBand] = useState('sst')
const [colormapName, setColormapName] = useState('warm')
const colormap = useThemedColormap(colormapName)
const [showRegionPicker, setShowRegionPicker] = useState(false)
Expand Down Expand Up @@ -68,11 +68,11 @@ const Index = () => {
opacity={opacity}
mode={'texture'}
source={
'https://carbonplan-scratch.s3.us-west-2.amazonaws.com/pyramid_test_consolidated/GPM_3IMERGDF.07'
'https://carbonplan-scratch.s3.us-west-2.amazonaws.com/oisst_1_mo/pyramid'
}
variable={'precipitation'}
variable={'sst'}
selector={{
time: 11109,
time: 4261,
}}
regionOptions={{ setData: setRegionData }}
/>
Expand Down

0 comments on commit 51e0cbb

Please sign in to comment.