cmaqsatproc.readers.iasi package

Module contents

class cmaqsatproc.readers.iasi.IASI_NH3[source]

Bases: satellite

IASI Ammonia Processor * bbox subsets each pixel * valid = (nh3_total_column > -999) & (AMPM == 0) * geometry is a 0.1 degree buffer * pixel_area = diameter assumed to be 0.1 degree, which is approximately

the 12 km discussed in Clerbaux (doi: 10.5194/acp-9-6041-2009).

  • weights = area

classmethod cmaq_process(qf, l3, satellite='metop_am')[source]

Process CMAQ as though it were observed by IASI, which is simply based on the overpass time.

Parameters:
  • qf (xarray.Dataset) – CMAQ file that has composition (e.g., NH3)

  • satl3f (xarray.Dataset) – Output from to_level3, paths_to_level3, or cmr_to_level3 with as_dataset=True (the default).

  • satellite (str) – Key for satellite overpass metop_am or metop_pm.

Returns:

overf – An overpass file with satellite-like CMAQ.

Return type:

xr.DataArray

classmethod open_dataset(path, bbox=None, **kwargs)[source]
Parameters:
  • path (str) – Path to a IASI_NH3 file

  • bbox (iterable) – swlon, swlat, nelon, nelat in decimal degrees East and North

  • kwargs (mappable) – Passed to xarray.open_dataset

Returns:

sat – Satellite processing instance

Return type:

IASI_NH3

to_dataframe(*varkeys, valid=True, geo=False, default_keys=False)[source]
Parameters:
  • varkeys (iterable) – Keys to use in the dataframe. Defaults to class._defaultkeys that is class specific

  • valid (bool) – If true, only return valid pixels.

  • geo (bool) – Add geometry to output a geopandas.GeoDataFrame

Returns:

df

Return type:

pandas.DataFrame or geopandas.GeoDataFrame