liste

Bonjour et bienvenue dans mon site ! Willkommen auf meiner Seite! welcome in my homepage! http://assistance-en-sig.blogspot.com/ SIG ; Bases de données ; Géomatique; Python; ArcGIS; QGIS;

recherche

Showing posts with label import. Show all posts
Showing posts with label import. Show all posts

Wednesday, May 8, 2013

download GOSAT importer


download
GOSAT importer

























This extenstion is to import GOSAT data (HDF5 format). Currently this extension only supports ENVI Classic environment.
Support products: CAI L1B, CAI L1B+ (supports Polar Stereo), Cloud Flag, NDVI
The data (free) is available from this link below.
https://data.gosat.nies.go.jp/gateway/gateway/MenuPage/open.doopen.do?lang=en









[日本語]
ENVIのいぶき(GOSAT)データ対応の拡張プログラムです。現在は、ENVI Classic 環境のみでの対応となります。
サポートプロダクト: CAI L1B、 CAI L1B+ (ポーラーステレオ対応)、 Cloud Flag、 NDVI
いぶきデータは以下のサイトより無償で入手することが可能です(ユーザー登録が必要)。
https://data.gosat.nies.go.jp/gateway/gateway/MenuPage/open.doopen.do?lang=ja.

Saturday, February 16, 2013

How to define points in a python script



Here is a little script for you to start.

import geompy,random,math

nPts = 240
print "Creating %s points"%nPts
for i in range(nPts):
    x = random.random()
    y = random.random()
    z = random.random()
    v = geompy.MakeVertex(x, y, z)
    geompy.addToStudy(v, "Vertex_%d"%(i+1) )
print "Done"

print "Creating a spiral"
nbPeriods=2
period=1e-2
t=0
step=period/50
ptList = []
while (t<=2*math.pi*period):
    x=math.cos(2*math.pi*t/period)
    y=math.sin(2*math.pi*t/period)
    z=t*50
    t += step
    v = geompy.MakeVertex(x, y, z)
    geompy.addToStudy(v, "Helix_%f"%t )
    ptList.append(v)
polyline = geompy.MakePolyline(ptList)
interpol = geompy.MakeInterpol(ptList)
geompy.addToStudy(polyline, "polyline" )
geompy.addToStudy(interpol, "interpol" )
print "Done"


Here I create 240 points in the for loop. Those are random points but you can use this loop to read a file which contains your points.
Then I calculate the coordinates of points on a helix and I use them to create points. Finally I use those points to create a curve (well 2: a polyline and an interpolate).

Hope this will help you.