Skip to main content

Get Latest Atmospheric Model Data | Analyse | Visualize Easily

Project description

visjobs

Visjobs offers plotting effective variables in effective way using atmospheric models.

Installation

Some example about how to use Visjobs

  • WE WILL BE PLOTTING THE 500MB GEOPOTENTIAL HEIGHT | MEAN SEA LEVEL PRESSURE FOR NORTH AMERICA
  • importing dependencies.
from visjobs.datas import get_data
from visjobs.visualize import draw_map
import xarray as xr
import numpy as np

  • Getting the data using pick_data function.
  • Function pick_data():
    • hour=06 --> means the 06Z run of the model
    • latest=True --> means the latest output with 06Z run
    • model='GFS' --> means GFS data is choosen ['NAM' is also available]
    • hourly=False --> means GFS 3 hourly data is asked [not valid for NAM]
data = get_data.pick_data(hour='06',latest=True,model='GFS',
			  hourly=False)
  • Note that data taken is xarray DataArray.

  • In below using xarray DataArray, we are deciding the interval of desired latitude and longitude.
  • Returns a dictionary.
  • Function pick_area():
    • data --> Xarray data must be given
    • total_process --> means until which time step the data is asked
    • interval --> means until the asked time step, with what interval time step will go
    • init_time --> means the initial time step of the data
    • list_of_vars --> the desired variables in list [str]
    • list_of_areas --> the desired areas in list [str]
    • pr_height --> the desired pressure heights in list [int]
time, area_dict = get_data.pick_area(data, total_process=2, interval=1, init_time=0, 
				     list_of_vars=['prmslmsl','hgtprs'],pr_height=['500'],
                          	     list_of_areas=['northamerica','europe'])
  • Let's say I want to plot 500mb heights and mslp for North America.
  • In the upper part I got the relevant data using pick_area function.
  • Now assign each single data from the whole dictionary.
press = np.divide(area_dict['northamerica'][0], 100)
heightprs = area_dict['northamerica'][1]
  • Choosing the desired plot size.
from pylab import rcParams
rcParams['figure.figsize'] = 21, 24
  • In below using height_pressure function we will plot 500mb Height-Pressure graphic
  • Function height_pressure():
    • time --> the loop initiated from the init_time indicated above function until the 'time'
    • press --> xarray input for pressure
    • heightprs --> xarray input for height
    • pr_height --> the desired pressure height
    • place --> the area which the user wants to plot
    • save_where --> where to save the figure
    • breaking --> if True, the function will stop after one loop
    • title_on --> if True, the title must be introduced, default is False

      • if only the title_on = True, apply inputs below
    • owner_name = the box in the upper left corner of the plot
    • plot_main_tite --> main title that is going to be plotted in string
    • tl1, tl2, tl3, tll4, tl5 --> set the title's placement [a,b] (int list)
draw_map.height_pressure(time, press, heightprs ,pr_height='500', place='northamerica',
                         save_where=r'height_prs{}.png',
			 breaking=True, title_on=True ,owner_name='Kutay DÖNMEZ',
			 plot_main_title=r'GFS 500mb Geopotential Height(m) | Presssure(mb)',
                         tl5=[0.0047, 0.97100], tl1=[0,1.032])

plot result: https://pasteboard.co/J1HhgsF.png

Project details


Download files

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

Source Distribution

visjobs-0.0.6.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

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

visjobs-0.0.6-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file visjobs-0.0.6.tar.gz.

File metadata

  • Download URL: visjobs-0.0.6.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.1.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.8.5

File hashes

Hashes for visjobs-0.0.6.tar.gz
Algorithm Hash digest
SHA256 f737ab9f3f9853c5fd3b12c267d0e0f53f986a04e4bd6277d52cf890435393b3
MD5 1e85244e1f9c0a499224770d4a50c3ff
BLAKE2b-256 43c4bdff9aabe6153ba418c4e693b40d5814cb91138fbc25be68107eb80a0055

See more details on using hashes here.

File details

Details for the file visjobs-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: visjobs-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.1.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.8.5

File hashes

Hashes for visjobs-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 bd33ccbba546021560007ad5fde2937e350fe956c15432a7e8f84dce82e4bcf3
MD5 9609d774f1ebf14bc1c020686b6c33ec
BLAKE2b-256 5434e721c7f78b4388b99940c5965655e18ba779a9cbfbcd5ab4613175efe2d0

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