ocssw
V2022
|
prodgen.c
Go to the documentation of this file.
146 applyMultiplier(extract_band_3d(l2rec->nLw, fbuf), fbuf, numPixels * input->nwavelengths_3d, 10.0);
153 applyMultiplier(extract_band_3d(l2rec->Lw, fbuf), fbuf, numPixels * input->nwavelengths_3d, 10.0);
159 pbuf = p->rank == 3 ? extract_band_3d(l2rec->Rrs, fbuf) : extract_band(l2rec->Rrs, p, numBands);
166 pbuf = p->rank == 3 ? extract_band_3d(l2rec->Rrs_unc, fbuf) : extract_band(l2rec->Rrs_unc, p, numBands);
169 pbuf = p->rank == 3 ? extract_band_3d(l2rec->taua, fbuf) : extract_band(l2rec->taua, p, numBands);
173 applyMultiplier(extract_band_3d(l1rec->Lr, fbuf), fbuf, numPixels * input->nwavelengths_3d, 10.0);
180 applyMultiplier(extract_band_3d(l1rec->L_q, fbuf), fbuf, numPixels * input->nwavelengths_3d, 10.0);
187 applyMultiplier(extract_band_3d(l1rec->L_u, fbuf), fbuf, numPixels * input->nwavelengths_3d, 10.0);
193 pbuf = p->rank == 3 ? extract_band_3d(l1rec->polcor, fbuf) : extract_band(l1rec->polcor, p, numBands);
197 applyMultiplier(extract_band_3d(l2rec->La, fbuf), fbuf, numPixels * input->nwavelengths_3d, 10.0);
204 applyMultiplier(extract_band_3d(l1rec->TLg, fbuf), fbuf, numPixels * input->nwavelengths_3d, 10.0);
211 applyMultiplier(extract_band_3d(l1rec->tLf, fbuf), fbuf, numPixels * input->nwavelengths_3d, 10.0);
217 pbuf = p->rank == 3 ? extract_band_3d(l2rec->brdf, fbuf) : extract_band(l2rec->brdf, p, numBands);
221 applyMultiplier(extract_band_3d(l1rec->Lt, fbuf), fbuf, numPixels * input->nwavelengths_3d, 10.0);
243 pbuf = p->rank == 3 ? extract_band_3d(l1rec->rhos, fbuf) : extract_band(l1rec->rhos, p, numBands);
265 pbuf = p->rank == 3 ? extract_band_3d(l1rec->t_sol, fbuf) : extract_band(l1rec->t_sol, p, numBands);
268 pbuf = p->rank == 3 ? extract_band_3d(l1rec->t_sen, fbuf) : extract_band(l1rec->t_sen, p, numBands);
271 pbuf = p->rank == 3 ? extract_band_3d(l1rec->tg_sol, fbuf) : extract_band(l1rec->tg_sol, p, numBands);
274 pbuf = p->rank == 3 ? extract_band_3d(l1rec->tg_sen, fbuf) : extract_band(l1rec->tg_sen, p, numBands);
277 pbuf = p->rank == 3 ? extract_band_3d(l1rec->t_h2o, fbuf) : extract_band(l1rec->t_h2o, p, numBands);
280 pbuf = p->rank == 3 ? extract_band_3d(l1rec->t_o2, fbuf) : extract_band(l1rec->t_o2, p, numBands);
283 pbuf = p->rank == 3 ? extract_band_3d(l1rec->dpol, fbuf) : extract_band(l1rec->dpol, p, numBands);
313 fprintf(stderr, "or, geometry-dependent view angle information was specifically not requested\n");
void get_habs_mph(l2str *l2rec, l2prodstr *p, float chl_mph[])
Definition: get_habs.c:275
void get_rho_mumm(l2str *l2rec, int32_t ip, int32_t iw, float *rhom)
Definition: mumm.c:25
void get_ndii(l1str *l1rec, float prod[])
Main entry point for getting ndii.
Definition: get_ndii.c:81
void get_Cpicophyt(l2str *l2rec, l2prodstr *p, float *cell_abundance)
Definition: get_Cpicophyt.c:38
int get_hyper_vi(l1str *l1rec, int product_number, float product[])
Definition: get_hyper_vi.cpp:211
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude resolving resolving GSFcd00179 Corrected handling of fill values for[Sensor|Solar][Zenith|Azimuth] resolving MODxl01751 Changed to validate LUT version against a value retrieved from the resolving MODxl02056 Changed to calculate Solar Diffuser angles without adjustment for estimated post launch changes in the MODIS orientation relative to incidentally resolving defects MODxl01766 Also resolves MODxl01947 Changed to ignore fill values in SCI_ABNORM and SCI_STATE rather than treating them as resolving MODxl01780 Changed to use spacecraft ancillary data to recognise when the mirror encoder data is being set by side A or side B and to change calculations accordingly This removes the need for seperate LUTs for Side A and Side B data it makes the new LUTs incompatible with older versions of the and vice versa Also resolves MODxl01685 A more robust GRing algorithm is being which will create a non default GRing anytime there s even a single geolocated pixel in a granule Removed obsolete messages from seed as required for compatibility with version of the SDP toolkit Corrected test output file names to end in out
Definition: HISTORY.txt:422
void get_photic_depth(l2str *l2rec, l2prodstr *p, float Z[])
Definition: photic_depth.c:303
PARAM_TYPE_NONE Default value No parameter is buried in the product name name_prefix is case insensitive string compared to the product name PARAM_TYPE_VIS_WAVE The visible wavelength bands from the sensor are buried in the product name The product name is compared by appending and name_suffix ie aph_412_giop where prod_ix will be set to PARAM_TYPE_IR_WAVE same search method as PARAM_TYPE_VIS_WAVE except only wavelength above are looped through but prod_ix is still based ie aph_2_giop for the second band
Definition: HOWTO_Add_a_product.txt:42
void get_cdom_morel(l2str *l2rec, l2prodstr *p, float prod[])
Definition: cdom_morel.c:319
float * get_sst_dust_correction(l2str *l2rec)
Retrive the dust SST correction for MODIS and product SST *.
Definition: sst.c:9
void get_pft_uitz(l2str *l2rec, l2prodstr *p, float prod[])
Definition: get_pft_uitz.c:387
This should be set to the NetCDF standard name if exists for this product Create a function that computes your product edit get_myprod c add prototype to l12_proto h add get_myprod c to L2GEN_PRODUCT_FILES in CMakeLists txt Add an entry to the output routine to call your function edit prodgen c edit function prodgen() case CAT_myprod pbuf
Definition: HOWTO_Add_a_product.txt:127
void get_Rrs_brightness(l2str *l2rec, float Rrs_brightness[])
Definition: get_avw.c:172
void get_ndvi_evi(l1str *l1rec, int prodnum, float prod[])
Main entry point for getting NDVI/EVI producs.
Definition: get_ndvi.c:269
void get_depth_classification(l2str *l2rec, float depth[])
Definition: get_depth_classification.c:20
void optical_water_type(l2str *l2rec, l2prodstr *p, void *vptr)
Definition: owt.c:325
void get_ndwi(l1str *l1rec, float prod[])
Main entry point for getting NDWI.
Definition: get_ndwi.c:79
float * get_bias_sst(l2str *l2rec)
Retrive the bias SSES for SST (both VIIRS and MODIS)
Definition: sst.c:22
void bioOptBandShift(l2str *l2rec, l2prodstr *p, float prod[])
Definition: bioOptBandShift.c:52
float * get_bias_mean_sst_triple(l2str *l2rec)
Get the means SSES bias for SST3.
Definition: sst.c:285
void get_pft_hirata(l2str *l2rec, l2prodstr *p, float prod[])
Definition: get_pft_hirata.c:145
void applyMultiplier(float *in, float *out, int count, float multiplier)
Definition: prodgen.c:87
void virtual_constellation(l2str *l2rec, l2prodstr *p, float prod[])
Definition: virtual_constellation.c:297
void get_ipar_below_surface(l2str *l2rec, float ipar[])
Definition: get_par.c:490