Plate_renderer (optional) N. Hirata 1. plate_renderer Tool for simulating Hayabusa's observations developed by N. Hirata – Implementing a light scattering.

Slides:



Advertisements
Similar presentations
1 CS345 Operating Systems Φροντιστήριο Άσκησης 1.
Advertisements

CS1010 Programming Methodology
Rachel Klima (on behalf of the MASCS team) JHU/APL MASCS/VIRS Data Users’ Workshop LPSC 2014, The Woodlands, TX March 17,2014 MASCS/VIRS Data Record Structure.
Lecture 2 Introduction to C Programming
Introduction to C Programming
 2005 Pearson Education, Inc. All rights reserved Introduction.
 2000 Prentice Hall, Inc. All rights reserved. Chapter 2 - Introduction to C Programming Outline 2.1Introduction 2.2A Simple C Program: Printing a Line.
Introduction to SPICE Jose Luis Vázquez European Space Astronomy Centre European Space Agency.
FEATURE: Basics Convert Feature X in image Y to Line(s),Sample(s) –Load & display ddd image –Graphical interface: click on feature Convert Line,Sample.
Navigation and Ancillary Information Facility NIF Writing an Icy Based Program June 2004.
Navigation and Ancillary Information Facility NIF Writing an Mice (MATLAB) Based Program November 2014.
Navigation and Ancillary Information Facility NIF Shape Model Subsystem Preview (DSK) November 2014.
Introduction to C Programming
Navigation and Ancillary Information Facility NIF Porting Kernels October 2014.
©2005 GE Fanuc Automation, Inc. All Rights Reserved PACSystems Training Programmer’s Toolkit.
Navigation and Ancillary Information Facility NIF Porting Kernels January 2009.
3D Visualisation of Simulation Data. Informal Seminar 08/03/2004. By Chris Sweet.
Navigation and Ancillary Information Facility NIF SPICE Conventions A summary of standards, lingo and common usage within SPICE November 2014.
OS provide a user-friendly environment and manage resources of the computer system. Operating systems manage: –Processes –Memory –Storage –I/O subsystem.
Navigation and Ancillary Information Facility NIF Derived Quantities November 2014.
IVC : a simulation and model-fitting tool for optical-IR interferometry Abstract I present a new software tool, called “Interferometry Visibility Computations”
Hayabusa Data Archives Makoto Yoshikawa (JAXA) COSPAR Capacity Building Workshop on Planetary Science July 23 - Aug. 3, 2007 Montevideo, Uruguay.
Planetary Science Archive PSA User Group Meeting #1 PSA UG #1  July 2 - 3, 2013  ESAC PSA Archiving Standards.
Navigation and Ancillary Information Facility NIF Shape Model Preview An overview of Current Status of and Further Development Plans for the SPICE Digital.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 2 Chapter 2 - Introduction to C Programming.
Navigation and Ancillary Information Facility NIF The Event Finder April 2005 (A preview of work in progress)
1 Schlumberger SIM Toolkit in GSM Wilson Cheung Schlumberger Technologies (Asia) Ltd. SIM Toolkit in GSM Wilson Cheung Schlumberger Technologies (Asia)
Lecture 2: Introduction to C Programming. OBJECTIVES In this lecture you will learn:  To use simple input and output statements.  The fundamental data.
Navigation and Ancillary Information Facility NIF Writing a CSPICE (C) Based Program November 2014.
Navigation and Ancillary Information Facility NIF Event Finding Subsystem Preview Capabilities, Current Status and Plans January 2009.
Navigation and Ancillary Information Facility NIF IDL Interface to CSPICE “Icy” How to Access the CSPICE library Using Interactive Data Language (IDL)
Navigation and Ancillary Information Facility NIF IDL Interface to CSPICE “Icy” How to Access the CSPICE library Using Interactive Data Language (IDL)
Navigation and Ancillary Information Facility NIF Shape Model Subsystem Preview Capabilities, Current Status and Plans January 2009.
Navigation and Ancillary Information Facility NIF Exception Handling November 2014.
Navigation and Ancillary Information Facility NIF Exception Handling October 2014.
Navigation and Ancillary Information Facility NIF Introduction to WebGeocalc October 2014 SPICE components and services are not restricted under ITAR and.
Navigation and Ancillary Information Facility NIF Porting Kernels November 2005.
Navigation and Ancillary Information Facility NIF Writing a CSPICE Based Program October 2007.
Navigation and Ancillary Information Facility NIF Writing an Icy (IDL) Based Program January 2009.
Navigation and Ancillary Information Facility NIF SPICE System Development Plans March 2006.
In the name of God Computer Graphics.
INTRODUCTION TO GIS  Used to describe computer facilities which are used to handle data referenced to the spatial domain.  Has the ability to inter-
24-2 Perform File I/O using file pointers FILE * data-type Opening and closing files Character Input and Output String Input and Output Related Chapter:
Navigation and Ancillary Information Facility NIF Using Module Headers April 2006.
Navigation and Ancillary Information Facility NIF SPICE Event Finding Subsystem October 2007.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 2 - Introduction to C Programming Outline.
Navigation and Ancillary Information Facility NIF Writing a SPICE (FORTRAN) Based Program November 2014.
Navigation and Ancillary Information Facility NIF Getting and Installing the SPICE Toolkit November 2014.
Files A collection of related data treated as a unit. Two types Text
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand the basic properties and characteristics of external files ❏ To.
Navigation and Ancillary Information Facility NIF SPICE Development Plans and Possibilities October 2007.
Navigation and Ancillary Information Facility NIF Writing an Mice (MATLAB) Based Program October 2007.
Navigation and Ancillary Information Facility NIF Writing a SPICE-based Fortran Program October 2007.
1 Lecture 2 - Introduction to C Programming Outline 2.1Introduction 2.2A Simple C Program: Printing a Line of Text 2.3Another Simple C Program: Adding.
Writing an Icy (IDL) Based Program
Determination of photometric properties of Steins
In the name of God Computer Graphics.
Shape Model Subsystem Preview (DSK)
Chapter 7 Text Input/Output Objectives
INTRODUCTION TO GEOGRAPHICAL INFORMATION SYSTEM
VIRTIS flyby of Steins M-IR Spectral analysis
Geometric information for VIRTIS-M data
Chapter 7 Text Input/Output Objectives
CS111 Computer Programming
Chapter 2 - Introduction to C Programming
Chapter 2 - Introduction to C Programming
Chapter 2 - Introduction to C Programming
Chapter 2 - Introduction to C Programming
GEOMETER Update Get new version of GEOMETER from Team web site after August 8. Some new parameters now computed (illum angles for “near point” of non-intersecting.
Introduction to C Programming
Presentation transcript:

plate_renderer (optional) N. Hirata 1

plate_renderer Tool for simulating Hayabusa's observations developed by N. Hirata – Implementing a light scattering model of asteroids – Byproducts: geometric information at a given epoch or a given condition  Compute backplane-like data Can be used to compute data not included in the PDS backplane data – e.g. Polygon ID for each pixel 2

Outputs of plate_renderer 3 i: incidence anglee: emission angleg: phase angle hapke: rendering lat: latitudelon: longitude real images: strike azimuthrange: range [km]

Example: Hayabusa’s point of view movie Before failure of the 2nd RW After failure of the 2nd RW 4

4-sided view of Itokawa: with a free viewpoint mode 5

DSK subsystem/toolkit Additional library on SPICE toolkit – Provide APIs to handle polygon models of irregular-shaped bodies and DTMs of planetary surfaces – Alpha version is released polygon model handling is almost completed Available FORTRAN, C, IDL versions at a_dsk/ 6

DSK: digital shape kernel Kernel to store a shape model data in DSK subsystem – Polygon model of an irregular-shaped body – Ellipsoid can handle by pck Binary format – Extension:.bds – Create mkdsk command in DSK subsystem – Cannot load with furnsh_c; special procedure is provided 7

Major APIs in DSK subsystem Obtaining information on an irregular- shaped body – Sub-observer point – Surface intercept – Occultation and transit – Limb profile and day/night terminator profile – Solar illumination conditions 8

CFITSIO Library for input/output of FITS format files – Available for C and FORTRAN Distributed at – 9

How to compile plate_renderer Install DSK subsystem – k/ Prepare DSK data – Additionally distributed from me – k/data/itokawa/ Install CFITSIO – Download a source package and compile it Compile plate_renderer – Modify the attached Makefile to fit your local environment and run make command 10

How to use $./plate_rendere DSK_kernel kernels... – 1 st argument is DSK_kernel file High res.: hay_a_amica_5_itokawashape_v1_0_512q.bds Low res.: hay_a_amica_5_itokawashape_v1_0_64q.bds – Other kernels are listed after it Option to be chosen at compile – Selection of output files – Draw the lat/lon grid – Change the viewpoint Simulate an actual situation of S/C (reading kernels): S/C VP mode View from an arbitrary location: Free VP mode 11

Options in plate_renderer.h Select options by defining macros – Select with SPICETRUE – Deselect with SPICEFALSE 12

How to work Loading kernels Selecting view mode – S/C VP mode: Reading geometries from kernels at the given epoch – Free VP mode: Computing geometries from the given conditions For all pixels – Check a footprint of the line-of-sight vector of a certain pixel on the shape model – Compute a lighting condition, If a footprint exists check whether the footprint is shaded or not – Estimate a brightness at the footprint with Hapke’s light scattering model – Output results as FITS format files 13

User defined functions int ONC_getlos_c( ) – Compute a line-of-sight vector of a given pixel double hapke( ) – Compute brightness with Hapke’s light scattering model void get_plbore ( ) – Check a footprint of the line-of-sight vector of a certain pixel on the shape model int get_cam_info ( ) – Read camera info. from ik 14

Used functions (CSPICE) prompt_c ( "Instrument ID: ", STRLEN, instr ); – Prompt user input with a message (printf + scanf) vminus_c (SC_pos_bd,SC_pos_bd); – Negate a 3-dimensional vector by multiplying with -1 pxform_c (frame,"ITOKAWA_FIXED", et, rotate); – Obtain a rotation matrix eul2m_c (rotate_z, rotate_y, rotate_x, 3, 2, 1, rotate ); – Get a rotation matrix from Euler angles mxv_c (rotate, bsight, bsight); – Multiply a 3x3 matrix with a 3-dimensional vector 15

Used functions (dsk subsystem) dasopr_c ( argv[1], &handle ); dlabfs_c ( handle, &dladsc, &found ); – Open a DSK file and prepare to use in user’s program – handle and dladsc are identifier to access shape model information in DSK dskx02_c (handle, &dladsc, SC_pos_bd, bsight_bd, &PLDEX, surface_point, &found1); – Compute a ray-surface intercept dskn02_c (handle, &dladsc, PLDEX, plnorm); – Compute a normal vector for a given polygon 16

Used functions (CSPICE, cont.) erract_c(), failed_c(), reset_c() – Error handling functions (see previous material) – In plate_renderer, output of error message to stdout is not suppressed 17

Used functions (CFITSIO) fits_create_img(phase_fptr, DOUBLE_IMG, dim, naxis, &status); – Create a new FITS data fits_create_file(&phase_fptr, phase_fname, &status); – Create a new FITS file (like fopen) fits_write_2d_dbl(phase_fptr, 0, naxis[0], naxis[0], naxis[1], phase_img, &status); – Write FITS data to a file fits_close_file(phase_fptr, &status); – Close a FITS file (like fclose) 18

Used functions hapke(double i, double e, double g); – Compute brightness of object under a given illumination condition by Hapke’s light scattering model – Hapke’s model is an empirically developed to describe light scattering on the planetary surfaces 19