This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Introduction

dgsamples is a package of sample image chips and vector files that can be used for unit testing without having to maintain test data in each code base that needs to be tested.

Quick Start

import dgsamples

# The code automatically discovers the data available and puts it on a
# bunch object called samples which can be accessed directly:
dgsamples.allsamples   # This will pretty print the contents of the bunch

# Finer grained access to the samples can be achieved by:
dgsamples.wv2_longmont_1k.files
# The above will produce a path similar to:
# /path/to/dgsampledata/wv2_longmont_1k/...M2AS-053792616010_01_P001.TIL'
# /path/to/dgsampledata/wv2_longmont_1k/...P2AS-053792616010_01_P001.TIL'

# If the samples have a filename_map.PVL file provided, there will also be
# sensor specific shotcuts available in an OrderedBunch object:
dgsamples.wv2_longmont_1k.ms
# The above will produce a path to the sensor .TIL file:
# /path/to/dgsampledata/wv2_longmont_1k/...M2AS-053792616010_01_P001.TIL'

# The .TIL file can be ingested with geoio as:
import geoio
img = geoio.DGImage(dgsamples.wv2_longmont_1k.ms)

# However, these links are to real files on disk and can be read with
# an appropriate application.
from osgeo import gdal
obj = gdal.Open(dgsamples.bayou_chip.extract_test)

# or
import fiona
s = fiona.open(dgsamples.bayou_vectors.poly)

# The sample data can also be retrieved through the "file" bunch key:
dgsamples.bayou_vectors.files
# The above will produce something similar to:
# ['/path/to/dgsampledata/.../extract_test_point.shp',
#  '/path/to/dgsampledata/.../extract_test_poly.shp']

Adding Data Sets

New data can be added directly into the “dgsamples” package and will be dynamically discovered on import. The dynamic discovery code uses the following logic when determining what type of data exists in a directory:

if ".TIL found":
    "return all .TILs and stop"
elif ".TIF found" :
    "return all .TIFs and stop"
elif ".shp or .json found" :
    "return all .shp and .json then stop"

If a file named “filename_map.PVL” is added to a sample directory, the key/ value pairs in the file will be used to map files to an key entry on the returned OrderedBunch object.

If a file named “notes.txt” is present in the sample directory, the content will be added to a “notes” entry on the OrderedBunch object.

Release History

Release History

1.0.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
dgsamples-1.0.3-py2-none-any.whl (32.4 MB) Copy SHA256 Checksum SHA256 py2 Wheel Jul 27, 2016
dgsamples-1.0.3.tar.gz (32.4 MB) Copy SHA256 Checksum SHA256 Source Jul 27, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting