geowatch.demo.nitf_demodata module

Access sample NITF images from [1] for testing and demo purposes.

References

Note

The data provided is no longer available, but a mirror exists on IPFS and the wayback machine.

https://web.archive.org/web/20190501060607/http://www.gwg.nga.mil/ntb/baseline/software/testfile/Nitfv2_1/scen_2_1.html

# IPFS folder containing all demo NITFs QmWApzbAX2W8cobWqKPjsM1kj82TvMGvyZ75PnbUeNHktW demo_nitf

ipfs pin add –progress –name demo_nitf_data QmWApzbAX2W8cobWqKPjsM1kj82TvMGvyZ75PnbUeNHktW ipfs pin ls –type=”recursive” –names

geowatch.demo.nitf_demodata.grab_nitf_fpath(key=None)[source]
Parameters:

key (str | None) – the name the nitf to grab. Use grab_nitf_fpath.keys() to list available keys. If None, DEFAULT_KEY is used.

Example

>>> # xdoctest: +SKIP
>>> # xdoctest: +REQUIRES(--network)
>>> from geowatch.demo.nitf_demodata import *  # NOQA
>>> fpath = grab_nitf_fpath()
>>> # xdoctest: +REQUIRES(--show)
>>> import kwplot
>>> import kwimage
>>> kwplot.autompl()
>>> data = kwimage.imread(fpath)
>>> kwplot.imshow(data)
>>> kwplot.show_if_requested()