Banus / crism_ml

Python code for training machine learning models on CRISM
Apache License 2.0
18 stars 6 forks source link

Is there a way to extract geographical data, i.e. long & lat in this model? #1

Open isam007 opened 4 months ago

isam007 commented 4 months ago

Is there a way to also extract geographical data, i.e. long & lat using this model? Where is long & lat data hidden? Neither .lbl or .hdr files seem to have it and .img file seem to have 438 bands. Thanks!

Banus commented 3 months ago

No, geographical data is part of metadata and they are not available in the HDR or LBL files. They are however available on the CRISM website. For the example image is this: http://crism-map.jhuapl.edu/details.php?data=hrl_webmap_polygons&shape=5308&x=-165.07382&y=-29.10805

And you can see the coordinates both in the URL and in the summary table.

To find the page for a given file you need to extract the first part of the code for the file name, for example for hrl00016cfe_07_if181l_trr3 you need to select 00016cfe, and search it in the CRISM map.

The CRISM files have indeed 438 bands, but we select a subset. See the crism_to_mat function to see what kind of format is expected by our toolbox.