Project

General

Profile

Question #949

cam2map with LROC WAC

Added by Tammy Becker over 5 years ago. Updated almost 3 years ago.

Status:
Acknowledged
Priority:
Normal
Assignee:
-
Category:
Applications
Target version:
-
Software Version:
Test Reviewer:

Description

External Post:
https://isis.astrogeology.usgs.gov/IsisSupport/index.php/topic,3502.0.html

Original Post Date: 20June2012
Dear ISIS support,

in order to produce an ortho image of an LROC WAC image I use the following processing steps:
- lrowac2isis to import the image
- spiceinit on even image
- spiceinit on odd image
- lrowaccal on even image
- lrowaccal on odd image
- cam2map on even image
- cam2map on odd image
- mapmos to combine the even and odd images

Using the default shape model (ldem_128ppd_Mar2011_clon180_radius_pad.cub) this works fine. Now I want to use a different shape model (WAC_GLD100_E300N045-0_100M in this case) but cam2map fails. Using an LROC NAC image covering the same area works without any problems.

Can you have a look at this issue? Are there smarter ways to process LROC WAC images?

Best regards
rschmidt

Report to moderator Logged

Zack Moratto
Anubis (Very Active Member)

Posts: 74

 Re: cam2map with LROC WAC 

« Reply #1 on: Today at 08:50:32 AM » Quote Modify Remove Split Topic


The file WAC_GLD100_E300N045-0_100M is just a tile of the the full Moon DEM. Have you verified that the WAC image you are projecting actually intersects with that tile?

Also, because of the previously mentioned issue, you should provide the WAC image ID so someone can double check your work. There are probably a bunch of nasty edge cases. Like what should a person do when their image straddles a DEM tile boundary? I believe the ISIS solution is to mosaic the DEM tiles into a colossal file.

Report to moderator Logged

rschmidt
Osiris (Active Member)

Posts: 8

Re: cam2map with LROC WAC 

« Reply #2 on: Today at 09:30:24 AM » Quote Modify Remove Split Topic


You are right, I should have mentioned that. Here are the infos:

WAC_GLD100_E300N045-0_100M (used shape model)
MinLat 0.0
MaxLat 60.0
MinLon 0.0
MaxLon 90.0

M117433487ME (LROC WAC which fails)
MinLat 3.1
MaxLat 13.1
MinLon 7.1
MaxLon 10.3

M131589606LE (LROC NAC which works)
MinLat 7.96
MaxLat 9.49
MinLon 8.78
MaxLon 8.86

History

#1 Updated by Tammy Becker over 5 years ago

Ella, You might need to get some files from the reporter to see if you can reproduce their problem with the WAC data.

#2 Updated by Ella Lee over 5 years ago

I tried running spiceinit on the LRO WAC file listed and got an error stating "Unable to initialize camera model". Is there something special I need to do in order to process LRO WAC images?

Ella Mae

#3 Updated by Ella Lee over 5 years ago

Error was because I was pointing to our special data area for LRO NAC processing. Need to point to the system data area for LRO WAC processing.

#4 Updated by Ella Lee over 5 years ago

This program is failing when default=minimize but runs successfully if I add default=camera. Is the program doing what it is suppose to when minimize is used? Under what conditions should minimize not be used?

Below is additional information regarding the failure:

Test directory:
/work/users/elee/IsisSupport/m00949_lroc_wac

Map template content:
Group = Mapping
TargetName = Moon
ProjectionName = Mercator
CenterLatitude = 0.0
CenterLongitude = 0.0
LongitudeDomain = 360
PixelResolution = 100.0
LongitudeDirection = PositiveEast
End_Group

Error when default=minimize:
astrovm2.wr.usgs.gov% cam2map from=M117433487ME.vis.even_cal.cub to=lev3test.cub map=merc.map
Object = cam2map
IsisVersion = "3.4.1.4516 beta | 2012-05-21"
ProgramVersion = 2012-04-30
ProgramPath = /usgs/pkgs/isis3production2012-06-26/isis/bin
ExecutionDateTime = 2012-07-03T10:22:06
HostName = astrovm2.wr.usgs.gov
UserName = elee
Description = "Convert camera image to a map projection"

Group = UserParameters
FROM = M117433487ME.vis.even_cal.cub
MAP = merc.map
TO = lev3test.cub
MATCHMAP = false
PIXRES = CAMERA
DEFAULTRANGE = MINIMIZE
LONSEAM = AUTO
INTERP = CUBICCONVOLUTION
WARPALGORITHM = AUTOMATIC
End_Group

Group = Error
Program = cam2map
Code = 1
Message = "Unable to create projection from file [merc.map]"
File = ProjectionFactory.cpp
Line = 523
End_Group

Group = Error
Program = cam2map
Class = "USER ERROR"
Code = 2
Message = "Latitude, longitude, or radius is an invalid value"
File = SurfacePoint.cpp
Line = 440
End_Group
End_Object
End

Ella Mae

#5 Updated by Tammy Becker over 5 years ago

Jeff, can you please look into this? Ella helped the external reporter with work around, but the issue is not considered resolved without understanding why minimize won't work...we can open a new post if it's a bug...or improve the error for the user....

Thank you

#6 Updated by Tammy Becker over 5 years ago

This post was originally assigned to Ella to help the external reporter. Assignment has changed to a developer for further evaluation/resolution.

#7 Updated by Tammy Becker about 5 years ago

Unassigned for now, a work around has been identified, but the main problem has not been resolved

#9 Updated by Anonymous over 4 years ago

  • Target version deleted (150)

#11 Updated by Stuart Sides over 3 years ago

  • Target version set to 3.4.7 (2014-08-27 Aug)

#12 Updated by Stuart Sides over 3 years ago

  • Target version changed from 3.4.7 (2014-08-27 Aug) to 159

#17 Updated by Stuart Sides about 3 years ago

  • Target version deleted (159)

Also available in: Atom PDF