Closed justinbl closed 11 months ago
Hi @justinbl,
With a bit of testing I was able to reproduce your error. It appears you do not have the label file in the same directory as the data file. While you can pass either the data file (the .img you've linked here) or the label file (same file name with .lbl instead of .img) to pdr.read()
it still needs to be able to find the other one in order to get the metadata to know how to properly read in your data.
This is the link for downloading the corresponding label file for the data you have above: https://pds-geosciences.wustl.edu/mro/mro-m-crism-6-ddr-v1/mrocr_1002/ddr/2009/2009_118/hrl00012522/hrl00012522_07_de183l_ddr1.lbl
Do note that some browsers will download the label files as a .txt (so they'll end up as .lbl.txt files--not what you want). If you right click and save as you can change the file extension by changing the name (just remove the .txt; leave the .lbl) and switching the file ending drop down in the bottom right hand corner to .* (All files) instead of .txt/.TXT.
Once you have that downloaded, just make sure it's in the same folder as your data file and use the same code you did to produce the error in this issue and you should be all good to go. Feel free to reach out with any further issues you encounter. I did a lot of CRISM data work during my PhD so I'm well versed in its idiosyncrasies.
Thanks, Sierra. I can work with ddr data now.
Best, Binlong
Get Outlook for iOShttps://aka.ms/o0ukef
From: Sierra V. Brown @.> Sent: Saturday, January 6, 2024 3:08:39 AM To: MillionConcepts/pdr @.> Cc: justinbl @.>; Mention @.> Subject: Re: [MillionConcepts/pdr] Fail to load CRISM DDR data (Issue #54)
Closed #54https://github.com/MillionConcepts/pdr/issues/54 as completed.
― Reply to this email directly, view it on GitHubhttps://github.com/MillionConcepts/pdr/issues/54#event-11403363714, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AETMAH6WACUTI6APTNZG6RDYNAXRPAVCNFSM6AAAAABBOH6UVKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGQYDGMZWGM3TCNA. You are receiving this because you were mentioned.Message ID: @.***>
I try to use PDR to load CRISM DDR Data. It seems the read_pvl function cannot work. Here is the erro info
Here is the link for downloading CRISM DDR data for your reference: https://pds-geosciences.wustl.edu/mro/mro-m-crism-6-ddr-v1/mrocr_1002/ddr/2009/2009_118/hrl00012522/hrl00012522_07_de183l_ddr1.img