library update
From DavinciWiki
(Difference between revisions)
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 = 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 | + | 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 | + | 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 | + | 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....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....irf_fit_all_v3.0_tv6_1_2_v3.0 | + | 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....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]] | ||
− | *[[ | + | *[[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
Contents: Description, Arguments, Usage, Examples, Sub-Functions, Related Functions, Source Supported Under Version: > 1.09
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
All other topics
Related Functions
Recent Library Changes Created On: 12-08-2010 |