SubVersion SubVersion svn.oss.deltares.nl. workflow.

Slides:



Advertisements
Similar presentations
TortoiseSVN By Group 1 Team B. Installing TortoiseSVN.
Advertisements

Services Course Windows Live SkyDrive Participant Guide.
Intro to Version Control Have you ever …? Had an application crash and lose ALL of your work Made changes to a file for the worse and wished you could.
Datawarehouse Workflow: ETLP Extract Transform LoadProvide Make user- friendly formats Dynamic database Charts & Maps Tools & websites Archive native formats.
Kick-off meeting Delft, April FP – SPACE no Data Fast First step in data management – repository Gerrit Hendriksen Gerben.
1. What is Subversion? Why do we need CM? Basic concepts Repositories Options Setup Clients Options Setup Operation Troubleshooting Slide 2.
TortoiseSVN Tutorial TortoiseSVN Tutorial By: Dung Nguyen Date: May 26 th, 2008 Duration: 1h30’ By: Dung Nguyen Date: May 26 th, 2008 Duration: 1h30’ Topic:
Version Control System (Sub)Version Control (SVN).
Version Control System Sui Huang, McMaster University Version Control SystemSui Huang, McMaster University Version Control System -- base on Subversion.
Dedi Rahmawan Putra  Shared Document  Conventional Ways  Common Problems  What is TortoiseSVN  Advantages over another tools  Basic Concepts.
Using subversion COMP 2400 Prof. Chris GauthierDickey.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
Source Control Repositories for Enabling Team Working Svetlin Nakov Telerik Corporation
Data Standards Workflow Raw dataScriptsDatabase Store raw data in subversion to keep track of history Stored files (netcdf) accessible through the web.
SubVersioN – the new Central Service at DESY by Marian Gawron.
By Steven Campbell and Erik Boone.  Sharing projects by putting them into a central repository.  Checking out copies of projects from the repository.
workflow. SubVersion Version control Quality control: “Something adheres to some criteria” Without a properly defined something there.
Version Control. What is Version Control? Manages file sharing for Concurrent Development Keeps track of changes with Version Control SubVersion (SVN)
Version Control with git. Version Control Version control is a system that records changes to a file or set of files over time so that you can recall.
Git for Version Control These slides are heavily based on slides created by Ruth Anderson for CSE 390a. Thanks, Ruth! images taken from
Getting Started with GIT. Basic Navigation cd means change directory cd.. moves you up a level cd dir_name moves you to the folder named dir_name A dot.
Version Control with Subversion. What is Version Control Good For? Maintaining project/file history - so you don’t have to worry about it Managing collaboration.
Version control with Github August 26th, 2014 Daniel Schreij VU Cognitive Psychology departement
The Design Workshop Introduction to Version Control 1.
Version Control with Subversion Quick Reference of Subversion.
Subversion Code Deployment LifeCycle August 2011.
Git – versioning and managing your software L. Grewe.
Subversion (SVN) Tutorial for CS421 Dan Fleck Spring 2010.
Version control Using Git Version control, using Git1.
C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005.
…using Git/Tortoise Git
Git workflow and basic commands By: Anuj Sharma. Why git? Git is a distributed revision control system with an emphasis on speed, data integrity, and.
Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2.
Using Subversion and TortoiseSVN for Windows by Galen Wilkerson Gund Institute for Ecological Economics University of Vermont
Version Control Menggunakan TortoiseSVN
Subversion (SVN) A Revision Control System Successor to CVS Carlos Armas Hervey Allen.
Subversion in the Sur lab A tool for organizing and sharing analysis code.
SENG 403 Tutorial 1 1SENG 403 – Winter Agenda Version Control Basics Subversion Basic actions in Subversion Some examples 2SENG 403 – Winter 2012.
DireXions – Your Tool Box just got Bigger PxPlus Version Control System Using TortoiseSVN Presented by: Jane Raymond.
Computer Science and Engineering The Ohio State University  Widely used, especially in the opensource community, to track all changes to a project and.
FILES AND ASSETS PANELS
CVS – concurrent versions system Network Management Workshop intERlab at AIT Thailand March 11-15, 2008.
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
Subversion is a free/open-source version control system. It manages files and directories, and the changes made to them, over time. This allows you to.
SWGData and Software Access - 1 UCB, Nov 15/16, 2006 THEMIS SCIENCE WORKING TEAM MEETING Data and Software Access Ken Bromund GST Inc., at NASA/GSFC.
Your Digital Technology Briefcase My information…when and where I need it.
Copyright © Curt Hill Tortoise SVN A Subversion Client.
When collaborating, it is important to manage changes in the models. For example: –To create or edit a submodel E.g. Habitat suitability is replaced with.
1 MSTE Visual SourceSafe For more information, see:
Intro to Git presented by Brian K. Vagnini Hosted by.
L.T.E :: Learning Through Experimenting Using google-svn for MtM Docs Development Denis Thibault Version 3.2 Mar 12 th, 2009.
Sabriansyah R.A Version Control. The Repository Subversion adalah sistem tersentralisasi untuk informasi sharing Repository adalah pusat penyimpanan data.
(1) Introduction to Subversion (SVN) and Google Project Hosting Philip Johnson Collaborative Software Development Laboratory Information and Computer Sciences.
(1) Introduction to Subversion (SVN) and Google Project Hosting Philip Johnson Collaborative Software Development Laboratory Information and Computer Sciences.
Subversion (SVN) Tutorial for CS421 Dan Fleck Spring 2010.
© CGI Group Inc. Project Place and #define Version 0.2.
© CGI Group Inc. User Guide Subversion client TortoiseSVN.
Problem Solving With C++ SVN ( Version Control ) April 2016.
GIT Version control. Version Control Sharing code via a centralized DB Also provides for Backtracking (going back to a previous version of code), Branching.
Sharing and Synching files
Version Control with Subversion
SVN intro (review).
Subversion.
Services Course 9/9/2018 3:37 PM Services Course Windows Live SkyDrive Participant Guide © 2008 Microsoft Corporation. All rights reserved.
Storing, Sending, and Tracking Files Recitation 2
Concurrent Version Control
Source Code Management
User Guide Subversion client TortoiseSVN
Subversion Basics Guide
Git CS Fall 2018.
Presentation transcript:

www.OpenEarth.eu workflow

SubVersion SubVersion svn.oss.deltares.nl

Version control Quality control: “Something adheres to some criteria” date x batch no. x ingredients x calories x ℮ gram x Quality control: “Something adheres to some criteria” Without a properly defined something there is no basis whatsoever for quality control. So, industrial QA always defines something: e.g. all peanut butter jars have a unique number on them. We should add unique version no.s to data and tools too Subversion (svn) does this for us Svn is a necessary (but not sufficient) requirement for achieving quality date √ batch no. √ ingredients √ calories √ ℮ gram √

SubVersion SubVersion is a web-based system for version control It allows a worldwide community of people to collaborate online You can think of a SubVersion repository as an ftp drive with a memory sharepoint environment for any file format (not just *.doc, *.xls). Everyone can add/alter/remove and retrieve data But nothing can be added/altered/removed without being noticed because SubVersion logs everything which guarantees a safe way of collaborating without need for editors This is exactly how Wikipedia operates: no editorial board simply anyone can participate, but not unnoticed everything is logged So SubVersion is a kind of ‘wikitoolia’ (or ‘toolipedia’ if you like)

SubVersion Wikipedia keeps the history of all modifications, and so does Subversion

SubVersion SubVersion servers are for instance hosted by SourceForge.org Deltares also hosts SubVersion servers OpenEarth has a free ride on a Deltares server Everyone is invited to launch their own server for internal use The OpenEarth server is for open tools proof-of-concept for subsequent internal clones by partners operational server for open data SubVersion was originally meant for computer code. Recently it is also used for model input schematisations And now OpenEarth has adopted it to host raw data + scripts as too

SubVersion SubVersion is a tool to synchronize a local copy with a server copy A SubVersion client is needed to : Get updates from the server to a local copy: checkout Put updates from a local copy onto a server: commit The server mother-copy can be viewed with a web-browser only The server copy cannot directly be used The server copy only shows the latest version, not the history A SubVersion client can get a local copy to work with can show the history of all modifications Unlike Sharepoint: multiple people can work simultaneously SubVersion makes sure that changes are merged without conflicts.

REPOSITORY basics One central mother-copy is synchronized two-way with many copies on local PC’s worldwide. central mother copy internet synchronize many local PCs worldwide a local copy E:\ a local copy D:\ a local copy D:\ a local copy F:\ a local copy F:\ a local copy F:\ a local copy E:\ a local copy D:\

REPOSITORY basics Two-way synchronization requires: receiving updates sending updates browse central database: svn.oss.deltares.nl internet checkout update local PC commit add delete local copy D:\ E:\ F:\ copy

REPOSITORY browse browse central database: svn.oss.deltares.nl checkout update commit add delete local copy D:\ E:\ F:\ copy

REPOSITORY browse sv.oss.deltares.nl

Repository username Get username and password: register at http://oss.deltares.nl Why, OpenEarth is open, right? Yes, but closed community For best quality all actions are logged (just like wikipedia) Nothing can be lost, only temporarily disabled So anyone can be allowed to join Every file is logged … … and every line in every file is logged.

REPOSITORY browse (WebSVN look) http://svn.oss.deltares.nl WebSvn offers a special web-based code syntax highlighting. This is not the real file url though.

REPOSITORY browse (WebSVN look 2) http://svn.oss.deltares.nl The direct acces url does not offer syntax highlighting, but this is the real file url.

other browser looks exist too (example 1) REPOSITORY browse (plain look) other browser looks exist too (example 1)

other browser looks exist too (example 2) REPOSITORY browse (sourceforge look) other browser looks exist too (example 2)

REPOSITORY checkout Not handy to get files one by one with browser Get them all at once with free program Jargon: Checkout browse central database: svn.oss.deltares.nl checkout update commit add delete local copy D:\ E:\ F:\ copy

REPOSITORY checkout Download and install Tortoise (http://tortoisesvn.net/)

REPOSITORY checkout Make a checkout in e.g. F:\checkouts\ No need to back this up, it’s only a copy ... After installation of TortoiseSVN and rebooting, new icons show-up when right-mouse clicking on a directory.

REPOSITORY checkout Copy url from browser (case sensitive!) Make directory tree of local copy mimics server For WebSVN interface click button

REPOSITORY checkout Wait for checkout to finish. OpenEarthTools is a few 100 Mb.

REPOSITORY checkout Do NOT use the option “Create a repository here” This is meant for hosting a mother copy on your machine

REPOSITORY commit browse central database: svn.oss.deltares.nl checkout update commit add delete local copy D:\ E:\ F:\ copy

REPOSITORY commit A commit is needed to put local changes into the central server. This is needed if you locally did a meaningfull … modification deletetion addition move rename Each action is indicated with a unique icon in your windows explorer Non-meaningfull modifications (e.g. tests) can be reverted (undo all local changes). folders files

REPOSITORY commit modified up to date

REPOSITORY commit Always put a small remark to describe to comunity members what you modified (“did a lot” is not specific enough).

REPOSITORY update browse central database: svn.oss.deltares.nl checkout update commit add delete local copy D:\ E:\ F:\ copy

REPOSITORY update Get updates from others from the server to your local copy. Do this regular to benefit from improvements. For active OpenEarthTools use: daily! Always do this before a commit.

REPOSITORY update SubVersion: open source version control system. Users ‘commit’ their files in one central database (regular update local copy). Every commit gets a unique revision number. Per commit one can add a comment to indicate what was changed.

REPOSITORY statistics TOOLS: > 5000 commits! ~ 100 active users ~ 1000 user requests (incl XBeach) DATA: > 5000 commits! ~ 100 active users EU MICORE deliverables BwN deliverables Statistics: Per project or tool one may create a separate ‘repository’. Bundling reusable tools into 1 central repository has huge advantages (sharing, collaborating, learning). OpenEarth tools, as used in Building with Nature, is open source en freeware.

REPOSITORY add browse central database: svn.oss.deltares.nl checkout update commit add delete local copy D:\ E:\ F:\ copy

REPOSITORY add a raw dataset There are 2 copies of 1 file on your PC: Visible working copy, for editing Hidden shadow copy, to detect changes Before adding a file to the server, a shadow copy must be created. Allows for offline working

REPOSITORY add a raw dataset Now the addition must be simply be committed as any change

REPOSITORY add a raw dataset OpenEarthRawData is very big: don’t make a full checkout To add a thing, first make an empty checkout of the destination.

REPOSITORY delete browse central database: svn.oss.deltares.nl checkout update commit add delete local copy D:\ E:\ F:\ copy

REPOSITORY add a raw dataset There are 2 copies of 1 file on your PC: Visible working copy, for editing Hidden shadow copy, to detect changes When deleting a file on the server, your shadow copy be informed Allows for working offline

REPOSITORY add a raw dataset Now the deletion must be simply be committed as any change

REPOSITORY copy browse central database: svn.oss.deltares.nl checkout update commit add delete local copy D:\ E:\ F:\ copy

REPOSITORY copy Again: first inform shadow copy locally, then commit to server … Drag with right-mouse button

OpenEarthTools Tools are stored under https://svn.oss.deltares.nl/repos/openearthtools/trunk/ Tools are stored per language Matlab has main activity but Python and R toolbox are starting to grow now.

OpenEarthTools: Matlab: start The Matlab toolbox has to be added to your matlab path Do not use addpath This wil also add all hidden (.svn) directories (a Matlab bug) This does not add the required JAVA paths (netCDF-4) Run oetsettings.m instead You have to do this every time you start Matlab So it’s easier to make a shortcut button this, right-mouse click on the shortcuts toolbar to add one

OpenEarthTools: Matlab: help You can find the available Matlab tools the same way to you find official Matlab tools using use help, doc or lookfor >> help oetsettings >> doc googleplot >> lookfor convertcoordinates

OpenEarthTools: Matlab: example

OpenEarthRawData Raw data are stored under https://svn.oss.deltares.nl/repos/openearthrawdata/trunk/ Data are stored with copyright holder as main directory. This allows copyright holders to maintain their own data copyright holders to shift easily from private to open source users to identify whom to acknowlegde Data should also contain dedicated processing scripts (if not in OpenEarthTools) url file to web source INSPIRE XML meta-data file

OpenEarthModels Model input specifications are stored under https://svn.oss.deltares.nl/repos/openearthmodels/trunk/ Model input schematisations are stored with copyright holder as main directory. This allows copyright holders to maintain their own data copyright holders to shift easily from private to open source users to identify whom to acknowlegde

Exercise The repository is supposed to be working anytime Do not play with the actual repository All advanced users will by annoyed by this But then, how I can I learn how to work with it? Solution: use the sandbox Play around at the highest level as much as you like And clean up afterwards (delete) With your browser: https://svn.oss.deltares.nl/repos/openearthtools/sandbox Now delete the addition you made in And check the log file, to see what colleagues did.

www.OpenEarth.eu workflow

netCDF/OPeNDAP netCDF OPeNDAP opendap.deltares.nl

netCDF/OPeNDAP how to use: opendap.deltares.nl: www.OpenEarth.eu: http://public.deltares.nl/display/OET/web+overview+of+OPeNDAP+data http://publicwiki.deltares.nl/display/OET/Tech+Notes Simple OPeNDAP primer http://publicwiki.deltares.nl/display/OET/OPeNDAP+access+with+Matlab http://publicwiki.deltares.nl/display/OET/OPeNDAP+access+with+R http://publicwiki.deltares.nl/display/OET/OPeNDAP+access+with+python Some more sophistication: subsetting with OPeNDAP http://publicwiki.deltares.nl/display/OET/OPeNDAP+subsetting+with+Matlab http://publicwiki.deltares.nl/display/OET/OPeNDAP+subsetting+with+R http://publicwiki.deltares.nl/display/OET/OPeNDAP+subsetting+with+python These are tutorials that subset the North Sea from a wordwide Digital Elevation Model (DEM)

Google Earth Google Earth kml.deltares.nl

Google Earth http://public.deltares.nl/display/OET/KML+Screenshots how to use: kml.deltares.nl: http://public.deltares.nl/display/OET/KML+Screenshots