Skip to main content

Create a cloud map for xplanet using satellite images from the Dundee Satellite Receiving Station

Project description

Python script to create a cloud map for xplanet using satellite images from the Dundee Satellite Receiving Station, Dundee University, UK. This script can also be installed by pip from pypi.

xplanet can use a cloud map to make the earth look more pretty.

There is a free service which create one such cloud map per day. Due to a temporary unavailability of that service this script create_map was developed to automatically download the necessary geostationary images from the Dundee Satellite Receiving Station, Dundee University, UK. To use this service you need an account there (which is free). Also a new cloud map can be created every three hours.

Set your login information in the configuration file (default name for UNIX-like systems: $HOME/.CreateCloudMap/CreateCloudMap.ini, for Windows: %HOME%\.CreateCloudMap\CreateCloudMap.ini):

[Download]
username = user
password = secret
tempdir = images
# Use one of the following for resolution: low, medium, high
resolution = medium
purge = false

[xplanet]
destinationdir = xplanet/images
destinationfile = clouds_2048.jpg
width = 2048
height = 1024

[processing]
nprocs = 1
# use either pyresample or cartopy
projection = pyresample

If the configuration file already exists, a new version is copied to CreateCloudMap.ini.new to not overwrite the login data. The old config file should work after an update, because default values are used for newly introduced options.

tempdir specifies the directory where the downloaded images (and if enabled by the command line switch --debug or -d) intermediate debug images are stored. destinationdir specifies the directory where the output destinationfile is saved.

resolution can be set to low, medium or high to determine the resolution of the downloaded satellite images.

If purge is set to true old satellite images will be deleted which are not used to draw the current cloud map.

width and height set the dimensions of the cloud map in destinationfile.

nprocs specifies the number of processors to be used for the processing of the satellite images. If this number is larger than 1 the multiprocessing library will be used to create separate processes communicating sending back their results by queues.

projection specifies the Python library used for projecting the geostationary images onto a flat map. Possible values are pyresample and cartopy. pyresample is the standard value and this library is set as dependency, so it is installed during the installation of CreateCloudMap (if pip is used to install it). If cartopy is used, this library must be installed manually. cartopy is (currently much) slower than pyresample.

To see all command line options of the script use --help:

$ create_map --help
usage: create_map [-h] [-d] [-c FILE] [-f]

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug           store intermediate results
  -c FILE, --conf_file FILE
                        Specify config file
  -f, --force           Force to recreate cloud map

Dependencies

To automatically install cartopy use the following command line for pip:

pip install CreateCloudMap[cartopy]

For the debug output to work with the pyresample projection the libraries matplotlib and basemap have to be installed. This can be done either manually or by giving the extra requirement option [debug_pyresample] when using pip:

pip install CreateCloudMap[debug_pyresample]

For the debug output to work with the cartopy projection the library matplotlib is necessary. It can be automatically installed by using pip:

pip install CreateCloudMap[cartopy,debug_cartopy]

(So if no extra dependency is given the pyresample library will be installed (if it has not been already installed) and no debug output is possible)

References

A nice description of the concepts forming the basis of this program can be found at this blog post.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

CreateCloudMap-0.6.0.zip (36.8 kB view details)

Uploaded Source

CreateCloudMap-0.6.0.tar.gz (31.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

CreateCloudMap-0.6.0.win-amd64.exe (279.4 kB view details)

Uploaded Source

CreateCloudMap-0.6.0.win32.exe (250.6 kB view details)

Uploaded Source

CreateCloudMap-0.6.0-py3.4.egg (24.2 kB view details)

Uploaded Egg

CreateCloudMap-0.6.0-py2.7.egg (23.8 kB view details)

Uploaded Egg

File details

Details for the file CreateCloudMap-0.6.0.zip.

File metadata

  • Download URL: CreateCloudMap-0.6.0.zip
  • Upload date:
  • Size: 36.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for CreateCloudMap-0.6.0.zip
Algorithm Hash digest
SHA256 e760b8fdf96a9eb10badd3fc738593e01e76f7a417519cd93e346adadaa68196
MD5 7db1ce87c5b0459a406e7c674fccf2ad
BLAKE2b-256 5dd8e117dd522203eeb4fd56999324181f2e32469fefc908de349c4195aba62b

See more details on using hashes here.

File details

Details for the file CreateCloudMap-0.6.0.tar.gz.

File metadata

File hashes

Hashes for CreateCloudMap-0.6.0.tar.gz
Algorithm Hash digest
SHA256 13ed235438a33f93f2f90ff91f44ea8558fa5af292b58d014d2bbdbed401013c
MD5 adcbda8c99776be8ffd33779dc6215ca
BLAKE2b-256 dd99542eeec1afd7adab19a505c3227911bf71f4163c95cc45cc9b6c04cc84a9

See more details on using hashes here.

File details

Details for the file CreateCloudMap-0.6.0.win-amd64.exe.

File metadata

File hashes

Hashes for CreateCloudMap-0.6.0.win-amd64.exe
Algorithm Hash digest
SHA256 9729fe3e09a6937ad6a9fc7d813b39fb19d172265034e41ffa2158143af7ba5a
MD5 d3c038b6c86eb6bbee3e3f4cbd2f48c8
BLAKE2b-256 cac745691d6e500a93168df17953164514bacc5d188034be21ca9fc6d791a99c

See more details on using hashes here.

File details

Details for the file CreateCloudMap-0.6.0.win32.exe.

File metadata

File hashes

Hashes for CreateCloudMap-0.6.0.win32.exe
Algorithm Hash digest
SHA256 5ba4a38816a248db311804e934aa2661f9ce2cce51862df0ad0660e1f68aa66e
MD5 31f6f02506cd28bfe93ce958bb1fcd30
BLAKE2b-256 53d44bd97a0fa4418553234c3ee3c83a5c6adc589d77e6e14e017503c123ffc3

See more details on using hashes here.

File details

Details for the file CreateCloudMap-0.6.0-py3.4.egg.

File metadata

File hashes

Hashes for CreateCloudMap-0.6.0-py3.4.egg
Algorithm Hash digest
SHA256 cdad461bdb3339ab0315fad59816754e1748c04938c679a37774d0feb109ee00
MD5 7d579025ae6afb3cfce21751505d7e6e
BLAKE2b-256 5a15167f2e6951acb1f8d303603f87fd54e8917817a4b4248a1056cf60807d09

See more details on using hashes here.

File details

Details for the file CreateCloudMap-0.6.0-py2.7.egg.

File metadata

File hashes

Hashes for CreateCloudMap-0.6.0-py2.7.egg
Algorithm Hash digest
SHA256 ee7af18264f3586d9a403a7d9b3a87c3fdf551b3deaa5ddb339269953a1bba5c
MD5 43405288555e167ab87268a3960517af
BLAKE2b-256 213657a04dff59610f92ff280b070905a7abde42dee768e02600842eb0cd2a87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page