gcpy.raveller_1D

Module containing functions to generate a satellite track file for cubed-sphere grids.

Functions

create_track_func(args)

Creates a satellite track file for a cubed-sphere grid.

unravel_func(args)

Unpacks a satellite track file onto a cubed-sphere grid.

gcpy.raveller_1D.create_track_func(args)[source]

Creates a satellite track file for a cubed-sphere grid.

Parameters:

args (argparse.Namespace) –

Parsed command-line arguments with the following attributes:

cs_resint

Cubed-sphere grid resolution.

sg_paramslist of float

Grid stretching parameters [stretch-factor, target longitude, target latitude].

overpass_timestr

Satellite overpass time in “HH:MM” format.

orbits_per_dayint

Number of satellite orbits per day.

directionstr

Direction of orbit (“ascending” or “descending”).

ostr

Output filename.

Notes

Writes a NETCDF4_CLASSIC file containing longitude, latitude, and time coordinates sorted along the satellite track dimension.

gcpy.raveller_1D.unravel_func(args)[source]

Unpacks a satellite track file onto a cubed-sphere grid.

Parameters:

args (argparse.Namespace) –

Parsed command-line arguments with the following attributes:

trackstr

Path to the satellite track file.

istr

Path to the input 1D diagnostic file.

ostr

Output filename.

Notes

Aligns the 1D diagnostic output with the satellite track by finding the optimal time shift, then unstacks the track index back onto the cubed-sphere (nf, Ydim, Xdim) grid dimensions.