library update

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
Line 8: Line 8:
 
Return Value: the dvrc files on disk are updated
 
Return Value: the dvrc files on disk are updated
 
|
 
|
[[Syntax]]: library_update(update &#61 BOOL [, beta = BOOL])
+
[[Syntax]]: library_update(update = BOOL [, beta = BOOL])
 
  This function is designed to update the currently installed davinci
 
  This function is designed to update the currently installed davinci
 
  User Defined Functions library
 
  User Defined Functions library
Line 25: Line 25:
 
   
 
   
 
  Usage:
 
  Usage:
  library_update(update=1)
+
  library_update(update=1)
 
     This will update all the functions to the current public release of davinci,
 
     This will update all the functions to the current public release of davinci,
 
     e.g. major version 2.05
 
     e.g. major version 2.05
 
   
 
   
  library_update(update=1,beta=1)
+
  library_update(update=1,beta=1)
 
     This will update all the functions to the current beta release,
 
     This will update all the functions to the current beta release,
 
     e.g. everything after 2.05 but before 2.06
 
     e.g. everything after 2.05 but before 2.06
 
|
 
|
dv> library_update(update=1,beta=1)
+
dv> library_update(update=1,beta=1)
 
+
Using the beta repository to update davinci:
+
Using the beta repository to update davinci:
 
     http://davinci.asu.edu/examples/library_beta
 
     http://davinci.asu.edu/examples/library_beta
 
+
Downloading....lunar.hdf
+
Downloading....lunar.hdf
Downloading....mars.hdf
+
Downloading....mars.hdf
Downloading....xvscalebar.ppm
+
Downloading....irf_fit_all_v3.0_tv6_1_2_v3.0
Downloading....colormap.ppm
+
........................................
Downloading....colormap_daily.ppm
+
Downloading....night_maps_final.vicar
Downloading....colorjet.ppm
+
Downloading....Mars_Viking.jpg
Downloading....temp_rad_europa_20_30.vic
+
Downloading....months.txt
Downloading....tims_ir_spectral_response_avg_wave.vic
+
Downloading....weekdays.txt
Downloading....themis_bandcenter_wave.vic
+
Downloading....DeltaT.txt
Downloading....temp_rad_aster_v2.vic
+
Downloading....tai-utc.dat
Downloading....aster_ir_spectral_response_cm.vic
+
Downloading....themis_filter_functions.hdf
Downloading....themis_IR_filter_response_norm_v2.davinci
+
Downloading....day_maps_final.vicar
Downloading....aster_ir_spectral_response_wave.vic
+
Downloading....dehyd_water.txt
Downloading....themis_filter_functions.hdf
+
Downloading....crism_speclib.hdf
Downloading....irf_fit_all_v3.0_tv6_1_2_v3.0
+
Downloading....lab1_xaxis.vicar
Downloading....aster_ir_scaling.vic
+
Downloading....library.dvrc
Downloading....themis_dust_ice_trans_shapes2.ascii
+
Downloading....themis_science.dvrc
Downloading....themis_ir_spectral_response_cm.vic
+
Downloading....library_linux.dvrc
Downloading....lab1_xaxis.vicar
+
Downloading....tes_science.dvrc
Downloading....aster_bandcenter_cm.vic
+
Downloading....library_mac.dvrc
Downloading....aster_bandcenter_wave.vic
+
Downloading....library_mars.dvrc
Downloading....aster_spec_rofiles.csv
+
Downloading....data_manipulation.dvrc
Downloading....temp_rad_tims.vic
+
Downloading....math.dvrc
Downloading....lab1cmx.vic
+
Downloading....misc.dvrc
Downloading....lab2cmx.vic
+
Downloading....mosaic_tools.dvrc
Downloading....temp_rad_aster.vic
+
Downloading....msff.dvrc
Downloading....themis_bandcenter_cm.vic
+
Downloading....spectral_tools.dvrc
Downloading....tims_ir_spectral_response_avg_cm.vic
+
Downloading....plot_tools.dvrc
Downloading....aster4davinci.pl
+
Downloading....v_mosaic.dvrc
Downloading....irf_fit_all_v3.0_tv6_1_2_v3.0
+
Downloading....utils.dvrc
Downloading....night_maps_final.vicar
+
Downloading....general_science.dvrc
Downloading....Mars_Viking.jpg
+
Downloading....crism_science.dvrc
Downloading....months.txt
+
Downloading....constants.dvrc
Downloading....weekdays.txt
+
Downloading....thermal_model.dvrc
Downloading....DeltaT.txt
+
Downloading....image_stretch.dvrc
Downloading....tai-utc.dat
+
Downloading....library_win.dvrc
Downloading....themis_filter_functions.hdf
+
Downloading....time.dvrc
Downloading....day_maps_final.vicar
+
Downloading....field_spectrometer.dvrc
Downloading....dehyd_water.txt
+
Downloading....crism_speclib.hdf
+
Copying the library to the destination:
Downloading....lab1_xaxis.vicar
+
Downloading....library.dvrc
+
Downloading....themis_science.dvrc
+
Downloading....library_linux.dvrc
+
Downloading....tes_science.dvrc
+
Downloading....library_mac.dvrc
+
Downloading....library_mars.dvrc
+
Downloading....data_manipulation.dvrc
+
Downloading....math.dvrc
+
Downloading....misc.dvrc
+
Downloading....mosaic_tools.dvrc
+
Downloading....msff.dvrc
+
Downloading....spectral_tools.dvrc
+
Downloading....plot_tools.dvrc
+
Downloading....v_mosaic.dvrc
+
Downloading....utils.dvrc
+
Downloading....general_science.dvrc
+
Downloading....crism_science.dvrc
+
Downloading....constants.dvrc
+
Downloading....thermal_model.dvrc
+
Downloading....image_stretch.dvrc
+
Downloading....library_win.dvrc
+
Downloading....time.dvrc
+
Downloading....field_spectrometer.dvrc
+
 
+
Copying the library to the destination:
+
 
     /Applications/davinci.app/Contents/Resources/library
 
     /Applications/davinci.app/Contents/Resources/library
 
+
Sourcing the new library files
+
Sourcing the new library files
 
+
1.09000   
+
1.09000   
Replacing function library_update
+
Replacing function library_update
..................................
+
..................................
1.19209e-07   
+
1.19209e-07   
2.22045e-16   
+
2.22045e-16   
load_module(): Variable thm already exists in global space. Module load aborted.
+
load_module(): Variable thm already exists in global space. Module load aborted.
|
+
 
|
 
|
 
|
 
|
 +
*[[read_lines]]
 +
*[[copy]]
 +
*[[HasValue]]
 
*[[printf]]
 
*[[printf]]
*[[global]]
+
*[[dirname]]
 +
*[[source]]
 +
|
 +
*[[version]]
 +
*[[library_version]]
 +
*[[install_check]]
 
|
 
|
 
*utils.dvrc
 
*utils.dvrc
 
|
 
|
 +
1.09
 
}}
 
}}
 
[[category:Functions]]
 
[[category:Functions]]
 
[[category:User Defined Functions]]
 
[[category:User Defined Functions]]
 
[[category:Utilities]]
 
[[category:Utilities]]

Revision as of 17:35, 7 December 2010


Description

Updates the installed version of the davinci User Defined Functions library.

NOTE: this function requires that you start davinci in a special way. Please see the help for more info.

Arguments and Return Values

Arguments: an update flag, and a beta flag

Return Value: the dvrc files on disk are updated

Usage

Syntax: library_update(update = BOOL [, beta = BOOL])

This function is designed to update the currently installed davinci
User Defined Functions library
NOTE: This function will operate only after major version 2.06

This is alpha level code and may break your installation of davinci
If this happens please re-install from the davinci binaries

To use this function to update the functions library,
you may need to start davinci in a special way.
See below for specific operating system instructions

   For Linux:    Start davinci as root, su, or sudo, Ex: sudo davinci
   For Mac:    You will be prompted to type the sudo password
   For Windows:    Start davinci normally

Usage:
library_update(update=1)
   This will update all the functions to the current public release of davinci,
   e.g. major version 2.05

library_update(update=1,beta=1)
   This will update all the functions to the current beta release,
   e.g. everything after 2.05 but before 2.06

Examples

dv> library_update(update=1,beta=1)

Using the beta repository to update davinci:
   http://davinci.asu.edu/examples/library_beta

Downloading....lunar.hdf
Downloading....mars.hdf
Downloading....irf_fit_all_v3.0_tv6_1_2_v3.0
........................................
Downloading....night_maps_final.vicar
Downloading....Mars_Viking.jpg
Downloading....months.txt
Downloading....weekdays.txt
Downloading....DeltaT.txt
Downloading....tai-utc.dat
Downloading....themis_filter_functions.hdf
Downloading....day_maps_final.vicar
Downloading....dehyd_water.txt
Downloading....crism_speclib.hdf
Downloading....lab1_xaxis.vicar
Downloading....library.dvrc
Downloading....themis_science.dvrc
Downloading....library_linux.dvrc
Downloading....tes_science.dvrc
Downloading....library_mac.dvrc
Downloading....library_mars.dvrc
Downloading....data_manipulation.dvrc
Downloading....math.dvrc
Downloading....misc.dvrc
Downloading....mosaic_tools.dvrc
Downloading....msff.dvrc
Downloading....spectral_tools.dvrc
Downloading....plot_tools.dvrc
Downloading....v_mosaic.dvrc
Downloading....utils.dvrc
Downloading....general_science.dvrc
Downloading....crism_science.dvrc
Downloading....constants.dvrc
Downloading....thermal_model.dvrc
Downloading....image_stretch.dvrc
Downloading....library_win.dvrc
Downloading....time.dvrc
Downloading....field_spectrometer.dvrc

Copying the library to the destination:
   /Applications/davinci.app/Contents/Resources/library

Sourcing the new library files

1.09000   
Replacing function library_update
..................................
1.19209e-07   
2.22045e-16   
load_module(): Variable thm already exists in global space. Module load aborted.

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Recent Library Changes

Created On: 12-08-2010
Modified On: 08-22-2013

Personal tools