GAMS数据交换(GDX)文件访问
gdx的Python项目详细描述
#PYGDX
[![文档状态](https://readthedocs.org/projects/pygdx/badge/?版本=最新](https://readthedocs.org/projects/pygdx/?徽章=最新)
[![构建状态](https://travis-ci.org/khaeru/py-gdx.svg?branch=master)(https://travis ci.org/khaeru/py-gdx)
[![覆盖状态](https://workalls.io/repos/github/khaeru/py-gdx/badge.svg?branch=master)(https://coveralls.io/github/khaeru/py-gdx?branch=master)
pygdx是一个python包,用于访问存储在*gams data exchange*(gdx)文件中的数据。GDX是[通用代数建模系统](http://www.gams.com)(GAMS)使用的专有二进制文件格式;PyGDX使用[GDX API]的Python绑定(http://www.gams.com/dd/docs/api/expert-level/gdxqdrep.html)。
由Geoff Leyland(https://github.com/geoff leyland/py-gdx)开发,该版本利用[xarray](http://xarray.py data.org)提供标记的数据结构,这些数据结构可以很容易地用[numpy]操作(http://www.numpy.org)进行计算和绘图。
**文档**可在http://pygdx.readthedocs.org上获得,根据github存储库的内容自动构建。
pygdx是在**mit许可证**(请参阅“许可证”)下提供的。
蚱蜢/;
set t‘colors’/
r red
o orange
y yellow
g green
b blue
i indigo
v violet
/;
set u‘countries’/
ca canada
u s united states
cn china
jp japan
/;
p(s,t,u)参数民族主义的计数,五颜六色的动物'
/set.s.set.t.set.u 1/;
execute_unload'example.gdx'
``````````
>可以通过以下方式访问参数“p”:导入gdx
>;>;f=gdx.file('example.gdx')
>;>;f.p[:,'y','c a']
a 1
b1
c1
d1
e1
f1
g1
d类型:float64
`````
[![文档状态](https://readthedocs.org/projects/pygdx/badge/?版本=最新](https://readthedocs.org/projects/pygdx/?徽章=最新)
[![构建状态](https://travis-ci.org/khaeru/py-gdx.svg?branch=master)(https://travis ci.org/khaeru/py-gdx)
[![覆盖状态](https://workalls.io/repos/github/khaeru/py-gdx/badge.svg?branch=master)(https://coveralls.io/github/khaeru/py-gdx?branch=master)
pygdx是一个python包,用于访问存储在*gams data exchange*(gdx)文件中的数据。GDX是[通用代数建模系统](http://www.gams.com)(GAMS)使用的专有二进制文件格式;PyGDX使用[GDX API]的Python绑定(http://www.gams.com/dd/docs/api/expert-level/gdxqdrep.html)。
由Geoff Leyland(https://github.com/geoff leyland/py-gdx)开发,该版本利用[xarray](http://xarray.py data.org)提供标记的数据结构,这些数据结构可以很容易地用[numpy]操作(http://www.numpy.org)进行计算和绘图。
**文档**可在http://pygdx.readthedocs.org上获得,根据github存储库的内容自动构建。
pygdx是在**mit许可证**(请参阅“许可证”)下提供的。
蚱蜢/;
set t‘colors’/
r red
o orange
y yellow
g green
b blue
i indigo
v violet
/;
set u‘countries’/
ca canada
u s united states
cn china
jp japan
/;
p(s,t,u)参数民族主义的计数,五颜六色的动物'
/set.s.set.t.set.u 1/;
execute_unload'example.gdx'
``````````
>可以通过以下方式访问参数“p”:导入gdx
>;>;f=gdx.file('example.gdx')
>;>;f.p[:,'y','c a']
a 1
b1
c1
d1
e1
f1
g1
d类型:float64
`````