Skip to main content

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

Project description

https://pypip.in/version/createcloudmap/badge.svg https://pypip.in/py_versions/createcloudmap/badge.svg https://pypip.in/download/createcloudmap/badge.svg

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.1.zip (36.9 kB view details)

Uploaded Source

CreateCloudMap-0.6.1.tar.gz (31.8 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.1.win-amd64.exe (279.8 kB view details)

Uploaded Source

CreateCloudMap-0.6.1.win32.exe (250.9 kB view details)

Uploaded Source

CreateCloudMap-0.6.1-py3.4.egg (24.1 kB view details)

Uploaded Egg

CreateCloudMap-0.6.1-py3.3.egg (24.3 kB view details)

Uploaded Egg

CreateCloudMap-0.6.1-py2.7.egg (23.7 kB view details)

Uploaded Egg

File details

Details for the file CreateCloudMap-0.6.1.zip.

File metadata

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

File hashes

Hashes for CreateCloudMap-0.6.1.zip
Algorithm Hash digest
SHA256 ba758707e9220260784347b90660b8c9e49b1a8cef32b1d8517181ad09e610f7
MD5 dcb521a471241f0578eb209b259cb615
BLAKE2b-256 b161702caf967918fae383a93146955e344a5ed3cda64e731efc449116cdfa3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for CreateCloudMap-0.6.1.tar.gz
Algorithm Hash digest
SHA256 67aee487ea3b12ec463faccf79095ed6a80b1161c8ec52bcbc5d31c006c0c3e7
MD5 a59af939c0e8b750ab8e9338287cf83b
BLAKE2b-256 4b7de3a23e6d5de41ee7cb40d5479873551a6126f08ade0c507a25402cb11907

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for CreateCloudMap-0.6.1.win-amd64.exe
Algorithm Hash digest
SHA256 c545ee3a82b17595ebdd6dd739128be98a64db30e579d705a2d85a39017abbf1
MD5 f5d0362eee60e9008b8d23784f81acdc
BLAKE2b-256 ee7214381460db698bea7d637e6542a819e225c62601d150bbe149df67fa99bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for CreateCloudMap-0.6.1.win32.exe
Algorithm Hash digest
SHA256 c83830125c8dc4211733ba6422bae4e651245bf01a545630b4c7d0abeec9c221
MD5 87ee44ba90bc6279c1333ef9c50b3037
BLAKE2b-256 1eb0ece6b1b322fb3d1c6ac2cd2abbc673e697cd5b675b9112ab5e1679524127

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for CreateCloudMap-0.6.1-py3.4.egg
Algorithm Hash digest
SHA256 71df9af0967403d401fced723deba5cb2528400050341bb628f5e228fbd226e2
MD5 5e4396c29fcef1d2d8d2c8e559cf01c8
BLAKE2b-256 bb3a2dc7ad4b856a2aa3e6e6d6efe2d61a860533a4e510c6a6277378c97f3d66

See more details on using hashes here.

File details

Details for the file CreateCloudMap-0.6.1-py3.3.egg.

File metadata

File hashes

Hashes for CreateCloudMap-0.6.1-py3.3.egg
Algorithm Hash digest
SHA256 1335c7d0a0f3e37e7146e3bca0818f2646e4f97a7c5ef0b69ac84b3a327be7af
MD5 509cd22195820068f623699474664454
BLAKE2b-256 58ae5ebf7eb4433e560d0412912f7cb1172de9cfd35e6b63831cb97a2a9dbb4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for CreateCloudMap-0.6.1-py2.7.egg
Algorithm Hash digest
SHA256 15f48241a673fdb24ca8a061d294a4a8dd4b5d30c6b482ce598cd1d4789ea673
MD5 c35c1f79faf98fecf29607f9a15d6546
BLAKE2b-256 1aea35cd2a71d7998bb915ad4f9239469af75999756fed53ccc1c7b2f4f89ef0

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