File panoply.spec of Package panoply
#
# spec file for package panoply
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: panoply
Version: 5.6.1
Release: 0
Summary: A netCDF, HDF and GRIB Data Viewer
License: Unlicense AND MIT AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause
Group: Productivity/Scientific/Other
URL: https://www.giss.nasa.gov/tools/panoply
Source0: https://www.giss.nasa.gov/tools/panoply/download/PanoplyJ-%{version}.zip
Source1: EdGCM_Panoply.pdf
Source2: panoply_D.pdf
Source3: %{name}.desktop
Source4: panoply_64x64.png
Source5: panoply_128x128.png
Source6: panoply_192x192.png
Source7: panoply_320x320.png
BuildRequires: unzip
Requires: java >= 11
BuildArch: noarch
%description
Panoply is a cross-platform application that plots geo-referenced and other
arrays from netCDF, HDF, GRIB, and other datasets.
With Panoply 5 you can:
* Create color contour plots of geo-referenced latitude-longitude,
latitude-vertical, longitude-vertical, time-latitude or time-vertical
arrays sliced from 2D or larger multidimensional variables.
* Create color contour plots of "generic" 2D arrays from 2D or larger
multidimensional variables.
* Create line plots of data from 1D or larger multidimensional variables.
* Combine two geo-referenced arrays in one plot by differencing, summing
or averaging.
* Create map plots of trajectory data based on the CF convention or similar.
* Plot lon-lat data on a global or regional map using any of over 200 map
projections or make a zonal average line plot.
* Overlay continent outlines or masks on lon-lat map plots.
* Use any of numerous color tables for the scale colorbar, or apply your own
custom ACT, CPT, or RGB color table.
* Save plots to disk GIF, JPEG, PNG or TIFF bitmap images or as PDF or
PostScript graphics files.
* Export lon-lat map plots in KMZ format.
* Open remote netCDF and HDF dataset stored on an HTTP/HTTPS website or in an
S3 bucket.
* Explore remote THREDDS and OPenDAP catalogs and open datasets served
from them.
* Export animations as MP4 video or as a collection of invididual frame
images.
%prep
rm -fr PanoplyJ
unzip %{SOURCE0}
%build
%install
# startscript
cat > %{name} << 'EOF'
#!/bin/sh
#
# panoply startscript
#
java -Xms512m -Xmx2000m -jar %{_datadir}/%{name}/Panoply.jar "$@"
EOF
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}/
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -m 644 PanoplyJ/jars/* %{buildroot}%{_datadir}/%{name}/
install -d -m 755 %{buildroot}%{_datadir}/applications/
install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/applications/
install -d -m 755 %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
install -d -m 755 %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/
install -m 644 %{SOURCE5} %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
install -d -m 755 %{buildroot}%{_datadir}/icons/hicolor/192x192/apps/
install -m 644 %{SOURCE6} %{buildroot}%{_datadir}/icons/hicolor/192x192/apps/%{name}.png
install -d -m 755 %{buildroot}%{_datadir}/icons/hicolor/320x320/apps/
install -m 644 %{SOURCE7} %{buildroot}%{_datadir}/icons/hicolor/320x320/apps/%{name}.png
install -d -m 755 %{buildroot}%{_defaultdocdir}/%{name}
install -m 644 PanoplyJ/README.txt %{buildroot}%{_defaultdocdir}/%{name}/
install -m 644 %{SOURCE1} %{buildroot}%{_defaultdocdir}/%{name}/
install -m 644 %{SOURCE2} %{buildroot}%{_defaultdocdir}/%{name}/
%files
%{_defaultdocdir}/%{name}/
%{_bindir}/*
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/
%changelog