In [3]:
import os
%matplotlib inline
%load_ext autoreload
%autoreload 2


The autoreload extension is already loaded. To reload it, use:
  %reload_ext autoreload

In [8]:
os.chdir('/Users/thorey/Documents/repos/pdsimage/')
from pdsimage.Structure import *
from pdsimage.PDS_Extractor import *
imagep = '/Users/thorey/Documents/repos/pdsimage/docs/source/_static'

In [9]:
region = Area(120,-60,50)
region.ppdlola = 64
region.ppdwac = 64
region.overlay(True, os.path.join(imagep,'region.png'))


No overlap - Processing should be quick
PDS FILES used are in: /Users/thorey/Documents/repos/pdsimage/pdsimage/PDS_FILE
No overlap - Processing should be quick
PDS FILES used are in: /Users/thorey/Documents/repos/pdsimage/pdsimage/PDS_FILE

In [10]:
region.change_window(25)
region.overlay(True, os.path.join(imagep,'region_zoomed_in.png'))


No overlap - Processing should be quick
PDS FILES used are in: /Users/thorey/Documents/repos/pdsimage/pdsimage/PDS_FILE
No overlap - Processing should be quick
PDS FILES used are in: /Users/thorey/Documents/repos/pdsimage/pdsimage/PDS_FILE

In [11]:
region.change_window(50)
midlon = (region.window[0]+region.window[1])/2.0
midlat = (region.window[2]+region.window[3])/2.0
profile1 = (midlon,midlon,region.window[2],region.window[3]) #Vertical profile
profile2 = (region.window[0],region.window[1],midlat,midlat) #Horizontal profile
region.draw_profile((profile1,profile2,region.window,), save = True, name = os.path.join(imagep,'region_profile.png'))


No overlap - Processing should be quick
PDS FILES used are in: /Users/thorey/Documents/repos/pdsimage/pdsimage/PDS_FILE
(119.99999999999999, 119.99999999999999, -61.695438908927485, -58.387346889175603)
No overlap - Processing should be quick
PDS FILES used are in: /Users/thorey/Documents/repos/pdsimage/pdsimage/PDS_FILE
No overlap - Processing should be quick
PDS FILES used are in: /Users/thorey/Documents/repos/pdsimage/pdsimage/PDS_FILE
(116.69650717752062, 123.30349282247936, -60.041392899051544, -60.041392899051544)
No overlap - Processing should be quick
PDS FILES used are in: /Users/thorey/Documents/repos/pdsimage/pdsimage/PDS_FILE
No overlap - Processing should be quick
PDS FILES used are in: /Users/thorey/Documents/repos/pdsimage/pdsimage/PDS_FILE
(116.69650717752062, 123.30349282247936, -61.695438908927485, -58.387346889175603)
No overlap - Processing should be quick
PDS FILES used are in: /Users/thorey/Documents/repos/pdsimage/pdsimage/PDS_FILE

In [25]:
Copernicus =Crater('name','Copernicus')

In [26]:
Copernicus.ppdlola = 64
Copernicus.ppdwac = 64
Copernicus.overlay(True, os.path.join(imagep,'Copernicus.png'))


No overlap - Processing should be quick
PDS FILES used are in: /Users/thorey/Documents/repos/pdsimage/pdsimage/PDS_FILE
No overlap - Processing should be quick
PDS FILES used are in: /Users/thorey/Documents/repos/pdsimage/pdsimage/PDS_FILE

In [27]:
M13 = Dome('name','M13')
M13.ppdlola = 64
M13.ppdwac = 64
M13.overlay(True, os.path.join(imagep,'M13.png'))


No overlap - Processing should be quick
PDS FILES used are in: /Users/thorey/Documents/repos/pdsimage/pdsimage/PDS_FILE
No overlap - Processing should be quick
PDS FILES used are in: /Users/thorey/Documents/repos/pdsimage/pdsimage/PDS_FILE

In [ ]: