You are not logged in.

#1 2010-04-30 18:17:37

Mogger
Member
From: Sweden
Registered: 2008-12-07
Posts: 153
Website

[SOLVED] GrADS

The Grid Analysis and Display System (GrADS) is an interactive desktop tool that is used for easy access, manipulation, and visualization of earth science data. The format of the data may be either binary, GRIB, NetCDF, or HDF-SDS (Scientific Data Sets).

Is anyone willing to update the grads package in AUR? The GrADS homepage can be found here: http://badc.nerc.ac.uk/help/software/grads/

(Background information: I want to try GrADS for my Bachelor thesis but don't have time to mess around with other stuff at the moment. I would be willing to be the maintainer once I learn more about PKGBUILDs).

--
PKGBUILD thanks to Graziano:
http://aur.archlinux.org/packages.php?ID=41147

Last edited by Mogger (2010-09-26 19:21:05)

Offline

#2 2010-05-01 15:04:44

Mogger
Member
From: Sweden
Registered: 2008-12-07
Posts: 153
Website

Re: [SOLVED] GrADS

It would be great if I could just get the outdated source to compile. Currently I get the following error when I run makepkg (all dependencies in the PKGBUILD installed):

make[2]: *** No rule to make target `latsnc-nc.o', needed by `gradsdods'.  Stop.
make[2]: Leaving directory `/home/hans/builds/grads/src/grads-1.9b4/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/hans/builds/grads/src/grads-1.9b4/src'
make: *** [all-recursive] Error 1

I'm also confused about the dependencies. grads has hdf4 as a makedepend, which conflicts with netcdf. However, grads depends on netcdf, and hdf4 doesn't provide it.
Now I didn't install netcdf since another dependency, libnc-dap, provides it.  There's still a problem with conflict though.

Offline

#3 2010-05-01 15:28:36

mathieui
Member
Registered: 2009-07-21
Posts: 38
Website

Re: [SOLVED] GrADS

Well, this package needs a big update (compiling the dependencies ATM)
But downloading  ftp://iges.org/grads/2.0/grads-2.0.a8-src.tar.gz and ./configure + make are working fine (but it isn't complete without the dependencies, many things are lacking)

Offline

#4 2010-05-01 19:26:21

Mogger
Member
From: Sweden
Registered: 2008-12-07
Posts: 153
Website

Re: [SOLVED] GrADS

Thanks for looking at it mathieui. I tried to compile it manually and it works (same with the binary they provide), but it seems to need some tweaks. For example, when I use sdfopen it says

udunits(3): Couldn't open units database "/usr/local/lib/grads/udunits.dat": No such file or directory

Yup, udunits installed.

Last edited by Mogger (2010-05-01 19:26:48)

Offline

#5 2010-05-02 14:49:19

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [SOLVED] GrADS

The udunits package in AUR installs udunits.dat to /usr/share/udunits/udunits.dat.

Offline

#6 2010-05-04 15:27:31

Mogger
Member
From: Sweden
Registered: 2008-12-07
Posts: 153
Website

Re: [SOLVED] GrADS

Stefan Husmann wrote:

The udunits package in AUR installs udunits.dat to /usr/share/udunits/udunits.dat.

Thanks. I guess I'll compile and install grads manually (and in my home directory) and make a symlink (urgh) to fix the udunits thing... for now.

Offline

#7 2010-05-27 19:09:52

kailua
Member
Registered: 2010-05-27
Posts: 13

Re: [SOLVED] GrADS

Mogger wrote:
Stefan Husmann wrote:

The udunits package in AUR installs udunits.dat to /usr/share/udunits/udunits.dat.

Thanks. I guess I'll compile and install grads manually (and in my home directory) and make a symlink (urgh) to fix the udunits thing... for now.

I don't think that this has to do with the udunits package. here is a part of the "INSTALL" file that comes with the package from ftp://iges.org/grads/2.0/grads-2.0.a8-src.tar.gz

A second tar file (data.tar.Z) contains the GrADS fonts and maps data sets is
also necessary and can be downloaded from http://grads.iges.org/grads/downloads.html.

The contents of data.tar are typically placed in the directory
/usr/local/lib/grads, the default location for these files. If you do not have
write permission for /usr/local/lib/grads, you can place the files elsewhere, but
you must also change the environment variable GADDIR so the GrADS executables will
know where to find these files.

here is a part of the file "configure". I think this could be very helpful for building:

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-gui              Athena X11 widget-based GUI
  --with-readline         command line editing
  --with-printim          image output
  --with-grib2            GRIB2 data format
  --with-sdf              all self-describing formats
                          (HDF4,HDF5,NetCDF,OPeNDAP)
  --with-gadap            OPeNDAP for station data
  --with-shp              shapefile format
  --with-geotiff          geotiff output
  --with-x                use the X Window System
  --with-hdf4=ARG         hdf4 directory
  --with-hdf4-include=ARG hdf 4 include directory
  --with-hdf4-libdir=ARG  hdf 4 library directory
  --with-netcdf=ARG       netcdf directory
  --with-netcdf-include=ARG
                          netcdf include directory
  --with-netcdf-libdir=ARG
                          netcdf library directory

Offline

#8 2010-07-03 18:48:58

iamsmrt
Member
Registered: 2009-08-12
Posts: 138

Re: [SOLVED] GrADS

Mogger wrote:

It would be great if I could just get the outdated source to compile. Currently I get the following error when I run makepkg (all dependencies in the PKGBUILD installed):

make[2]: *** No rule to make target `latsnc-nc.o', needed by `gradsdods'.  Stop.
make[2]: Leaving directory `/home/hans/builds/grads/src/grads-1.9b4/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/hans/builds/grads/src/grads-1.9b4/src'
make: *** [all-recursive] Error 1

I'm also confused about the dependencies. grads has hdf4 as a makedepend, which conflicts with netcdf. However, grads depends on netcdf, and hdf4 doesn't provide it.
Now I didn't install netcdf since another dependency, libnc-dap, provides it.  There's still a problem with conflict though.

This is one thing I'm not really sure how to deal with because these dependencies are outlined in the makefile. How do we find why netcdf/hdf4 conflict?

EDIT: A potential solution would be to use this package http://aur.archlinux.org/packages.php?ID=37456 or you can edit the PKGBUILD of the regular hdf4 package and add the "--disable-netcdf" option to the ./configure.
Source: (http://www.unidata.ucar.edu/mailing_lis … 00018.html)
EDIT #2: Hrm, just editing the PKGBUILD with the "--disable-netcdf" option doesn't seem to be working with yaourt.

Also, anyone know what the patches are for exactly?

Last edited by iamsmrt (2010-07-03 19:35:31)

Offline

#9 2010-09-26 18:08:38

Graziano
Member
From: Italy
Registered: 2006-07-07
Posts: 12

Re: [SOLVED] GrADS

Uploaded grads2 package

Offline

#10 2010-09-26 19:19:25

Mogger
Member
From: Sweden
Registered: 2008-12-07
Posts: 153
Website

Re: [SOLVED] GrADS

Cool, thank you Graziano. I've finished my thesis and didn't need to use grads, but who knows, I'm sure it'll be useful in the future. smile

Just one small problem with the PKGBUILD (I haven't tested the program yet):

cd ${srcdir}/${pkgname}-${pkgver}

This directory doesn't exist, since ${pkgname} is grads2. Anyway I'm consider this as solved, thanks again.

Offline

Board footer

Powered by FluxBB