spacetelescope / romancal

Python library to process science observations from the Nancy Grace Roman Space Telescope
https://roman-pipeline.readthedocs.io/en/latest/
Other
31 stars 28 forks source link

Update skycell information in resample #1370

Open stscijgbot-rstdms opened 1 month ago

stscijgbot-rstdms commented 1 month ago

Issue RCAL-893 was created on JIRA by David Davis:

Currently resample sets the location_name (skycell name) and product_type to "TBD".

These should be set based on the skycell (skytile now?) name and product. e.g.

location_name = self.input_models.asn.get("target", None)

and something like?

if "visit" in self.input_models.asn.get("products", None)[0]['name'] output_model.meta.basic.product_type = "visit"

for the product_type

 

stscijgbot-rstdms commented 2 weeks ago

Comment by Eddie Schlafly on JIRA:

Great, target seems a good place to store the skycell information.  How are we currently setting products?  I don't have a sense for what this looks like.  I agree that checking for a visit string isn't crazy.