cmr.opendap.ous.util.geog

Documentation forthcoming

adjusted-lat

(adjusted-lat lat)(adjusted-lat lat resolution)

Documentation forthcoming

adjusted-lon

(adjusted-lon lon)(adjusted-lon lon resolution)

Documentation forthcoming

lat-hi-phase-shift

(lat-hi-phase-shift lat-max lat-hi)

This is used for reading values from OPeNDAP where -90N is stored at the zero (first) index in the array.

lat-hi-phase-shift-reversed

(lat-hi-phase-shift-reversed lat-max lat-lo)

This is used for reading values from OPeNDAP where 90N is stored at the zero (first) index in the array.

Note that this must also be used in conjunction with the hi and lo values for latitude in the OPeNDAP lookup array being swapped (see cmr.opendap.ous.variable/create-opendap-lookup-reversed).

lat-lo-phase-shift

(lat-lo-phase-shift lat-max lat-lo)

This is used for reading values from OPeNDAP where -90N is stored at the zero (first) index in the array.

lat-lo-phase-shift-reversed

(lat-lo-phase-shift-reversed lat-max lat-lo)

This is used for reading values from OPeNDAP where 90N is stored at the zero (first) index in the array.

Note that this must also be used in conjunction with the hi and lo values for latitude in the OPeNDAP lookup array being swapped (see cmr.opendap.ous.variable/create-opendap-lookup-reversed).

lon-hi-phase-shift

(lon-hi-phase-shift lon-max lon-hi)

Documentation forthcoming

lon-lo-phase-shift

(lon-lo-phase-shift lon-max lon-lo)

Documentation forthcoming

offset-index

(offset-index max default-max)(offset-index max default-max resolution)

OPeNDAP indices are 0-based, thus gridded longitudinal data with 1x resolution is stored at indices from 0 to 359 and similar latitudinal data is stored at indices from 0 to 179. The max values for lat and lon are stored in the UMM-Var records as part of the dimensions. Sometimes those values are pre-decremented for use in OPeNDAP, sometimes not (e.g., sometimes max longitude is given as 359, sometimes as 360). This function attempts to ensure a consistent use of decremented max values for indices.

phase-shift

(phase-shift degrees-max default-abs-degrees-max default-degrees-max degrees adjust-fn round-fn)

Longitude goes from -180 to 180 and latitude from -90 to 90. However, when referencing data in OPeNDAP arrays, 0-based indices are needed. Thus in order to get indices that match up with degrees, our longitude needs to be phase-shifted by 180 degrees, latitude by 90 degrees.