Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
add output format and measure units
  • Loading branch information
lbusett committed Mar 26, 2020
1 parent 9d467ff commit 3f2ffea
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 13 deletions.
41 changes: 32 additions & 9 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -110,25 +110,48 @@ The function to be used is still `convert_prisma`, with similar syntax. Only dif
not available in L2 files;
2. The "ATCOR" and "ATCOR_wls" arguments are ignored, because they are useless in this case;
3. The output imagery is properly georeferenced, __if level is 2D__. Otherwise,
the same "ballpark" georeferencing as for L1 data is applied.
the same "ballpark" georeferencing as for L1 data is applied.

### Output Format
# Output Formats

- Outputs are provided as rasters in __ENVI__ or __GEOTIFF__ format according to user's choice.

- Filenames are built starting from the output file name provided by the user, by
adding appropriate suffixes. For example, if the user specified `out_file = "D:/myoutfolder/myoutfil"`, and `source = "HCO"`, the output file for the VNIR cube will be `D:/myoutfolder/myoutfil_HCO_VNIR.envi` (or
`D:/myoutfolder/myoutfil_HCO_VNIR.tif`).

- Measure units of the output hyperspectral data are as follows:

```{r echo=FALSE, message=FALSE, warning=FALSE}
my_tbl <- tibble::tribble(
~LEVEL, ~Variable, ~"Measure Units",
"L1", "Radiance", "W / m^2 * sr * um",
"L2B", "Radiance", "W / m^2 * sr * um",
"L2C", "Reflectance", "unitless (ratio)",
"L2D", "Reflectance", "unitless (ratio)"
)
knitr::kable(my_tbl, digits = 3, row.names = FALSE, align = "c",
caption = NULL)
```


- If output format is "ENVI", the wavelengths of the different bands for the hyperspectral
cubes are properly written in the appropriate header (.hdr) file.
cubes are properly written in the appropriate header (.hdr) file.

- Irrespective from output format, info about wavelengths and fwhms of the hyperspectral
cubes are saved in appropriate txt files. For example, if the output file is
`D:/myoutfolder/myoutfil_HCO_VNIR.envi`, info about the wavelengths is saved in
`D:/myoutfolder/myoutfil_HCO_VNIR_meta.txt`
cubes are saved in appropriate txt files. For example, if the output file is
`D:/myoutfolder/myoutfil_HCO_VNIR.envi`, info about the wavelengths is saved in
`D:/myoutfolder/myoutfil_HCO_VNIR_meta.txt`

- Info about acquisition date and angles is saved in a dedicated txt file. For example, if
output file is `D:/myoutfolder/myoutfil_VNIR.envi`, info about the angles is saved in
`D:/myoutfolder/myoutfil_HCO_VNIR_meta.txt`
output file is `D:/myoutfolder/myoutfil_VNIR.envi`, info about the angles is saved in
`D:/myoutfolder/myoutfil_HCO_VNIR_meta.txt`

# Future Work

- Test possibility to more properly georeference L1/L2B/L2C data using the curvilinear
grids functionality in package `stars`

- Implement possibility to apply masks base on the ERR_MATRIX cubes

- Clean up code
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Only differences are:
Otherwise, the same “ballpark” georeferencing as for L1 data is
applied.

### Output Format
# Output Formats

- Outputs are provided as rasters in **ENVI** or **GEOTIFF** format
according to user’s choice.
Expand All @@ -134,6 +134,16 @@ Only differences are:
`D:/myoutfolder/myoutfil_HCO_VNIR.envi` (or
`D:/myoutfolder/myoutfil_HCO_VNIR.tif`).

- Measure units of the output hyperspectral data are as follows:

| LEVEL | Variable | Measure Units |
| :---: | :---------: | :-----------------: |
| L1 | Radiance | W / m^2 \* sr \* um |
| L2B | Radiance | W / m^2 \* sr \* um |
| L2C | Reflectance | unitless (ratio) |
| L2D | Reflectance | unitless (ratio) |


- If output format is “ENVI”, the wavelengths of the different bands
for the hyperspectral cubes are properly written in the appropriate
header (.hdr) file.
Expand All @@ -148,3 +158,12 @@ Only differences are:
file. For example, if output file is
`D:/myoutfolder/myoutfil_VNIR.envi`, info about the angles is saved
in `D:/myoutfolder/myoutfil_HCO_VNIR_meta.txt`

# Future Work

- Test possibility to more properly georeference L1/L2B/L2C data using
the curvilinear grids functionality in package `stars`

- Implement possibility to apply masks base on the ERR\_MATRIX cubes

- Clean up code
47 changes: 44 additions & 3 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3f2ffea

Please sign in to comment.