\hypertarget{structmapdata}{\section{mapdata Struct Reference}
\label{structmapdata}\index{mapdata@{mapdata}}
}


Stores a submap of the netcdf G\-R\-D data.  




{\ttfamily \#include $<$mapio.\-h$>$}

\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
double \hyperlink{structmapdata_ad68ce166fc8a408b551e606d58a971b8}{xcenter}
\item 
double \hyperlink{structmapdata_af93949bf8cc8ac385c88d1bdb7fc40cb}{ycenter}
\item 
double $\ast$ \hyperlink{structmapdata_a189eb713d92e550138c08edd86ac4b81}{xpts}
\item 
size\-\_\-t \hyperlink{structmapdata_a47ac4c35c98dc025c0266abb0797eae3}{xdimlen}
\item 
double $\ast$ \hyperlink{structmapdata_ace21e13c0908354c21ad0e285a01f396}{ypts}
\item 
size\-\_\-t \hyperlink{structmapdata_ac1635f9faefd03c445d9ffd81ec582d4}{ydimlen}
\item 
float $\ast$ \hyperlink{structmapdata_a0f72b1151d78853858f96c41b1d6da8b}{z}
\item 
int \hyperlink{structmapdata_a097065010304ed8e057a340a85fb12fa}{status}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Stores a submap of the netcdf G\-R\-D data. 


\begin{DoxyParams}{Parameters}
{\em xcenter} & The X (Easting in meters) center coordinate provided by user \\
\hline
{\em ycenter} & The Y (Northing in meters) center coordinate provided by user \\
\hline
{\em xpts} & A pointer to a 1\-D array of the easting coordinate variable data \\
\hline
{\em xdimlen} & The number of values in x \\
\hline
{\em ypts} & A pointer to a 1\-D array of the northing coordinate variable data \\
\hline
{\em ydimlen} & The number of values in y \\
\hline
{\em z} & A pointer to a submap sized (ydimlen, xdimlen) \\
\hline
{\em status} & T\-He status of the structure\\
\hline
\end{DoxyParams}
This structure stores a submap retrieved from a G\-M\-T G\-R\-D file. Functions for working with this file are mapdata\-\_\-fill and mapdata\-\_\-free. Here's a code snippet that shows accessing the array\-: 
\begin{DoxyPre}
struct mapdata data
 float *z;
 float value;
 int i, j;\end{DoxyPre}



\begin{DoxyPre} z = data->z;
 i = data->ydimlen;
 j = data->xdimlen;
 for (i = 0; i < rows; i++) \{
 for (j = 0; j < columns; j++) \{
 value = z[i * columns + j];
 fprintf(stdout, "%f\(\backslash\)t", value);
 \}
 fprintf(stdout, "\(\backslash\)n");
 \}
 \end{DoxyPre}
 

\subsection{Member Data Documentation}
\hypertarget{structmapdata_a097065010304ed8e057a340a85fb12fa}{\index{mapdata@{mapdata}!status@{status}}
\index{status@{status}!mapdata@{mapdata}}
\subsubsection[{status}]{\setlength{\rightskip}{0pt plus 5cm}int mapdata\-::status}}\label{structmapdata_a097065010304ed8e057a340a85fb12fa}
\hypertarget{structmapdata_ad68ce166fc8a408b551e606d58a971b8}{\index{mapdata@{mapdata}!xcenter@{xcenter}}
\index{xcenter@{xcenter}!mapdata@{mapdata}}
\subsubsection[{xcenter}]{\setlength{\rightskip}{0pt plus 5cm}double mapdata\-::xcenter}}\label{structmapdata_ad68ce166fc8a408b551e606d58a971b8}
\hypertarget{structmapdata_a47ac4c35c98dc025c0266abb0797eae3}{\index{mapdata@{mapdata}!xdimlen@{xdimlen}}
\index{xdimlen@{xdimlen}!mapdata@{mapdata}}
\subsubsection[{xdimlen}]{\setlength{\rightskip}{0pt plus 5cm}size\-\_\-t mapdata\-::xdimlen}}\label{structmapdata_a47ac4c35c98dc025c0266abb0797eae3}
\hypertarget{structmapdata_a189eb713d92e550138c08edd86ac4b81}{\index{mapdata@{mapdata}!xpts@{xpts}}
\index{xpts@{xpts}!mapdata@{mapdata}}
\subsubsection[{xpts}]{\setlength{\rightskip}{0pt plus 5cm}double$\ast$ mapdata\-::xpts}}\label{structmapdata_a189eb713d92e550138c08edd86ac4b81}
\hypertarget{structmapdata_af93949bf8cc8ac385c88d1bdb7fc40cb}{\index{mapdata@{mapdata}!ycenter@{ycenter}}
\index{ycenter@{ycenter}!mapdata@{mapdata}}
\subsubsection[{ycenter}]{\setlength{\rightskip}{0pt plus 5cm}double mapdata\-::ycenter}}\label{structmapdata_af93949bf8cc8ac385c88d1bdb7fc40cb}
\hypertarget{structmapdata_ac1635f9faefd03c445d9ffd81ec582d4}{\index{mapdata@{mapdata}!ydimlen@{ydimlen}}
\index{ydimlen@{ydimlen}!mapdata@{mapdata}}
\subsubsection[{ydimlen}]{\setlength{\rightskip}{0pt plus 5cm}size\-\_\-t mapdata\-::ydimlen}}\label{structmapdata_ac1635f9faefd03c445d9ffd81ec582d4}
\hypertarget{structmapdata_ace21e13c0908354c21ad0e285a01f396}{\index{mapdata@{mapdata}!ypts@{ypts}}
\index{ypts@{ypts}!mapdata@{mapdata}}
\subsubsection[{ypts}]{\setlength{\rightskip}{0pt plus 5cm}double$\ast$ mapdata\-::ypts}}\label{structmapdata_ace21e13c0908354c21ad0e285a01f396}
\hypertarget{structmapdata_a0f72b1151d78853858f96c41b1d6da8b}{\index{mapdata@{mapdata}!z@{z}}
\index{z@{z}!mapdata@{mapdata}}
\subsubsection[{z}]{\setlength{\rightskip}{0pt plus 5cm}float$\ast$ mapdata\-::z}}\label{structmapdata_a0f72b1151d78853858f96c41b1d6da8b}


The documentation for this struct was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\hyperlink{mapio_8h}{mapio.\-h}\end{DoxyCompactItemize}
