Re: [GRASS-user] Dataset file for add-on

2015-05-04 Thread Markus Neteler
On Sat, May 2, 2015 at 9:49 AM, Johannes Radinger
johannesradin...@gmail.com wrote:
 Hi,

 I'd like to use a HDF5 datafile (multidimensional matrix with
 parameter values) to be used and called from an python add-on.
 Thus, I thought about providing the data file together with
 the python add-on an load the data via a relative path (relative
 to the path of the add-on). Is it generally possible to include
 a datafile in the respecitive add-on folder so that it is also installed
 together with the add-on.

The g.extension script would need a modification to allow for other
file extensions than the image extensions.

 And if so, how should it be loaded (of course
 with the hd5py functionalities) from within the python script (so that
 it works on Windows and Linux platforms)

As an alternative you could host it along with the script (if not too
huge) and then fetch it from there via curl/wget.

Best
Markus
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Dataset file for add-on

2015-05-02 Thread Johannes Radinger
Hi,

I'd like to use a HDF5 datafile (multidimensional matrix with
parameter values) to be used and called from an python add-on.
Thus, I thought about providing the data file together with
the python add-on an load the data via a relative path (relative
to the path of the add-on). Is it generally possible to include
a datafile in the respecitive add-on folder so that it is also installed
together with the add-on. And if so, how should it be loaded (of course
with the hd5py functionalities) from within the python script (so that
it works on Windows and Linux platforms)

Best regards,
Johannes
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user