Skip to content

Commit

Permalink
Goes/final updates (#170)
Browse files Browse the repository at this point in the history
- remove maximum from colorbar
- add from startTime to the release duration
- using pixelated for thumbnail resolution
- change favicon
  • Loading branch information
sanzog03 authored Nov 27, 2024
2 parents 977f842 + 798f174 commit f62694a
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 9 deletions.
Binary file added goes-plume-viewer/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed goes-plume-viewer/public/earth.png
Binary file not shown.
Binary file added goes-plume-viewer/public/favicon.ico
Binary file not shown.
Binary file added goes-plume-viewer/public/icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added goes-plume-viewer/public/icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions goes-plume-viewer/public/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions goes-plume-viewer/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/earth.png" />
<link rel="icon" href="%PUBLIC_URL%/icon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Subdaily Plumes Observed from GOES Satellite."
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/earth.png" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/apple-touch-icon.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand Down
6 changes: 3 additions & 3 deletions goes-plume-viewer/public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"name": "Subdaily Plume Viewer Observed from GOES",
"icons": [
{
"src": "earth.png",
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "earth.png",
"src": "favicon-192.ico",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "earth.png",
"src": "favicon-512.ico",
"type": "image/png",
"sizes": "512x512"
}
Expand Down
4 changes: 2 additions & 2 deletions goes-plume-viewer/src/components/card/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function PlumeCard({ plumeSourceId, plumeSourceName, startDatetime, endDa
<CardMedia
component="img"
height="100"
sx={{ padding: "1em", objectFit: "contain", minWidth: "50px" }}
sx={{ padding: "1em", objectFit: "contain", minWidth: "50px", imageRendering: "pixelated" }}
image={imageUrl}
alt="Plume image"
/>
Expand Down Expand Up @@ -128,7 +128,7 @@ export function PlumeCard({ plumeSourceId, plumeSourceName, startDatetime, endDa
<HorizontalLayout>
<CaptionValue
className="card-plume"
caption = "Approximate Release Duration"
caption = "Approximate Release Duration from Start Time"
value = { formatDuration(moment.duration(duration)) }
/>
</HorizontalLayout>
Expand Down
2 changes: 1 addition & 1 deletion goes-plume-viewer/src/components/colorBar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const ColorBar = () => {
<Card id="colorbar">
<div ref={colorBarScale} className="colorbar-scale"></div>
<Typography variant="subtitle2" gutterBottom sx={{ marginBottom: 0 }} className="colorbar-label">
Maximum Methane Column Enhancement (mol/m²)
Methane Column Enhancement (mol/m²)
</Typography>
</Card>
)
Expand Down
2 changes: 1 addition & 1 deletion goes-plume-viewer/src/components/drawer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export function PersistentDrawerRight({open, setOpen, selectedPlumes, plumeMetaD
key={selectedPlumeMeta.id}
plumeSourceId={selectedPlumeMeta.id}
plumeSourceName={selectedPlumeMeta.id}
imageUrl={`${process.env.REACT_APP_RASTER_API_URL}/collections/${collectionId}/items/${plumesMap[selectedPlumeMeta.id].representationalPlume.id}/preview.png?assets=rad&rescale=${VMIN}%2C${VMAX}&colormap_name=${colorMap}&width=250&height=250`}
imageUrl={`${process.env.REACT_APP_RASTER_API_URL}/collections/${collectionId}/items/${plumesMap[selectedPlumeMeta.id].representationalPlume.id}/preview.png?assets=rad&rescale=${VMIN}%2C${VMAX}&colormap_name=${colorMap}`}
tiffUrl={`${process.env.REACT_APP_CLOUD_BROWSE_URL}/browseui/#${collectionId}/#q=${selectedPlumeMeta.id.split("_").slice(-1)}`}
lon={selectedPlumeMeta.lon}
lat={selectedPlumeMeta.lat}
Expand Down

0 comments on commit f62694a

Please sign in to comment.