ocssw
V2022
|
Usds.c
Go to the documentation of this file.
109 char copyright[] = "@(#) (C) Copyright 1993,1994 University of New Mexico. All Rights Reserved.";
114 static char noncommercial1[] = "This software is for evaluating the extended Rice algorithm found";
115 static char noncommercial2[] = "in the USES chip. It is not to be used for commercial purposes.";
116 static char credits1[] = "This work was supported in part by NASA Space Engineering Research Center grant";
117 static char credits2[] = "NAGW-3293 and Lossless Data Compression grant NAG 5-2166. Work on USES was in";
118 static char credits3[] = "collaboration with NASA, Goddard Space Flight Center, Greenbelt, Maryland, USA.";
448 fprintf(stderr,"ERROR: Usds lost. Illegal number of zero_blks=%d. Must decode with same\n",ZBLKS);
1100 fprintf(stderr,"================================================================================\n");
1106 fprintf(stderr,"===============================================================================\n");
1110 fprintf(stderr,"================================================================================\n");
1115 fprintf(stderr," -j : <J> Blocksize. Optional. Default is 16 pixels per block. J=[8,10,16].\n");
1130 fprintf(stderr," -by : Bypass. Packetize input to 16 bits. No coding, no IDs or References.\n");
1139 fprintf(stderr," -2L : 2D prediction only uses nearest neighbor prediction for first line.\n");
1146 fprintf(stderr," -rp : <Refs per packet>.(OPTIONAL). If this arg. is not used, uses assumes\n");
1152 fprintf(stderr,"================================================================================\n");
1157 fprintf(stderr,"================================================================================\n");
1456 fprintf(stderr,"ERROR:%s either blkref or pixref may be specified but not both. Aborting.\n",In_file);
an array had not been initialized Several spelling and grammar corrections were which is read from the appropriate MCF the above metadata values were hard coded A problem calculating the average background DN for SWIR bands when the moon is in the space view port was corrected The new algorithm used to calculate the average background DN for all reflective bands when the moon is in the space view port is now the same as the algorithm employed by the thermal bands For non SWIR changes in the averages are typically less than Also for non SWIR the black body DNs remain a backup in case the SV DNs are not available For SWIR the changes in computed averages were larger because the old which used the black body suffered from contamination by the micron leak As a consequence of the if SV DNs are not available for the SWIR the EV pixels will not be the granule time is used to identify the appropriate tables within the set given for one LUT the first two or last two tables respectively will be used for the interpolation If there is only one LUT in the set of it will be treated as a constant LUT The manner in which Earth View data is checked for saturation was changed Previously the raw Earth View DNs and Space View DNs were checked against the lookup table values contained in the table dn_sat The change made is to check the raw Earth and Space View DNs to be sure they are less than the maximum saturation value and to check the Space View subtracted Earth View dns against a set of values contained in the new lookup table dn_sat_ev The metadata configuration and ASSOCIATEDINSTRUMENTSHORTNAME from the MOD02HKM product The same metatdata with extensions and were removed from the MOD021KM and MOD02OBC products ASSOCIATEDSENSORSHORTNAME was set to MODIS in all products These changes are reflected in new File Specification which users may consult for exact the pow functions were eliminated in Emissive_Cal and Emissive bands replaced by more efficient code Other calculations throughout the code were also made more efficient Aside from a few round off there was no difference to the product The CPU time decreased by about for a day case and for a night case A minor bug in calculating the uncertainty index for emissive bands was corrected The frame index(0-based) was previously being used the frame number(1-based) should have been used. There were only a few minor changes to the uncertainty index(maximum of 1 digit). 3. Some inefficient arrays(Sigma_RVS_norm_sq) were eliminated and some code lines in Preprocess_L1A_Data were moved into Process_OBCEng_Emiss. There were no changes to the product. Required RAM was reduced by 20 MB. Now
void set_flags(int argc, char *argv[], int *pixref_flag, int *blkref_flag)
void check_ref_per_sample(int blkref_flag, int pixref_flag)
Definition: Usds.c:1451
int usds(int argc, argv, int32_t inBytes, uint8_t *encryptData, uint16_t *decryptData)
Definition: Usds.c:154
void open_files(int argc, char *argv[])
a context in which it is NOT documented to do so subscript which cannot be easily calculated when extracting TONS attitude data from the Terra L0 files Corrected several defects in extraction of entrained ephemeris and and as HDF file for both the L1A and Geolocation enabling retrieval of South Polar DEM data Resolved Bug by changing to opent the geolocation file only after a successful read of the L1A and also by checking for fatal errors from not restoring C5 and to report how many of those high resolution values were water in the new WaterPresent SDS Added valid_range attribute to Land SeaMask Changed to bilinearly interpolate the geoid_height to remove artifacts at one degree lines Made corrections to const qualification of pointers allowed by new version of M API library Removed casts that are no longer for same not the geoid Corrected off by one error in calculation of high resolution offsets Corrected parsing of maneuver list configuration parameter Corrected to set Height SDS to fill values when geolocation when for elevation and land water mask
Definition: HISTORY.txt:114
void do_uncoding(int32_t inBytes, uint8_t *encryptData, uint16_t *decryptData)
Definition: Usds.c:175