library update
From DavinciWiki
(Difference between revisions)
(3 intermediate revisions by one user not shown) | |||
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][, version = FLOAT][, noroot = 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 | ||
NOTE: This function will operate only after major version 2.06 | NOTE: This function will operate only after major version 2.06 | ||
− | + | In the unlikely chance that this functino breaks your installation | |
− | + | of davinci, please re-install from the davinci binaries | |
To use this function to update the functions library, | To use this function to update the functions library, | ||
Line 20: | Line 20: | ||
See below for specific operating system instructions | 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 7: Right click on the Davinci.exe file in the Start Menu | |
+ | And click "Run as Administrator" | ||
+ | For Windows VISTA: Start davinci normally | ||
+ | For Windows XP: Start davinci normally | ||
Usage: | Usage: | ||
− | library_update(update | + | 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 | + | library_update(update=1,version=2.10) |
− | + | This will update all the functions to the specified public release of davinci, | |
− | + | e.g. major version 2.10 | |
+ | |||
+ | 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 | ||
+ | |||
+ | Arguments: | ||
+ | update=1, update the code to the most recent release | ||
+ | beta=1, update the code to the beta release | ||
+ | version=2.12, update the code to the specified version (>2.0) | ||
+ | noroot, use this carefully if $DV_LIB is in a non-root controlled directory (Default=0) | ||
| | | | ||
− | 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]] |
Latest revision as of 17:09, 21 August 2013
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][, version = FLOAT][, noroot = 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 In the unlikely chance that this functino breaks your installation of davinci, 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 7: Right click on the Davinci.exe file in the Start Menu And click "Run as Administrator" For Windows VISTA: Start davinci normally For Windows XP: 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,version=2.10) This will update all the functions to the specified public release of davinci, e.g. major version 2.10 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 Arguments: update=1, update the code to the most recent release beta=1, update the code to the beta release version=2.12, update the code to the specified version (>2.0) noroot, use this carefully if $DV_LIB is in a non-root controlled directory (Default=0)
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 |