Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

ntlMisc

extract_monthly_ntl(aoi, out_folder, sel_files=[])

Description:

Extract monthly nighttime lights imagery from AWS S3 for an area of interest and save to an output folder.

Parameters:

Returns:


read_raster_box(curRaster, geometry, bandNum=1)

Description:

Read a section of a rasterio object with a specified geometry.

Parameters:

Returns:


calc_annual(df, extent, agg_method='MEAN')

Description:

Combine monthly nighttime lights images into an annual composite.

Parameters:


generate_annual_composites(aoi, agg_method='MEAN', sel_files=[], out_folder='')

Description:

Collapse several monthly nighttime lights images into an annual composite.

Parameters:

Returns:


map_viirs(cur_file, out_file='', class_bins=[-10, 0.5, 1, 2, 3, 5, 10, 15, 20, 30, 40, 50], text_x=0, text_y=5, dpi=100)

Description:

Map VIIRS nighttime lights imagery and optionally create an output image.

Parameters:

Returns:


run_zonal(inD, ntl_files=[], minval=0.1, verbose=False, calc_sd=True)

Description:

Run zonal statistics against a series of nighttime lights files.

Parameters: