AIRS Module

Get Data directly from AIRS aboard NASA’s Aqua Satellite.

pyearthdata.airs.rel_humidity(layer, tilematrix, tilecol, tilerow, date, format='png', **kwargs)[source]

Get Relative Humidity

Parameters:
  • layer – [string] choose between AIRS_L2_RelativeHumidity_500hPa_Night AIRS_L2_RelativeHumidity_500hPa_Day AIRS_L2_RelativeHumidity_700hPa_Night AIRS_L2_RelativeHumidity_500hPa_Day AIRS_L2_RelativeHumidity_850hPa_Night AIRS_L2_RelativeHumidity_850hPa_Day AIRS_L2_Surface_Relative_Humidity_Day AIRS_L2_Surface_Relative_Humidity_Night

  • tilematrix – [integer]

  • tilerow – [integer]

  • tilecol – [integer]

  • date – [date string] format YYYY-MM-DD

  • format – [string] png/jpeg formats

Returns:

An Image

Usage:

# fetch tile as image/png
response = airs.rel_humidty(
            layer="AIRS_L2_RelativeHumidity_500hPa_Night", 
            tilecol=1,
            tilematrix=3, 
            tilerow=1, 
            date="2011-10-08")
with open('img.png', 'wb') as out_file:
    shutil.copyfileobj(response.raw, out_file)
del response
pyearthdata.airs.co(layer, tilematrix, tilecol, tilerow, date, format='png', **kwargs)[source]

Get Carbon monoxide data

Parameters:
  • layer – [string] choose between AIRS_L2_Carbon_Monoxide_500hPa_Volume_Mixing_Ratio_Day AIRS_L2_Carbon_Monoxide_500hPa_Volume_Mixing_Ratio_Night

  • tilematrix – [integer]

  • tilerow – [integer]

  • tilecol – [integer]

  • date – [date string] format YYYY-MM-DD

  • format – [string] png/jpeg formats

Returns:

An Image

Usage:

# fetch tile as image/png
response = airs.co(
            layer="AIRS_L2_Carbon_Monoxide_500hPa_Volume_Mixing_Ratio_Day", 
            tilecol=1,
            tilematrix=3, 
            tilerow=1, 
            date="2011-10-08")
with open('img.png', 'wb') as out_file:
    shutil.copyfileobj(response.raw, out_file)
del response
pyearthdata.airs.dust(layer, tilematrix, tilecol, tilerow, date, format='png', **kwargs)[source]

Get dust score

Parameters:
  • layer – [string] AIRS_L2_Dust_Score_Day AIRS_L2_Dust_Score_Night

  • tilematrix – [integer]

  • tilerow – [integer]

  • tilecol – [integer]

  • date – [date string] format YYYY-MM-DD

  • format – [string] png/jpeg formats

Returns:

An Image

Usage:

# fetch tile as image/png
response = airs.dust(
            layer="AIRS_L2_Dust_Score_Day", 
            tilecol=1,
            tilematrix=3, 
            tilerow=1, 
            date="2011-10-08")
with open('img.png', 'wb') as out_file:
    shutil.copyfileobj(response.raw, out_file)
del response
pyearthdata.airs.out_long_rad(layer, tilematrix, tilecol, tilerow, date, format='png', **kwargs)[source]

Get Outgoing Longwave Radiation

Parameters:
  • layer – [string] AIRS_L3_All_Sky_Outgoing_Longwave_Radiation_Daily_Day AIRS_L3_All_Sky_Outgoing_Longwave_Radiation_Daily_Night

  • tilematrix – [integer]

  • tilerow – [integer]

  • tilecol – [integer]

  • date – [date string] format YYYY-MM-DD

  • format – [string] png/jpeg formats

Returns:

An Image

Usage:

# fetch tile as image/png
response = airs.out_long_rad(
            layer="AIRS_L3_All_Sky_Outgoing_Longwave_Radiation_Daily_Day", 
            tilecol=1,
            tilematrix=3, 
            tilerow=1, 
            date="2011-10-08")
with open('img.png', 'wb') as out_file:
    shutil.copyfileobj(response.raw, out_file)
del response
pyearthdata.airs.precipitation(layer, tilematrix, tilecol, tilerow, date, format='png', **kwargs)[source]

Get precipitation data

Parameters:
  • layer – [string] AIRS_Precipitation_Day AIRS_Precipitation_Night

  • tilematrix – [integer]

  • tilerow – [integer]

  • tilecol – [integer]

  • date – [date string] format YYYY-MM-DD

  • format – [string] png/jpeg formats

Returns:

An Image

Usage:

# fetch tile as image/png
response = airs.precipitation(
            layer="AIRS_Precipitation_Day", 
            tilecol=1,
            tilematrix=3, 
            tilerow=1, 
            date="2011-10-08")
with open('img.png', 'wb') as out_file:
    shutil.copyfileobj(response.raw, out_file)
del response
pyearthdata.airs.so2(layer, tilematrix, tilecol, tilerow, date, format='png', **kwargs)[source]

Get sulfur dioxide data

Parameters:
  • layer – [string] AIRS_L2_Sulfur_Dioxide_Brightness_Temperature_Difference_Day AIRS_L2_Sulfur_Dioxide_Brightness_Temperature_Difference_Night AIRS_Prata_SO2_Index_Day AIRS_Prata_SO2_Index_Night

  • tilematrix – [integer]

  • tilerow – [integer]

  • tilecol – [integer]

  • date – [date string] format YYYY-MM-DD

  • format – [string] png/jpeg formats

Returns:

An Image

Usage:

# fetch tile as image/png
response = airs.so2(
            layer="AIRS_L2_Sulfur_Dioxide_Brightness_Temperature_Difference_Day", 
            tilecol=1,
            tilematrix=3, 
            tilerow=1, 
            date="2011-10-08")
with open('img.png', 'wb') as out_file:
    shutil.copyfileobj(response.raw, out_file)
del response
pyearthdata.airs.temp(layer, tilematrix, tilecol, tilerow, date, format='png', **kwargs)[source]

Get temperature data

Parameters:
  • layer – [string] AIRS_L2_Surface_Air_Temperature_Day AIRS_L2_Surface_Air_Temperature_Night AIRS_L2_Surface_Skin_Temperature_Day AIRS_L2_Surface_Skin_Temperature_Night AIRS_L2_Temperature_500hPa_Day AIRS_L2_Temperature_500hPa_Night AIRS_L2_Temperature_700hPa_Day AIRS_L2_Temperature_700hPa_Night AIRS_L2_Temperature_850hPa_Day AIRS_L2_Temperature_850hPa_Night

  • tilematrix – [integer]

  • tilerow – [integer]

  • tilecol – [integer]

  • date – [date string] format YYYY-MM-DD

  • format – [string] png/jpeg formats

Returns:

An Image

Usage:

# fetch tile as image/png
response = airs.temp(
            layer="AIRS_L2_Surface_Air_Temperature_Day", 
            tilecol=1,
            tilematrix=3, 
            tilerow=1, 
            date="2011-10-08")
with open('img.png', 'wb') as out_file:
    shutil.copyfileobj(response.raw, out_file)
del response
pyearthdata.airs.h2o_vapour(tilematrix, tilecol, tilerow, date, format='png', layer='AMSR2_Columnar_Water_Vapor_Day', **kwargs)[source]

Get water vapour data

Parameters:
  • layer – [string] AMSR2_Columnar_Water_Vapor_Day

  • tilematrix – [integer]

  • tilerow – [integer]

  • tilecol – [integer]

  • date – [date string] format YYYY-MM-DD

  • format – [string] png/jpeg formats

Returns:

An Image

Usage:

# fetch tile as image/png
response = airs.h2o_vapour(
            layer="AMSR2_Columnar_Water_Vapor_Day", 
            tilecol=1,
            tilematrix=3, 
            tilerow=1, 
            date="2011-10-08")
with open('img.png', 'wb') as out_file:
    shutil.copyfileobj(response.raw, out_file)
del response
pyearthdata.airs.map_underlay(tilematrix, tilecol, tilerow, date, format='jpeg', layer='BlueMarble_NextGeneration', **kwargs)[source]

Get earth satellite view underlaying the data.

Parameters:
  • tilematrix – [integer]

  • tilerow – [integer]

  • tilecol – [integer]

  • date – [date string] format YYYY-MM-DD

  • format – [string] png/jpeg formats

Returns:

An Image

Usage:

# fetch background earth view tile as image/jpeg
response = airs.map_underlay(
            tilematrix=2,
            tilecol=2,
            tilerow=0, 
            date="2011-10-08")
with open('img.png', 'wb') as out_file:
    shutil.copyfileobj(response.raw, out_file)
del response