|
MISR Toolkit
1.5.1
|
#include "MisrError.h"#include "MisrProjParam.h"#include "MisrSetRegion.h"#include "MisrFileQuery.h"Go to the source code of this file.
Data Structures | |
| struct | MTKt_GeoBlock |
| Geographic Block Coordinates. More... | |
| struct | MTKt_BlockCorners |
| Block Corners. More... | |
Macros | |
| #define | MTKT_GEOBLOCK_INIT |
| #define | MTKT_BLOCKCORNERS_INIT { 0, 0, 0, { MTKT_GEOBLOCK_INIT }} |
Functions | |
| MTKt_status | MtkPathToProjParam (int path, int resolution_meters, MTKt_MisrProjParam *pp) |
| Get projection parameters. More... | |
| MTKt_status | MtkLatLonToSomXY (int path, double lat_dd, double lon_dd, double *som_x, double *som_y) |
| Convert decimal degrees latitude and longitude to SOM X, SOM Y. More... | |
| MTKt_status | MtkLatLonToSomXYAry (int path, int nelement, const double *lat_dd, const double *lon_dd, double *som_x, double *som_y) |
| Convert array of decimal degrees latitude and longitude to array of SOM X, SOM Y. More... | |
| MTKt_status | MtkSomXYToLatLon (int path, double som_x, double som_y, double *lat_dd, double *lon_dd) |
| Convert SOM X, SOM Y to decimal degrees latitude and longitude. More... | |
| MTKt_status | MtkSomXYToLatLonAry (int path, int nelement, const double *som_x, const double *som_y, double *lat_dd, double *lon_dd) |
| Convert array of SOM X, SOM Y to array of latitude, longitude. More... | |
| MTKt_status | MtkBlsToSomXY (int path, int resolution_meters, int block, float line, float sample, double *som_x, double *som_y) |
| Convert from Block, Line, Sample, to SOM Coordinates. More... | |
| MTKt_status | MtkBlsToSomXYAry (int path, int resolution_meters, int nelement, const int *block, const float *line, const float *sample, double *som_x, double *som_y) |
| Convert array from Block, Line, Sample, to SOM Coordinates. More... | |
| MTKt_status | MtkSomXYToBls (int path, int resolution_meters, double som_x, double som_y, int *block, float *line, float *sample) |
| Convert SOM X, SOM Y to block, line, sample. More... | |
| MTKt_status | MtkSomXYToBlsAry (int path, int resolution_meters, int nelement, const double *som_x, const double *som_y, int *block, float *line, float *sample) |
| Convert array of SOM X, SOM Y to array of block, line, sample. More... | |
| MTKt_status | MtkLatLonToBls (int path, int resolution_meters, double lat_dd, double lon_dd, int *block, float *line, float *sample) |
| Convert decimal degrees latitude and longitude to block, line, sample. More... | |
| MTKt_status | MtkLatLonToBlsAry (int path, int resolution_meters, int nelement, const double *lat_dd, const double *lon_dd, int *block, float *line, float *sample) |
| Convert array of decimal degrees latitude and longitude to array of block, line, sample. More... | |
| MTKt_status | MtkBlsToLatLon (int path, int resolution_meters, int block, float line, float sample, double *lat_dd, double *lon_dd) |
| Convert from Block, Line, Sample, to Latitude and Longitude in decimal degrees. More... | |
| MTKt_status | MtkBlsToLatLonAry (int path, int resolution_meters, int nelement, const int *block, const float *line, const float *sample, double *lat_dd, double *lon_dd) |
| Convert array from Block, Line, Sample, to Latitude and Longitude. More... | |
| MTKt_status | MtkPathBlockRangeToBlockCorners (int path, int start_block, int end_block, MTKt_BlockCorners *block_corners) |
| Compute block corner coordinates in decimal degrees of latitude and longitude for a given path and block range. Coordinates returned are with respect to the pixel center of the upper left corner, center and lower right corner of each block. More... | |
| MTKt_status | MtkPixelTime (MTKt_TimeMetaData time_metadata, double som_x, double som_y, char pixel_time[MTKd_DATETIME_LEN]) |
| Given SOM Coordinates compute pixel time. More... | |
| int | inv_init (int insys, int inzone, const double *inparm, int indatum, char *fn27, char *fn83, int *iflg, int(*inv_trans[])(double, double, double *, double *)) |
| int | for_init (int outsys, int outzone, const double *outparm, int outdatum, char *fn27, char *fn83, int *iflg, int(*for_trans[])(double, double, double *, double *)) |
| int | sominv (double y, double x, double *lon, double *lat) |
| int | somfor (double lon, double lat, double *y, double *x) |
| #define MTKT_BLOCKCORNERS_INIT { 0, 0, 0, { MTKT_GEOBLOCK_INIT }} |
Definition at line 47 of file MisrCoordQuery.h.
| #define MTKT_GEOBLOCK_INIT |
Definition at line 35 of file MisrCoordQuery.h.
| int for_init | ( | int | outsys, |
| int | outzone, | ||
| const double * | outparm, | ||
| int | outdatum, | ||
| char * | fn27, | ||
| char * | fn83, | ||
| int * | iflg, | ||
| int(*[])(double, double, double *, double *) | for_trans | ||
| ) |
| int inv_init | ( | int | insys, |
| int | inzone, | ||
| const double * | inparm, | ||
| int | indatum, | ||
| char * | fn27, | ||
| char * | fn83, | ||
| int * | iflg, | ||
| int(*[])(double, double, double *, double *) | inv_trans | ||
| ) |
| MTKt_status MtkBlsToLatLon | ( | int | path, |
| int | resolution_meters, | ||
| int | block, | ||
| float | line, | ||
| float | sample, | ||
| double * | lat_dd, | ||
| double * | lon_dd | ||
| ) |
Convert from Block, Line, Sample, to Latitude and Longitude in decimal degrees.
| [in] | path | Path |
| [in] | resolution_meters | Resolution |
| [in] | block | Block Number |
| [in] | line | Line |
| [in] | sample | Sample |
| [out] | lat_dd | Latitude Decimal Degrees |
| [out] | lon_dd | Longitude Decimal Degrees |
Definition at line 33 of file MtkBlsToLatLon.c.
| MTKt_status MtkBlsToLatLonAry | ( | int | path, |
| int | resolution_meters, | ||
| int | nelement, | ||
| const int * | block, | ||
| const float * | line, | ||
| const float * | sample, | ||
| double * | lat_dd, | ||
| double * | lon_dd | ||
| ) |
Convert array from Block, Line, Sample, to Latitude and Longitude.
| [in] | path | Path |
| [in] | resolution_meters | Resolution |
| [in] | nelement | Number of elements |
| [in] | block | Block |
| [in] | line | Line |
| [in] | sample | Sample |
| [out] | lat_dd | Latitude Decimal Degrees |
| [out] | lon_dd | Longitude Decimal Degrees |
Definition at line 39 of file MtkBlsToLatLonAry.c.
| MTKt_status MtkBlsToSomXY | ( | int | path, |
| int | resolution_meters, | ||
| int | block, | ||
| float | line, | ||
| float | sample, | ||
| double * | som_x, | ||
| double * | som_y | ||
| ) |
Convert from Block, Line, Sample, to SOM Coordinates.
| [in] | path | Path |
| [in] | resolution_meters | Resolution Meters |
| [in] | block | Block |
| [in] | line | Line |
| [in] | sample | Sample |
| [out] | som_x | SOM X |
| [out] | som_y | SOM Y |
Definition at line 33 of file MtkBlsToSomXY.c.
| MTKt_status MtkBlsToSomXYAry | ( | int | path, |
| int | resolution_meters, | ||
| int | nelement, | ||
| const int * | block, | ||
| const float * | line, | ||
| const float * | sample, | ||
| double * | som_x, | ||
| double * | som_y | ||
| ) |
Convert array from Block, Line, Sample, to SOM Coordinates.
| [in] | path | Path |
| [in] | resolution_meters | Resolution Meters |
| [in] | nelement | Number of elements |
| [in] | block | Block |
| [in] | line | Line |
| [in] | sample | Sample |
| [out] | som_x | SOM X |
| [out] | som_y | SOM Y |
Definition at line 39 of file MtkBlsToSomXYAry.c.
| MTKt_status MtkLatLonToBls | ( | int | path, |
| int | resolution_meters, | ||
| double | lat_dd, | ||
| double | lon_dd, | ||
| int * | block, | ||
| float * | line, | ||
| float * | sample | ||
| ) |
Convert decimal degrees latitude and longitude to block, line, sample.
| [in] | path | Path |
| [in] | resolution_meters | Resolution |
| [in] | lat_dd | Latitude |
| [in] | lon_dd | Longitude |
| [out] | block | Block number |
| [out] | line | Line |
| [out] | sample | Sample |
Definition at line 34 of file MtkLatLonToBls.c.
| MTKt_status MtkLatLonToBlsAry | ( | int | path, |
| int | resolution_meters, | ||
| int | nelement, | ||
| const double * | lat_dd, | ||
| const double * | lon_dd, | ||
| int * | block, | ||
| float * | line, | ||
| float * | sample | ||
| ) |
Convert array of decimal degrees latitude and longitude to array of block, line, sample.
| [in] | path | Path |
| [in] | resolution_meters | Resolution |
| [in] | nelement | Number of elements |
| [in] | lat_dd | Latitude |
| [in] | lon_dd | Longitude |
| [out] | block | Block number |
| [out] | line | Line |
| [out] | sample | Sample |
Definition at line 40 of file MtkLatLonToBlsAry.c.
| MTKt_status MtkLatLonToSomXY | ( | int | path, |
| double | lat_dd, | ||
| double | lon_dd, | ||
| double * | som_x, | ||
| double * | som_y | ||
| ) |
Convert decimal degrees latitude and longitude to SOM X, SOM Y.
| [in] | path | Path |
| [in] | lat_dd | Latitude |
| [in] | lon_dd | Longitude |
| [out] | som_x | SOM X |
| [out] | som_y | SOM Y |
Definition at line 38 of file MtkLatLonToSomXY.c.
| MTKt_status MtkLatLonToSomXYAry | ( | int | path, |
| int | nelement, | ||
| const double * | lat_dd, | ||
| const double * | lon_dd, | ||
| double * | som_x, | ||
| double * | som_y | ||
| ) |
Convert array of decimal degrees latitude and longitude to array of SOM X, SOM Y.
| [in] | path | Path |
| [in] | nelement | Number of elements |
| [in] | lat_dd | Latitude |
| [in] | lon_dd | Longitude |
| [out] | som_x | SOM X |
| [out] | som_y | SOM Y |
Definition at line 42 of file MtkLatLonToSomXYAry.c.
| MTKt_status MtkPathBlockRangeToBlockCorners | ( | int | path, |
| int | start_block, | ||
| int | end_block, | ||
| MTKt_BlockCorners * | block_corners | ||
| ) |
Compute block corner coordinates in decimal degrees of latitude and longitude for a given path and block range. Coordinates returned are with respect to the pixel center of the upper left corner, center and lower right corner of each block.
| [in] | path | Path |
| [in] | start_block | Start Block |
| [in] | end_block | End Block |
| [out] | block_corners | Longitude Decimal Degrees |
Definition at line 36 of file MtkPathBlockRangeToBlockCorners.c.
| MTKt_status MtkPathToProjParam | ( | int | path, |
| int | resolution_meters, | ||
| MTKt_MisrProjParam * | pp | ||
| ) |
Get projection parameters.
| [in] | path | Path |
| [in] | resolution_meters | Resolution |
| [out] | pp | Projection Parameters |
Definition at line 41 of file MtkPathToProjParam.c.
| MTKt_status MtkPixelTime | ( | MTKt_TimeMetaData | time_metadata, |
| double | som_x, | ||
| double | som_y, | ||
| char | pixel_time[MTKd_DATETIME_LEN] | ||
| ) |
Given SOM Coordinates compute pixel time.
Time Format: YYYY-MM-DDThh:mm:ss.ssssssZ (ISO 8601)
| [in] | time_metadata | Time metadata from L1B2 product file |
| [in] | som_x | SOM X |
| [in] | som_y | SOM Y |
| [out] | pixel_time | Pixel time |
Definition at line 41 of file MtkPixelTime.c.
| MTKt_status MtkSomXYToBls | ( | int | path, |
| int | resolution_meters, | ||
| double | som_x, | ||
| double | som_y, | ||
| int * | block, | ||
| float * | line, | ||
| float * | sample | ||
| ) |
Convert SOM X, SOM Y to block, line, sample.
| [in] | path | Path |
| [in] | resolution_meters | Resolution |
| [in] | som_x | SOM X |
| [in] | som_y | SOM Y |
| [out] | block | Block |
| [out] | line | Line |
| [out] | sample | Sample |
Definition at line 33 of file MtkSomXYToBls.c.
| MTKt_status MtkSomXYToBlsAry | ( | int | path, |
| int | resolution_meters, | ||
| int | nelement, | ||
| const double * | som_x, | ||
| const double * | som_y, | ||
| int * | block, | ||
| float * | line, | ||
| float * | sample | ||
| ) |
Convert array of SOM X, SOM Y to array of block, line, sample.
| [in] | path | Path |
| [in] | resolution_meters | Resolution |
| [in] | nelement | Number of elements |
| [in] | som_x | SOM X |
| [in] | som_y | SOM Y |
| [out] | block | Block |
| [out] | line | Line |
| [out] | sample | Sample |
Definition at line 39 of file MtkSomXYToBlsAry.c.
| MTKt_status MtkSomXYToLatLon | ( | int | path, |
| double | som_x, | ||
| double | som_y, | ||
| double * | lat_dd, | ||
| double * | lon_dd | ||
| ) |
Convert SOM X, SOM Y to decimal degrees latitude and longitude.
| [in] | path | Path |
| [in] | som_x | SOM X |
| [in] | som_y | SOM Y |
| [out] | lat_dd | Latitude |
| [out] | lon_dd | Longitude |
Definition at line 36 of file MtkSomXYToLatLon.c.
| MTKt_status MtkSomXYToLatLonAry | ( | int | path, |
| int | nelement, | ||
| const double * | som_x, | ||
| const double * | som_y, | ||
| double * | lat_dd, | ||
| double * | lon_dd | ||
| ) |
Convert array of SOM X, SOM Y to array of latitude, longitude.
| [in] | path | Path |
| [in] | nelement | Number of elements |
| [in] | som_x | SOM X |
| [in] | som_y | SOM Y |
| [out] | lat_dd | Latitude |
| [out] | lon_dd | Longitude |
Definition at line 41 of file MtkSomXYToLatLonAry.c.
| int somfor | ( | double | lon, |
| double | lat, | ||
| double * | y, | ||
| double * | x | ||
| ) |
| int sominv | ( | double | y, |
| double | x, | ||
| double * | lon, | ||
| double * | lat | ||
| ) |